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 void ShowErrorPage(RenderView* render_view, | 27 virtual void ShowErrorPage(RenderView* render_view, |
28 WebKit::WebFrame* frame, | 28 WebKit::WebFrame* frame, |
29 int http_status_code) OVERRIDE; | 29 int http_status_code) OVERRIDE; |
30 virtual std::string GetNavigationErrorHtml( | 30 virtual void GetNavigationErrorStrings( |
31 const WebKit::WebURLRequest& failed_request, | 31 const WebKit::WebURLRequest& failed_request, |
32 const WebKit::WebURLError& error) OVERRIDE; | 32 const WebKit::WebURLError& error, |
| 33 std::string* error_html, |
| 34 string16* error_description) OVERRIDE; |
33 virtual bool RunIdleHandlerWhenWidgetsHidden() OVERRIDE; | 35 virtual bool RunIdleHandlerWhenWidgetsHidden() OVERRIDE; |
34 virtual bool AllowPopup(const GURL& creator) OVERRIDE; | 36 virtual bool AllowPopup(const GURL& creator) OVERRIDE; |
35 virtual bool ShouldFork(WebKit::WebFrame* frame, | 37 virtual bool ShouldFork(WebKit::WebFrame* frame, |
36 const GURL& url, | 38 const GURL& url, |
37 bool is_content_initiated, | 39 bool is_content_initiated, |
38 bool is_initial_navigation, | 40 bool is_initial_navigation, |
39 bool* send_referrer) OVERRIDE; | 41 bool* send_referrer) OVERRIDE; |
40 virtual bool WillSendRequest(WebKit::WebFrame* frame, | 42 virtual bool WillSendRequest(WebKit::WebFrame* frame, |
41 const GURL& url, | 43 const GURL& url, |
42 GURL* new_url) OVERRIDE; | 44 GURL* new_url) OVERRIDE; |
(...skipping 18 matching lines...) Expand all Loading... |
61 virtual bool HandleSetCookieRequest(RenderView* sender, | 63 virtual bool HandleSetCookieRequest(RenderView* sender, |
62 const GURL& url, | 64 const GURL& url, |
63 const GURL& first_party_for_cookies, | 65 const GURL& first_party_for_cookies, |
64 const std::string& value) OVERRIDE; | 66 const std::string& value) OVERRIDE; |
65 virtual bool IsProtocolSupportedForMedia(const GURL& url) OVERRIDE; | 67 virtual bool IsProtocolSupportedForMedia(const GURL& url) OVERRIDE; |
66 }; | 68 }; |
67 | 69 |
68 } // namespace content | 70 } // namespace content |
69 | 71 |
70 #endif // CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ | 72 #endif // CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |