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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 const RenderFrame* render_frame, | 257 const RenderFrame* render_frame, |
258 blink::WebPageVisibilityState* override_state); | 258 blink::WebPageVisibilityState* override_state); |
259 | 259 |
260 // Returns true if the given Pepper plugin is external (requiring special | 260 // Returns true if the given Pepper plugin is external (requiring special |
261 // startup steps). | 261 // startup steps). |
262 virtual bool IsExternalPepperPlugin(const std::string& module_name); | 262 virtual bool IsExternalPepperPlugin(const std::string& module_name); |
263 | 263 |
264 // Returns true if the page at |url| can use Pepper MediaStream APIs. | 264 // Returns true if the page at |url| can use Pepper MediaStream APIs. |
265 virtual bool AllowPepperMediaStreamAPI(const GURL& url); | 265 virtual bool AllowPepperMediaStreamAPI(const GURL& url); |
266 | 266 |
267 // Allows an embedder to provide a media::RendererFactory. | |
268 virtual std::unique_ptr<media::RendererFactory> CreateMediaRendererFactory( | |
269 RenderFrame* render_frame, | |
270 media::GpuVideoAcceleratorFactories* gpu_factories, | |
271 const scoped_refptr<media::MediaLog>& media_log); | |
272 | |
273 // Allows an embedder to provide a MediaStreamRendererFactory. | 267 // Allows an embedder to provide a MediaStreamRendererFactory. |
274 virtual std::unique_ptr<MediaStreamRendererFactory> | 268 virtual std::unique_ptr<MediaStreamRendererFactory> |
275 CreateMediaStreamRendererFactory(); | 269 CreateMediaStreamRendererFactory(); |
276 | 270 |
277 // Allows an embedder to provide a cc::ImageSerializationProcessor. | 271 // Allows an embedder to provide a cc::ImageSerializationProcessor. |
278 virtual cc::ImageSerializationProcessor* GetImageSerializationProcessor(); | 272 virtual cc::ImageSerializationProcessor* GetImageSerializationProcessor(); |
279 | 273 |
280 // Allows an embedder to provide a default image decode color space. | 274 // Allows an embedder to provide a default image decode color space. |
281 virtual std::unique_ptr<gfx::ICCProfile> GetImageDecodeColorProfile(); | 275 virtual std::unique_ptr<gfx::ICCProfile> GetImageDecodeColorProfile(); |
282 | 276 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 shell::InterfaceRegistry* interface_registry) {} | 362 shell::InterfaceRegistry* interface_registry) {} |
369 | 363 |
370 // Overwrites the given URL to use an HTML5 embed if possible. | 364 // Overwrites the given URL to use an HTML5 embed if possible. |
371 // An empty URL is returned if the URL is not overriden. | 365 // An empty URL is returned if the URL is not overriden. |
372 virtual GURL OverrideFlashEmbedWithHTML(const GURL& url); | 366 virtual GURL OverrideFlashEmbedWithHTML(const GURL& url); |
373 }; | 367 }; |
374 | 368 |
375 } // namespace content | 369 } // namespace content |
376 | 370 |
377 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 371 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |