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.
6 #ifndef XWALK_RUNTIME_RENDERER_TIZEN_XWALK_CONTENT_RENDERER_CLIENT_TIZEN_H_
7 #define XWALK_RUNTIME_RENDERER_TIZEN_XWALK_CONTENT_RENDERER_CLIENT_TIZEN_H_
11 #include "xwalk/runtime/renderer/xwalk_content_renderer_client.h"
15 class XWalkContentRendererClientTizen : public XWalkContentRendererClient {
17 XWalkContentRendererClientTizen() : XWalkContentRendererClient() {}
19 virtual bool WillSendRequest(blink::WebFrame* frame,
20 ui::PageTransition transition_type,
22 const GURL& first_party_for_cookies,
23 GURL* new_url) OVERRIDE;
25 virtual bool HasErrorPage(int http_status_code,
26 std::string* error_domain) OVERRIDE;
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;
38 DISALLOW_COPY_AND_ASSIGN(XWalkContentRendererClientTizen);
43 #endif // XWALK_RUNTIME_RENDERER_TIZEN_XWALK_CONTENT_RENDERER_CLIENT_TIZEN_H_