| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 class WebRTCPeerConnectionHandlerClient; | 48 class WebRTCPeerConnectionHandlerClient; |
| 49 class WebSpeechSynthesizer; | 49 class WebSpeechSynthesizer; |
| 50 class WebSpeechSynthesizerClient; | 50 class WebSpeechSynthesizerClient; |
| 51 class WebThemeEngine; | 51 class WebThemeEngine; |
| 52 class WebURL; | 52 class WebURL; |
| 53 class WebURLResponse; | 53 class WebURLResponse; |
| 54 class WebURLRequest; | 54 class WebURLRequest; |
| 55 class WebWorkerContentSettingsClientProxy; | 55 class WebWorkerContentSettingsClientProxy; |
| 56 struct WebPluginParams; | 56 struct WebPluginParams; |
| 57 struct WebURLError; | 57 struct WebURLError; |
| 58 } | 58 } // namespace blink |
| 59 | 59 |
| 60 namespace gfx { | 60 namespace gfx { |
| 61 class ICCProfile; | 61 class ICCProfile; |
| 62 } | 62 } |
| 63 | 63 |
| 64 namespace media { | 64 namespace media { |
| 65 class KeySystemProperties; | 65 class KeySystemProperties; |
| 66 } | 66 } |
| 67 | 67 |
| 68 namespace content { | 68 namespace content { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 90 | 90 |
| 91 // 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 |
| 92 // none. | 92 // none. |
| 93 virtual SkBitmap* GetSadWebViewBitmap(); | 93 virtual SkBitmap* GetSadWebViewBitmap(); |
| 94 | 94 |
| 95 // Allows the embedder to override creating a plugin. If it returns true, then | 95 // Allows the embedder to override creating a plugin. If it returns true, then |
| 96 // |plugin| will contain the created plugin, although it could be NULL. If it | 96 // |plugin| will contain the created plugin, although it could be NULL. If it |
| 97 // returns false, the content layer will create the plugin. | 97 // returns false, the content layer will create the plugin. |
| 98 virtual bool OverrideCreatePlugin( | 98 virtual bool OverrideCreatePlugin( |
| 99 RenderFrame* render_frame, | 99 RenderFrame* render_frame, |
| 100 blink::WebLocalFrame* frame, | |
| 101 const blink::WebPluginParams& params, | 100 const blink::WebPluginParams& params, |
| 102 blink::WebPlugin** plugin); | 101 blink::WebPlugin** plugin); |
| 103 | 102 |
| 104 // 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| |
| 105 // couldn't be loaded. This allows the embedder to show a custom placeholder. | 104 // couldn't be loaded. This allows the embedder to show a custom placeholder. |
| 106 // This may return nullptr. However, if it does return a WebPlugin, it must | 105 // This may return nullptr. However, if it does return a WebPlugin, it must |
| 107 // never fail to initialize. | 106 // never fail to initialize. |
| 108 virtual blink::WebPlugin* CreatePluginReplacement( | 107 virtual blink::WebPlugin* CreatePluginReplacement( |
| 109 RenderFrame* render_frame, | 108 RenderFrame* render_frame, |
| 110 const base::FilePath& plugin_path); | 109 const base::FilePath& plugin_path); |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 virtual std::unique_ptr<base::TaskScheduler::InitParams> | 367 virtual std::unique_ptr<base::TaskScheduler::InitParams> |
| 369 GetTaskSchedulerInitParams(); | 368 GetTaskSchedulerInitParams(); |
| 370 | 369 |
| 371 // Returns true if the media pipeline can be suspended, or false otherwise. | 370 // Returns true if the media pipeline can be suspended, or false otherwise. |
| 372 virtual bool AllowMediaSuspend(); | 371 virtual bool AllowMediaSuspend(); |
| 373 }; | 372 }; |
| 374 | 373 |
| 375 } // namespace content | 374 } // namespace content |
| 376 | 375 |
| 377 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 376 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |