| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 } | 57 } |
| 58 | 58 |
| 59 namespace gfx { | 59 namespace gfx { |
| 60 class ICCProfile; | 60 class ICCProfile; |
| 61 } | 61 } |
| 62 | 62 |
| 63 namespace media { | 63 namespace media { |
| 64 class KeySystemProperties; | 64 class KeySystemProperties; |
| 65 } | 65 } |
| 66 | 66 |
| 67 namespace service_manager { | |
| 68 class InterfaceRegistry; | |
| 69 } | |
| 70 | |
| 71 namespace content { | 67 namespace content { |
| 72 class BrowserPluginDelegate; | 68 class BrowserPluginDelegate; |
| 73 class MediaStreamRendererFactory; | 69 class MediaStreamRendererFactory; |
| 74 class RenderFrame; | 70 class RenderFrame; |
| 75 class RenderView; | 71 class RenderView; |
| 76 | 72 |
| 77 // Embedder API for participating in renderer logic. | 73 // Embedder API for participating in renderer logic. |
| 78 class CONTENT_EXPORT ContentRendererClient { | 74 class CONTENT_EXPORT ContentRendererClient { |
| 79 public: | 75 public: |
| 80 virtual ~ContentRendererClient() {} | 76 virtual ~ContentRendererClient() {} |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 | 350 |
| 355 // Whether this renderer should enforce preferences related to the WebRTC | 351 // Whether this renderer should enforce preferences related to the WebRTC |
| 356 // routing logic, i.e. allowing multiple routes and non-proxied UDP. | 352 // routing logic, i.e. allowing multiple routes and non-proxied UDP. |
| 357 virtual bool ShouldEnforceWebRTCRoutingPreferences(); | 353 virtual bool ShouldEnforceWebRTCRoutingPreferences(); |
| 358 | 354 |
| 359 // Notifies that a worker context has been created. This function is called | 355 // Notifies that a worker context has been created. This function is called |
| 360 // from the worker thread. | 356 // from the worker thread. |
| 361 virtual void DidInitializeWorkerContextOnWorkerThread( | 357 virtual void DidInitializeWorkerContextOnWorkerThread( |
| 362 v8::Local<v8::Context> context) {} | 358 v8::Local<v8::Context> context) {} |
| 363 | 359 |
| 364 // Allows the client to expose interfaces from the renderer process to the | |
| 365 // browser process via |registry|. | |
| 366 virtual void ExposeInterfacesToBrowser( | |
| 367 service_manager::InterfaceRegistry* interface_registry) {} | |
| 368 | |
| 369 // Overwrites the given URL to use an HTML5 embed if possible. | 360 // Overwrites the given URL to use an HTML5 embed if possible. |
| 370 // An empty URL is returned if the URL is not overriden. | 361 // An empty URL is returned if the URL is not overriden. |
| 371 virtual GURL OverrideFlashEmbedWithHTML(const GURL& url); | 362 virtual GURL OverrideFlashEmbedWithHTML(const GURL& url); |
| 372 | 363 |
| 373 // Provides parameters for initializing the global task scheduler. Default | 364 // Provides parameters for initializing the global task scheduler. Default |
| 374 // params are used if this returns nullptr. | 365 // params are used if this returns nullptr. |
| 375 virtual std::unique_ptr<base::TaskScheduler::InitParams> | 366 virtual std::unique_ptr<base::TaskScheduler::InitParams> |
| 376 GetTaskSchedulerInitParams(); | 367 GetTaskSchedulerInitParams(); |
| 377 | 368 |
| 378 // Returns true if the media pipeline can be suspended, or false otherwise. | 369 // Returns true if the media pipeline can be suspended, or false otherwise. |
| 379 virtual bool AllowMediaSuspend(); | 370 virtual bool AllowMediaSuspend(); |
| 380 }; | 371 }; |
| 381 | 372 |
| 382 } // namespace content | 373 } // namespace content |
| 383 | 374 |
| 384 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 375 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |