// 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 {
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);
};