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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 58 |
59 namespace cc { | 59 namespace cc { |
60 class ImageSerializationProcessor; | 60 class ImageSerializationProcessor; |
61 } | 61 } |
62 | 62 |
63 namespace media { | 63 namespace media { |
64 class GpuVideoAcceleratorFactories; | 64 class GpuVideoAcceleratorFactories; |
65 class KeySystemProperties; | 65 class KeySystemProperties; |
66 class MediaLog; | 66 class MediaLog; |
67 class RendererFactory; | 67 class RendererFactory; |
68 struct KeySystemInfo; | |
69 } | 68 } |
70 | 69 |
71 namespace content { | 70 namespace content { |
72 class BrowserPluginDelegate; | 71 class BrowserPluginDelegate; |
73 class DocumentState; | 72 class DocumentState; |
74 class MediaStreamRendererFactory; | 73 class MediaStreamRendererFactory; |
75 class RenderFrame; | 74 class RenderFrame; |
76 class RenderView; | 75 class RenderView; |
77 class SynchronousCompositor; | 76 class SynchronousCompositor; |
78 struct WebPluginInfo; | 77 struct WebPluginInfo; |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 media::GpuVideoAcceleratorFactories* gpu_factories, | 262 media::GpuVideoAcceleratorFactories* gpu_factories, |
264 const scoped_refptr<media::MediaLog>& media_log); | 263 const scoped_refptr<media::MediaLog>& media_log); |
265 | 264 |
266 // Allows an embedder to provide a MediaStreamRendererFactory. | 265 // Allows an embedder to provide a MediaStreamRendererFactory. |
267 virtual std::unique_ptr<MediaStreamRendererFactory> | 266 virtual std::unique_ptr<MediaStreamRendererFactory> |
268 CreateMediaStreamRendererFactory(); | 267 CreateMediaStreamRendererFactory(); |
269 | 268 |
270 // Allows an embedder to provde a cc::ImageSerializationProcessor. | 269 // Allows an embedder to provde a cc::ImageSerializationProcessor. |
271 virtual cc::ImageSerializationProcessor* GetImageSerializationProcessor(); | 270 virtual cc::ImageSerializationProcessor* GetImageSerializationProcessor(); |
272 | 271 |
273 // DEPRECATED: Gives the embedder a chance to register the key system(s) it | |
274 // supports by populating |key_systems|. | |
275 // TODO(halliwell): move all clients to KeySystemProperties API below, then | |
276 // remove KeySystemInfo API. See crbug.com/457438. | |
277 virtual void AddKeySystems(std::vector<media::KeySystemInfo>* key_systems); | |
278 | |
279 // Gives the embedder a chance to register the key system(s) it supports by | 272 // Gives the embedder a chance to register the key system(s) it supports by |
280 // populating |key_systems|. | 273 // populating |key_systems|. |
281 virtual void AddSupportedKeySystems( | 274 virtual void AddSupportedKeySystems( |
282 std::vector<std::unique_ptr<media::KeySystemProperties>>* key_systems); | 275 std::vector<std::unique_ptr<media::KeySystemProperties>>* key_systems); |
283 | 276 |
284 // Returns true if we should report a detailed message (including a stack | 277 // Returns true if we should report a detailed message (including a stack |
285 // trace) for console [logs|errors|exceptions]. |source| is the WebKit- | 278 // trace) for console [logs|errors|exceptions]. |source| is the WebKit- |
286 // reported source for the error; this can point to a page or a script, | 279 // reported source for the error; this can point to a page or a script, |
287 // and can be external or internal. | 280 // and can be external or internal. |
288 virtual bool ShouldReportDetailedMessageForSource( | 281 virtual bool ShouldReportDetailedMessageForSource( |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 const GURL& url) {} | 341 const GURL& url) {} |
349 | 342 |
350 // Whether this renderer should enforce preferences related to the WebRTC | 343 // Whether this renderer should enforce preferences related to the WebRTC |
351 // routing logic, i.e. allowing multiple routes and non-proxied UDP. | 344 // routing logic, i.e. allowing multiple routes and non-proxied UDP. |
352 virtual bool ShouldEnforceWebRTCRoutingPreferences(); | 345 virtual bool ShouldEnforceWebRTCRoutingPreferences(); |
353 }; | 346 }; |
354 | 347 |
355 } // namespace content | 348 } // namespace content |
356 | 349 |
357 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 350 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |