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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 } // namespace blink | 58 } // namespace blink |
59 | 59 |
60 namespace gfx { | |
61 class ICCProfile; | |
62 } | |
63 | |
64 namespace media { | 60 namespace media { |
65 class KeySystemProperties; | 61 class KeySystemProperties; |
66 } | 62 } |
67 | 63 |
68 namespace content { | 64 namespace content { |
69 class BrowserPluginDelegate; | 65 class BrowserPluginDelegate; |
70 class MediaStreamRendererFactory; | 66 class MediaStreamRendererFactory; |
71 class RenderFrame; | 67 class RenderFrame; |
72 class RenderView; | 68 class RenderView; |
73 | 69 |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 // startup steps). | 247 // startup steps). |
252 virtual bool IsExternalPepperPlugin(const std::string& module_name); | 248 virtual bool IsExternalPepperPlugin(const std::string& module_name); |
253 | 249 |
254 // Returns true if the page at |url| can use Pepper MediaStream APIs. | 250 // Returns true if the page at |url| can use Pepper MediaStream APIs. |
255 virtual bool AllowPepperMediaStreamAPI(const GURL& url); | 251 virtual bool AllowPepperMediaStreamAPI(const GURL& url); |
256 | 252 |
257 // Allows an embedder to provide a MediaStreamRendererFactory. | 253 // Allows an embedder to provide a MediaStreamRendererFactory. |
258 virtual std::unique_ptr<MediaStreamRendererFactory> | 254 virtual std::unique_ptr<MediaStreamRendererFactory> |
259 CreateMediaStreamRendererFactory(); | 255 CreateMediaStreamRendererFactory(); |
260 | 256 |
261 // Allows an embedder to provide a default image decode color space. | |
262 virtual std::unique_ptr<gfx::ICCProfile> GetImageDecodeColorProfile(); | |
263 | |
264 // Allows embedder to register the key system(s) it supports by populating | 257 // Allows embedder to register the key system(s) it supports by populating |
265 // |key_systems|. | 258 // |key_systems|. |
266 virtual void AddSupportedKeySystems( | 259 virtual void AddSupportedKeySystems( |
267 std::vector<std::unique_ptr<media::KeySystemProperties>>* key_systems); | 260 std::vector<std::unique_ptr<media::KeySystemProperties>>* key_systems); |
268 | 261 |
269 // Signal that embedder has changed key systems. | 262 // Signal that embedder has changed key systems. |
270 // TODO(chcunningham): Refactor this to a proper change "observer" API that is | 263 // TODO(chcunningham): Refactor this to a proper change "observer" API that is |
271 // less fragile (don't assume AddSupportedKeySystems has just one caller). | 264 // less fragile (don't assume AddSupportedKeySystems has just one caller). |
272 virtual bool IsKeySystemsUpdateNeeded(); | 265 virtual bool IsKeySystemsUpdateNeeded(); |
273 | 266 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 virtual std::unique_ptr<base::TaskScheduler::InitParams> | 360 virtual std::unique_ptr<base::TaskScheduler::InitParams> |
368 GetTaskSchedulerInitParams(); | 361 GetTaskSchedulerInitParams(); |
369 | 362 |
370 // Returns true if the media pipeline can be suspended, or false otherwise. | 363 // Returns true if the media pipeline can be suspended, or false otherwise. |
371 virtual bool AllowMediaSuspend(); | 364 virtual bool AllowMediaSuspend(); |
372 }; | 365 }; |
373 | 366 |
374 } // namespace content | 367 } // namespace content |
375 | 368 |
376 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 369 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |