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 19 matching lines...) Expand all Loading... |
30 class WebAudioDevice; | 30 class WebAudioDevice; |
31 class WebClipboard; | 31 class WebClipboard; |
32 class WebFrame; | 32 class WebFrame; |
33 class WebLocalFrame; | 33 class WebLocalFrame; |
34 class WebMIDIAccessor; | 34 class WebMIDIAccessor; |
35 class WebMIDIAccessorClient; | 35 class WebMIDIAccessorClient; |
36 class WebMediaStreamCenter; | 36 class WebMediaStreamCenter; |
37 class WebMediaStreamCenterClient; | 37 class WebMediaStreamCenterClient; |
38 class WebPlugin; | 38 class WebPlugin; |
39 class WebPluginContainer; | 39 class WebPluginContainer; |
| 40 class WebPluginPlaceholder; |
40 class WebPrescientNetworking; | 41 class WebPrescientNetworking; |
41 class WebRTCPeerConnectionHandler; | 42 class WebRTCPeerConnectionHandler; |
42 class WebRTCPeerConnectionHandlerClient; | 43 class WebRTCPeerConnectionHandlerClient; |
43 class WebSpeechSynthesizer; | 44 class WebSpeechSynthesizer; |
44 class WebSpeechSynthesizerClient; | 45 class WebSpeechSynthesizerClient; |
45 class WebThemeEngine; | 46 class WebThemeEngine; |
46 class WebURLRequest; | 47 class WebURLRequest; |
47 class WebWorkerPermissionClientProxy; | 48 class WebWorkerPermissionClientProxy; |
48 struct WebPluginParams; | 49 struct WebPluginParams; |
49 struct WebURLError; | 50 struct WebURLError; |
(...skipping 30 matching lines...) Expand all Loading... |
80 // Sets a number of views/tabs opened in this process. | 81 // Sets a number of views/tabs opened in this process. |
81 virtual void SetNumberOfViews(int number_of_views) {} | 82 virtual void SetNumberOfViews(int number_of_views) {} |
82 | 83 |
83 // Returns the bitmap to show when a plugin crashed, or NULL for none. | 84 // Returns the bitmap to show when a plugin crashed, or NULL for none. |
84 virtual SkBitmap* GetSadPluginBitmap(); | 85 virtual SkBitmap* GetSadPluginBitmap(); |
85 | 86 |
86 // Returns the bitmap to show when a <webview> guest has crashed, or NULL for | 87 // Returns the bitmap to show when a <webview> guest has crashed, or NULL for |
87 // none. | 88 // none. |
88 virtual SkBitmap* GetSadWebViewBitmap(); | 89 virtual SkBitmap* GetSadWebViewBitmap(); |
89 | 90 |
| 91 // Allows the embedder to create a plugin placeholder instead of a plugin. |
| 92 // Called before OverrideCreatePlugin. May return null to decline to provide |
| 93 // a plugin placeholder. |
| 94 virtual blink::WebPluginPlaceholder* OverrideCreatePluginPlaceholder( |
| 95 RenderFrame* render_frame, |
| 96 blink::WebLocalFrame* frame, |
| 97 const blink::WebPluginParams& params); |
| 98 |
90 // Allows the embedder to override creating a plugin. If it returns true, then | 99 // Allows the embedder to override creating a plugin. If it returns true, then |
91 // |plugin| will contain the created plugin, although it could be NULL. If it | 100 // |plugin| will contain the created plugin, although it could be NULL. If it |
92 // returns false, the content layer will create the plugin. | 101 // returns false, the content layer will create the plugin. |
93 virtual bool OverrideCreatePlugin( | 102 virtual bool OverrideCreatePlugin( |
94 RenderFrame* render_frame, | 103 RenderFrame* render_frame, |
95 blink::WebLocalFrame* frame, | 104 blink::WebLocalFrame* frame, |
96 const blink::WebPluginParams& params, | 105 const blink::WebPluginParams& params, |
97 blink::WebPlugin** plugin); | 106 blink::WebPlugin** plugin); |
98 | 107 |
99 // Creates a replacement plug-in that is shown when the plug-in at |file_path| | 108 // Creates a replacement plug-in that is shown when the plug-in at |file_path| |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 virtual bool IsPluginAllowedToUseDevChannelAPIs(); | 284 virtual bool IsPluginAllowedToUseDevChannelAPIs(); |
276 | 285 |
277 // Returns a user agent override specific for |url|, or empty string if | 286 // Returns a user agent override specific for |url|, or empty string if |
278 // default user agent should be used. | 287 // default user agent should be used. |
279 virtual std::string GetUserAgentOverrideForURL(const GURL& url); | 288 virtual std::string GetUserAgentOverrideForURL(const GURL& url); |
280 }; | 289 }; |
281 | 290 |
282 } // namespace content | 291 } // namespace content |
283 | 292 |
284 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 293 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |