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 <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 21 matching lines...) Expand all Loading... |
32 class WebAudioDevice; | 32 class WebAudioDevice; |
33 class WebClipboard; | 33 class WebClipboard; |
34 class WebFrame; | 34 class WebFrame; |
35 class WebLocalFrame; | 35 class WebLocalFrame; |
36 class WebMIDIAccessor; | 36 class WebMIDIAccessor; |
37 class WebMIDIAccessorClient; | 37 class WebMIDIAccessorClient; |
38 class WebMediaStreamCenter; | 38 class WebMediaStreamCenter; |
39 class WebMediaStreamCenterClient; | 39 class WebMediaStreamCenterClient; |
40 class WebPlugin; | 40 class WebPlugin; |
41 class WebPluginContainer; | 41 class WebPluginContainer; |
| 42 class WebPluginPlaceholder; |
42 class WebPrescientNetworking; | 43 class WebPrescientNetworking; |
43 class WebRTCPeerConnectionHandler; | 44 class WebRTCPeerConnectionHandler; |
44 class WebRTCPeerConnectionHandlerClient; | 45 class WebRTCPeerConnectionHandlerClient; |
45 class WebSpeechSynthesizer; | 46 class WebSpeechSynthesizer; |
46 class WebSpeechSynthesizerClient; | 47 class WebSpeechSynthesizerClient; |
47 class WebThemeEngine; | 48 class WebThemeEngine; |
48 class WebURLResponse; | 49 class WebURLResponse; |
49 class WebURLRequest; | 50 class WebURLRequest; |
50 class WebWorkerContentSettingsClientProxy; | 51 class WebWorkerContentSettingsClientProxy; |
51 struct WebPluginParams; | 52 struct WebPluginParams; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 // Notifies that a new RenderView has been created. | 85 // Notifies that a new RenderView has been created. |
85 virtual void RenderViewCreated(RenderView* render_view) {} | 86 virtual void RenderViewCreated(RenderView* render_view) {} |
86 | 87 |
87 // Returns the bitmap to show when a plugin crashed, or NULL for none. | 88 // Returns the bitmap to show when a plugin crashed, or NULL for none. |
88 virtual SkBitmap* GetSadPluginBitmap(); | 89 virtual SkBitmap* GetSadPluginBitmap(); |
89 | 90 |
90 // Returns the bitmap to show when a <webview> guest has crashed, or NULL for | 91 // Returns the bitmap to show when a <webview> guest has crashed, or NULL for |
91 // none. | 92 // none. |
92 virtual SkBitmap* GetSadWebViewBitmap(); | 93 virtual SkBitmap* GetSadWebViewBitmap(); |
93 | 94 |
| 95 // Allows the embedder to create a plugin placeholder instead of a plugin. |
| 96 // Called before OverrideCreatePlugin. May return null to decline to provide |
| 97 // a plugin placeholder. |
| 98 virtual scoped_ptr<blink::WebPluginPlaceholder> CreatePluginPlaceholder( |
| 99 RenderFrame* render_frame, |
| 100 blink::WebLocalFrame* frame, |
| 101 const blink::WebPluginParams& params); |
| 102 |
94 // Allows the embedder to override creating a plugin. If it returns true, then | 103 // Allows the embedder to override creating a plugin. If it returns true, then |
95 // |plugin| will contain the created plugin, although it could be NULL. If it | 104 // |plugin| will contain the created plugin, although it could be NULL. If it |
96 // returns false, the content layer will create the plugin. | 105 // returns false, the content layer will create the plugin. |
97 virtual bool OverrideCreatePlugin( | 106 virtual bool OverrideCreatePlugin( |
98 RenderFrame* render_frame, | 107 RenderFrame* render_frame, |
99 blink::WebLocalFrame* frame, | 108 blink::WebLocalFrame* frame, |
100 const blink::WebPluginParams& params, | 109 const blink::WebPluginParams& params, |
101 blink::WebPlugin** plugin); | 110 blink::WebPlugin** plugin); |
102 | 111 |
103 // Creates a replacement plugin that is shown when the plugin at |file_path| | 112 // Creates a replacement plugin that is shown when the plugin at |file_path| |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 // Notifies that a service worker context has been created. This function | 303 // Notifies that a service worker context has been created. This function |
295 // is called from the worker thread. | 304 // is called from the worker thread. |
296 virtual void DidInitializeServiceWorkerContextOnWorkerThread( | 305 virtual void DidInitializeServiceWorkerContextOnWorkerThread( |
297 v8::Local<v8::Context> context, | 306 v8::Local<v8::Context> context, |
298 const GURL& url) {} | 307 const GURL& url) {} |
299 }; | 308 }; |
300 | 309 |
301 } // namespace content | 310 } // namespace content |
302 | 311 |
303 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 312 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |