OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 class WebSpeechSynthesizer; | 43 class WebSpeechSynthesizer; |
44 class WebSpeechSynthesizerClient; | 44 class WebSpeechSynthesizerClient; |
45 class WebThemeEngine; | 45 class WebThemeEngine; |
46 class WebURLRequest; | 46 class WebURLRequest; |
47 class WebWorkerPermissionClientProxy; | 47 class WebWorkerPermissionClientProxy; |
48 struct WebPluginParams; | 48 struct WebPluginParams; |
49 struct WebURLError; | 49 struct WebURLError; |
50 } | 50 } |
51 | 51 |
52 namespace content { | 52 namespace content { |
| 53 class BrowserPluginDelegate; |
53 class DocumentState; | 54 class DocumentState; |
54 class RenderFrame; | 55 class RenderFrame; |
55 class RenderView; | 56 class RenderView; |
56 class SynchronousCompositor; | 57 class SynchronousCompositor; |
57 struct KeySystemInfo; | 58 struct KeySystemInfo; |
58 struct WebPluginInfo; | 59 struct WebPluginInfo; |
59 | 60 |
60 // Embedder API for participating in renderer logic. | 61 // Embedder API for participating in renderer logic. |
61 class CONTENT_EXPORT ContentRendererClient { | 62 class CONTENT_EXPORT ContentRendererClient { |
62 public: | 63 public: |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 blink::WebLocalFrame* frame, | 95 blink::WebLocalFrame* frame, |
95 const blink::WebPluginParams& params, | 96 const blink::WebPluginParams& params, |
96 blink::WebPlugin** plugin); | 97 blink::WebPlugin** plugin); |
97 | 98 |
98 // Creates a replacement plug-in that is shown when the plug-in at |file_path| | 99 // Creates a replacement plug-in that is shown when the plug-in at |file_path| |
99 // couldn't be loaded. This allows the embedder to show a custom placeholder. | 100 // couldn't be loaded. This allows the embedder to show a custom placeholder. |
100 virtual blink::WebPlugin* CreatePluginReplacement( | 101 virtual blink::WebPlugin* CreatePluginReplacement( |
101 RenderFrame* render_frame, | 102 RenderFrame* render_frame, |
102 const base::FilePath& plugin_path); | 103 const base::FilePath& plugin_path); |
103 | 104 |
| 105 virtual BrowserPluginDelegate* CreateBrowserPluginDelegate( |
| 106 int routing_id, const std::string& mime_type); |
| 107 |
104 // Returns true if the embedder has an error page to show for the given http | 108 // Returns true if the embedder has an error page to show for the given http |
105 // status code. If so |error_domain| should be set to according to WebURLError | 109 // status code. If so |error_domain| should be set to according to WebURLError |
106 // and the embedder's GetNavigationErrorHtml will be called afterwards to get | 110 // and the embedder's GetNavigationErrorHtml will be called afterwards to get |
107 // the error html. | 111 // the error html. |
108 virtual bool HasErrorPage(int http_status_code, | 112 virtual bool HasErrorPage(int http_status_code, |
109 std::string* error_domain); | 113 std::string* error_domain); |
110 | 114 |
111 // Returns true if the embedder prefers not to show an error page for a failed | 115 // Returns true if the embedder prefers not to show an error page for a failed |
112 // navigation to |url| in |render_frame|. | 116 // navigation to |url| in |render_frame|. |
113 virtual bool ShouldSuppressErrorPage(RenderFrame* render_frame, | 117 virtual bool ShouldSuppressErrorPage(RenderFrame* render_frame, |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 // Returns true if the page at |url| can use Pepper VideoDecoder APIs. | 269 // Returns true if the page at |url| can use Pepper VideoDecoder APIs. |
266 virtual bool IsPluginAllowedToUseVideoDecodeAPI(const GURL& url); | 270 virtual bool IsPluginAllowedToUseVideoDecodeAPI(const GURL& url); |
267 | 271 |
268 // Returns true if dev channel APIs are available for plugins. | 272 // Returns true if dev channel APIs are available for plugins. |
269 virtual bool IsPluginAllowedToUseDevChannelAPIs(); | 273 virtual bool IsPluginAllowedToUseDevChannelAPIs(); |
270 }; | 274 }; |
271 | 275 |
272 } // namespace content | 276 } // namespace content |
273 | 277 |
274 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 278 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |