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