| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 class WebThemeEngine; | 51 class WebThemeEngine; |
| 52 class WebURLResponse; | 52 class WebURLResponse; |
| 53 class WebURLRequest; | 53 class WebURLRequest; |
| 54 class WebWorkerContentSettingsClientProxy; | 54 class WebWorkerContentSettingsClientProxy; |
| 55 struct WebPluginParams; | 55 struct WebPluginParams; |
| 56 struct WebURLError; | 56 struct WebURLError; |
| 57 } | 57 } |
| 58 | 58 |
| 59 namespace cc { | 59 namespace cc { |
| 60 class ImageSerializationProcessor; | 60 class ImageSerializationProcessor; |
| 61 class RemoteCompositorBridge; |
| 62 class RemoteProtoChannel; |
| 61 } | 63 } |
| 62 | 64 |
| 63 namespace gfx { | 65 namespace gfx { |
| 64 class ICCProfile; | 66 class ICCProfile; |
| 65 } | 67 } |
| 66 | 68 |
| 67 namespace media { | 69 namespace media { |
| 68 class GpuVideoAcceleratorFactories; | 70 class GpuVideoAcceleratorFactories; |
| 69 class KeySystemProperties; | 71 class KeySystemProperties; |
| 70 class MediaLog; | 72 class MediaLog; |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 // Returns true if the page at |url| can use Pepper MediaStream APIs. | 271 // Returns true if the page at |url| can use Pepper MediaStream APIs. |
| 270 virtual bool AllowPepperMediaStreamAPI(const GURL& url); | 272 virtual bool AllowPepperMediaStreamAPI(const GURL& url); |
| 271 | 273 |
| 272 // Allows an embedder to provide a MediaStreamRendererFactory. | 274 // Allows an embedder to provide a MediaStreamRendererFactory. |
| 273 virtual std::unique_ptr<MediaStreamRendererFactory> | 275 virtual std::unique_ptr<MediaStreamRendererFactory> |
| 274 CreateMediaStreamRendererFactory(); | 276 CreateMediaStreamRendererFactory(); |
| 275 | 277 |
| 276 // Allows an embedder to provide a cc::ImageSerializationProcessor. | 278 // Allows an embedder to provide a cc::ImageSerializationProcessor. |
| 277 virtual cc::ImageSerializationProcessor* GetImageSerializationProcessor(); | 279 virtual cc::ImageSerializationProcessor* GetImageSerializationProcessor(); |
| 278 | 280 |
| 281 // Allows an embedder to create the cc::RemoteCompositorBridge when using |
| 282 // remote compositing. |
| 283 virtual std::unique_ptr<cc::RemoteCompositorBridge> |
| 284 CreateRemoteCompositorBridge( |
| 285 cc::RemoteProtoChannel* remote_proto_channel, |
| 286 scoped_refptr<base::SingleThreadTaskRunner> compositor_main_task_runner); |
| 287 |
| 279 // Allows an embedder to provide a default image decode color space. | 288 // Allows an embedder to provide a default image decode color space. |
| 280 virtual std::unique_ptr<gfx::ICCProfile> GetImageDecodeColorProfile(); | 289 virtual std::unique_ptr<gfx::ICCProfile> GetImageDecodeColorProfile(); |
| 281 | 290 |
| 282 // Gives the embedder a chance to register the key system(s) it supports by | 291 // Gives the embedder a chance to register the key system(s) it supports by |
| 283 // populating |key_systems|. | 292 // populating |key_systems|. |
| 284 virtual void AddSupportedKeySystems( | 293 virtual void AddSupportedKeySystems( |
| 285 std::vector<std::unique_ptr<media::KeySystemProperties>>* key_systems); | 294 std::vector<std::unique_ptr<media::KeySystemProperties>>* key_systems); |
| 286 | 295 |
| 287 // Returns true if we should report a detailed message (including a stack | 296 // Returns true if we should report a detailed message (including a stack |
| 288 // trace) for console [logs|errors|exceptions]. |source| is the WebKit- | 297 // trace) for console [logs|errors|exceptions]. |source| is the WebKit- |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 shell::InterfaceRegistry* interface_registry) {} | 380 shell::InterfaceRegistry* interface_registry) {} |
| 372 | 381 |
| 373 // Overwrites the given URL to use an HTML5 embed if possible. | 382 // Overwrites the given URL to use an HTML5 embed if possible. |
| 374 // An empty URL is returned if the URL is not overriden. | 383 // An empty URL is returned if the URL is not overriden. |
| 375 virtual GURL OverrideFlashEmbedWithHTML(const GURL& url); | 384 virtual GURL OverrideFlashEmbedWithHTML(const GURL& url); |
| 376 }; | 385 }; |
| 377 | 386 |
| 378 } // namespace content | 387 } // namespace content |
| 379 | 388 |
| 380 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 389 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |