Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / xwalk / runtime / renderer / tizen / xwalk_content_renderer_client_tizen.h
index 258369b..9abc8e3 100644 (file)
@@ -1,10 +1,13 @@
 // Copyright (c) 2013 Intel Corporation. All rights reserved.
+// Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
 #ifndef XWALK_RUNTIME_RENDERER_TIZEN_XWALK_CONTENT_RENDERER_CLIENT_TIZEN_H_
 #define XWALK_RUNTIME_RENDERER_TIZEN_XWALK_CONTENT_RENDERER_CLIENT_TIZEN_H_
 
+#include <string>
+
 #include "xwalk/runtime/renderer/xwalk_content_renderer_client.h"
 
 namespace xwalk {
@@ -13,11 +16,24 @@ class XWalkContentRendererClientTizen : public XWalkContentRendererClient {
  public:
   XWalkContentRendererClientTizen() : XWalkContentRendererClient() {}
 
-  virtual bool WillSendRequest(blink::WebFrame* frame,
-                               content::PageTransition transition_type,
-                               const GURL& url,
-                               const GURL& first_party_for_cookies,
-                               GURL* new_url) OVERRIDE;
+  bool WillSendRequest(blink::WebFrame* frame,
+                       ui::PageTransition transition_type,
+                       const GURL& url,
+                       const GURL& first_party_for_cookies,
+                       GURL* new_url) override;
+
+  bool HasErrorPage(int http_status_code,
+                    std::string* error_domain) override;
+
+  void GetNavigationErrorStrings(
+      content::RenderView* render_view,
+      blink::WebFrame* frame,
+      const blink::WebURLRequest& failed_request,
+      const blink::WebURLError& error,
+      std::string* error_html,
+      base::string16* error_description) override;
+  std::string GetOverridenUserAgent() const;
+
  private:
   DISALLOW_COPY_AND_ASSIGN(XWalkContentRendererClientTizen);
 };