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 // The |remote_proto_channel| outlives the RemoteCompositorBridge. |
| 284 virtual std::unique_ptr<cc::RemoteCompositorBridge> |
| 285 CreateRemoteCompositorBridge( |
| 286 cc::RemoteProtoChannel* remote_proto_channel, |
| 287 scoped_refptr<base::SingleThreadTaskRunner> compositor_main_task_runner); |
| 288 |
279 // Allows an embedder to provide a default image decode color space. | 289 // Allows an embedder to provide a default image decode color space. |
280 virtual std::unique_ptr<gfx::ICCProfile> GetImageDecodeColorProfile(); | 290 virtual std::unique_ptr<gfx::ICCProfile> GetImageDecodeColorProfile(); |
281 | 291 |
282 // Gives the embedder a chance to register the key system(s) it supports by | 292 // Gives the embedder a chance to register the key system(s) it supports by |
283 // populating |key_systems|. | 293 // populating |key_systems|. |
284 virtual void AddSupportedKeySystems( | 294 virtual void AddSupportedKeySystems( |
285 std::vector<std::unique_ptr<media::KeySystemProperties>>* key_systems); | 295 std::vector<std::unique_ptr<media::KeySystemProperties>>* key_systems); |
286 | 296 |
287 // Returns true if we should report a detailed message (including a stack | 297 // Returns true if we should report a detailed message (including a stack |
288 // trace) for console [logs|errors|exceptions]. |source| is the WebKit- | 298 // trace) for console [logs|errors|exceptions]. |source| is the WebKit- |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 service_manager::InterfaceRegistry* interface_registry) {} | 381 service_manager::InterfaceRegistry* interface_registry) {} |
372 | 382 |
373 // Overwrites the given URL to use an HTML5 embed if possible. | 383 // Overwrites the given URL to use an HTML5 embed if possible. |
374 // An empty URL is returned if the URL is not overriden. | 384 // An empty URL is returned if the URL is not overriden. |
375 virtual GURL OverrideFlashEmbedWithHTML(const GURL& url); | 385 virtual GURL OverrideFlashEmbedWithHTML(const GURL& url); |
376 }; | 386 }; |
377 | 387 |
378 } // namespace content | 388 } // namespace content |
379 | 389 |
380 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 390 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |