Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / xwalk / runtime / renderer / tizen / xwalk_content_renderer_client_tizen.h
1 // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 // Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5
6 #ifndef XWALK_RUNTIME_RENDERER_TIZEN_XWALK_CONTENT_RENDERER_CLIENT_TIZEN_H_
7 #define XWALK_RUNTIME_RENDERER_TIZEN_XWALK_CONTENT_RENDERER_CLIENT_TIZEN_H_
8
9 #include <string>
10
11 #include "xwalk/runtime/renderer/xwalk_content_renderer_client.h"
12
13 namespace xwalk {
14
15 class XWalkContentRendererClientTizen : public XWalkContentRendererClient {
16  public:
17   XWalkContentRendererClientTizen() : XWalkContentRendererClient() {}
18
19   virtual bool WillSendRequest(blink::WebFrame* frame,
20                                ui::PageTransition transition_type,
21                                const GURL& url,
22                                const GURL& first_party_for_cookies,
23                                GURL* new_url) OVERRIDE;
24
25   virtual bool HasErrorPage(int http_status_code,
26                             std::string* error_domain) OVERRIDE;
27
28   virtual void GetNavigationErrorStrings(
29       content::RenderView* render_view,
30       blink::WebFrame* frame,
31       const blink::WebURLRequest& failed_request,
32       const blink::WebURLError& error,
33       std::string* error_html,
34       base::string16* error_description) OVERRIDE;
35   std::string GetOverridenUserAgent() const;
36
37  private:
38   DISALLOW_COPY_AND_ASSIGN(XWalkContentRendererClientTizen);
39 };
40
41 }  // namespace xwalk
42
43 #endif  // XWALK_RUNTIME_RENDERER_TIZEN_XWALK_CONTENT_RENDERER_CLIENT_TIZEN_H_