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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 // Returns the bitmap to show when a <webview> guest has crashed, or NULL for | 82 // Returns the bitmap to show when a <webview> guest has crashed, or NULL for |
83 // none. | 83 // none. |
84 virtual SkBitmap* GetSadWebViewBitmap(); | 84 virtual SkBitmap* GetSadWebViewBitmap(); |
85 | 85 |
86 // Returns the default text encoding. | 86 // Returns the default text encoding. |
87 virtual std::string GetDefaultEncoding(); | 87 virtual std::string GetDefaultEncoding(); |
88 | 88 |
89 // Allows the embedder to override creating a plugin. If it returns true, then | 89 // Allows the embedder to override creating a plugin. If it returns true, then |
90 // |plugin| will contain the created plugin, although it could be NULL. If it | 90 // |plugin| will contain the created plugin, although it could be NULL. If it |
91 // returns false, the content layer will create the plugin. | 91 // returns false, the content layer will create the plugin. |
| 92 // |instance_id| will be filled in if we need to create a MimeHandlerView |
| 93 // plugin. |
92 virtual bool OverrideCreatePlugin( | 94 virtual bool OverrideCreatePlugin( |
93 RenderFrame* render_frame, | 95 RenderFrame* render_frame, |
94 blink::WebLocalFrame* frame, | 96 blink::WebLocalFrame* frame, |
95 const blink::WebPluginParams& params, | 97 const blink::WebPluginParams& params, |
| 98 int* instance_id, |
96 blink::WebPlugin** plugin); | 99 blink::WebPlugin** plugin); |
97 | 100 |
98 // Creates a replacement plug-in that is shown when the plug-in at |file_path| | 101 // 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. | 102 // couldn't be loaded. This allows the embedder to show a custom placeholder. |
100 virtual blink::WebPlugin* CreatePluginReplacement( | 103 virtual blink::WebPlugin* CreatePluginReplacement( |
101 RenderFrame* render_frame, | 104 RenderFrame* render_frame, |
102 const base::FilePath& plugin_path); | 105 const base::FilePath& plugin_path); |
103 | 106 |
104 // Returns true if the embedder has an error page to show for the given http | 107 // 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 | 108 // status code. If so |error_domain| should be set to according to WebURLError |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 // Returns true if the page at |url| can use Pepper VideoDecoder APIs. | 268 // Returns true if the page at |url| can use Pepper VideoDecoder APIs. |
266 virtual bool IsPluginAllowedToUseVideoDecodeAPI(const GURL& url); | 269 virtual bool IsPluginAllowedToUseVideoDecodeAPI(const GURL& url); |
267 | 270 |
268 // Returns true if dev channel APIs are available for plugins. | 271 // Returns true if dev channel APIs are available for plugins. |
269 virtual bool IsPluginAllowedToUseDevChannelAPIs(); | 272 virtual bool IsPluginAllowedToUseDevChannelAPIs(); |
270 }; | 273 }; |
271 | 274 |
272 } // namespace content | 275 } // namespace content |
273 | 276 |
274 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 277 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |