OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ | 5 #ifndef CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ |
6 #define CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ | 6 #define CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "content/public/renderer/content_renderer_client.h" | 10 #include "content/public/renderer/content_renderer_client.h" |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 | 13 |
14 class ShellContentRendererClient : public ContentRendererClient { | 14 class ShellContentRendererClient : public ContentRendererClient { |
15 public: | 15 public: |
16 virtual ~ShellContentRendererClient(); | 16 virtual ~ShellContentRendererClient(); |
17 virtual void RenderThreadStarted() OVERRIDE; | 17 virtual void RenderThreadStarted() OVERRIDE; |
18 virtual void RenderViewCreated(RenderView* render_view) OVERRIDE; | 18 virtual void RenderViewCreated(RenderView* render_view) OVERRIDE; |
19 virtual void SetNumberOfViews(int number_of_views) OVERRIDE; | 19 virtual void SetNumberOfViews(int number_of_views) OVERRIDE; |
20 virtual SkBitmap* GetSadPluginBitmap() OVERRIDE; | 20 virtual SkBitmap* GetSadPluginBitmap() OVERRIDE; |
21 virtual std::string GetDefaultEncoding() OVERRIDE; | 21 virtual std::string GetDefaultEncoding() OVERRIDE; |
22 virtual bool OverrideCreatePlugin( | 22 virtual bool OverrideCreatePlugin( |
23 RenderView* render_view, | 23 RenderView* render_view, |
24 WebKit::WebFrame* frame, | 24 WebKit::WebFrame* frame, |
25 const WebKit::WebPluginParams& params, | 25 const WebKit::WebPluginParams& params, |
26 WebKit::WebPlugin** plugin) OVERRIDE; | 26 WebKit::WebPlugin** plugin) OVERRIDE; |
27 virtual bool HasErrorPage(int http_status_code, | 27 virtual bool HasErrorPage(int http_status_code, |
28 std::string* error_domain) OVERRIDE; | 28 std::string* error_domain) OVERRIDE; |
29 virtual std::string GetNavigationErrorHtml( | 29 virtual void GetNavigationErrorStrings( |
30 const WebKit::WebURLRequest& failed_request, | 30 const WebKit::WebURLRequest& failed_request, |
31 const WebKit::WebURLError& error) OVERRIDE; | 31 const WebKit::WebURLError& error, |
| 32 std::string* error_html, |
| 33 string16* error_description) OVERRIDE; |
32 virtual bool RunIdleHandlerWhenWidgetsHidden() OVERRIDE; | 34 virtual bool RunIdleHandlerWhenWidgetsHidden() OVERRIDE; |
33 virtual bool AllowPopup(const GURL& creator) OVERRIDE; | 35 virtual bool AllowPopup(const GURL& creator) OVERRIDE; |
34 virtual bool ShouldFork(WebKit::WebFrame* frame, | 36 virtual bool ShouldFork(WebKit::WebFrame* frame, |
35 const GURL& url, | 37 const GURL& url, |
36 bool is_content_initiated, | 38 bool is_content_initiated, |
37 bool is_initial_navigation, | 39 bool is_initial_navigation, |
38 bool* send_referrer) OVERRIDE; | 40 bool* send_referrer) OVERRIDE; |
39 virtual bool WillSendRequest(WebKit::WebFrame* frame, | 41 virtual bool WillSendRequest(WebKit::WebFrame* frame, |
40 const GURL& url, | 42 const GURL& url, |
41 GURL* new_url) OVERRIDE; | 43 GURL* new_url) OVERRIDE; |
(...skipping 18 matching lines...) Expand all Loading... |
60 virtual bool HandleSetCookieRequest(RenderView* sender, | 62 virtual bool HandleSetCookieRequest(RenderView* sender, |
61 const GURL& url, | 63 const GURL& url, |
62 const GURL& first_party_for_cookies, | 64 const GURL& first_party_for_cookies, |
63 const std::string& value) OVERRIDE; | 65 const std::string& value) OVERRIDE; |
64 virtual bool IsProtocolSupportedForMedia(const GURL& url) OVERRIDE; | 66 virtual bool IsProtocolSupportedForMedia(const GURL& url) OVERRIDE; |
65 }; | 67 }; |
66 | 68 |
67 } // namespace content | 69 } // namespace content |
68 | 70 |
69 #endif // CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ | 71 #endif // CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |