Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: content/public/renderer/content_renderer_client.h

Issue 883353012: Pass default renderer factory into CreateMediaRendererFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use scoped_ptr implicit upcast Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 class WebSpeechSynthesizer; 46 class WebSpeechSynthesizer;
47 class WebSpeechSynthesizerClient; 47 class WebSpeechSynthesizerClient;
48 class WebThemeEngine; 48 class WebThemeEngine;
49 class WebURLRequest; 49 class WebURLRequest;
50 class WebWorkerPermissionClientProxy; 50 class WebWorkerPermissionClientProxy;
51 struct WebPluginParams; 51 struct WebPluginParams;
52 struct WebURLError; 52 struct WebURLError;
53 } 53 }
54 54
55 namespace media { 55 namespace media {
56 class DefaultRendererFactory;
56 class RendererFactory; 57 class RendererFactory;
57 struct KeySystemInfo; 58 struct KeySystemInfo;
58 } 59 }
59 60
60 namespace content { 61 namespace content {
61 class BrowserPluginDelegate; 62 class BrowserPluginDelegate;
62 class DocumentState; 63 class DocumentState;
63 class RenderFrame; 64 class RenderFrame;
64 class RenderView; 65 class RenderView;
65 class SynchronousCompositor; 66 class SynchronousCompositor;
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 254
254 // Returns true if the given Pepper plugin is external (requiring special 255 // Returns true if the given Pepper plugin is external (requiring special
255 // startup steps). 256 // startup steps).
256 virtual bool IsExternalPepperPlugin(const std::string& module_name); 257 virtual bool IsExternalPepperPlugin(const std::string& module_name);
257 258
258 // Returns true if the page at |url| can use Pepper MediaStream APIs. 259 // Returns true if the page at |url| can use Pepper MediaStream APIs.
259 virtual bool AllowPepperMediaStreamAPI(const GURL& url); 260 virtual bool AllowPepperMediaStreamAPI(const GURL& url);
260 261
261 // Allows an embedder to provide a media::RendererFactory. 262 // Allows an embedder to provide a media::RendererFactory.
262 virtual scoped_ptr<media::RendererFactory> CreateMediaRendererFactory( 263 virtual scoped_ptr<media::RendererFactory> CreateMediaRendererFactory(
263 RenderFrame* render_frame); 264 RenderFrame* render_frame,
265 scoped_ptr<media::DefaultRendererFactory> default_factory);
264 266
265 // Gives the embedder a chance to register the key system(s) it supports by 267 // Gives the embedder a chance to register the key system(s) it supports by
266 // populating |key_systems|. 268 // populating |key_systems|.
267 virtual void AddKeySystems(std::vector<media::KeySystemInfo>* key_systems); 269 virtual void AddKeySystems(std::vector<media::KeySystemInfo>* key_systems);
268 270
269 // Returns true if we should report a detailed message (including a stack 271 // Returns true if we should report a detailed message (including a stack
270 // trace) for console [logs|errors|exceptions]. |source| is the WebKit- 272 // trace) for console [logs|errors|exceptions]. |source| is the WebKit-
271 // reported source for the error; this can point to a page or a script, 273 // reported source for the error; this can point to a page or a script,
272 // and can be external or internal. 274 // and can be external or internal.
273 virtual bool ShouldReportDetailedMessageForSource( 275 virtual bool ShouldReportDetailedMessageForSource(
(...skipping 16 matching lines...) Expand all
290 virtual bool IsPluginAllowedToUseDevChannelAPIs(); 292 virtual bool IsPluginAllowedToUseDevChannelAPIs();
291 293
292 // Returns a user agent override specific for |url|, or empty string if 294 // Returns a user agent override specific for |url|, or empty string if
293 // default user agent should be used. 295 // default user agent should be used.
294 virtual std::string GetUserAgentOverrideForURL(const GURL& url); 296 virtual std::string GetUserAgentOverrideForURL(const GURL& url);
295 }; 297 };
296 298
297 } // namespace content 299 } // namespace content
298 300
299 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 301 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698