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

Unified Diff: content/public/renderer/content_renderer_client.h

Issue 18123002: Migrate webkit/renderer/media/ to content/renderer/media/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase on mo time Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: content/public/renderer/content_renderer_client.h
diff --git a/content/public/renderer/content_renderer_client.h b/content/public/renderer/content_renderer_client.h
index 073d0af28f6cd4087403575e2895d5fa80afe95b..9ed12ad42e98019e8df11c68c76811f4d664edd0 100644
--- a/content/public/renderer/content_renderer_client.h
+++ b/content/public/renderer/content_renderer_client.h
@@ -31,7 +31,6 @@ class WebFrame;
class WebHyphenator;
class WebMIDIAccessor;
class WebMIDIAccessorClient;
-class WebMediaPlayerClient;
class WebMediaStreamCenter;
class WebMediaStreamCenterClient;
class WebPlugin;
@@ -55,9 +54,8 @@ struct WebPluginInfo;
}
namespace webkit_media {
-class WebMediaPlayerDelegate;
-class WebMediaPlayerImpl;
-class WebMediaPlayerParams;
+class MediaLoadDelegate;
+class MediaStreamClient;
}
namespace content {
@@ -126,14 +124,11 @@ class CONTENT_EXPORT ContentRendererClient {
std::string* error_html,
string16* error_description) {}
- // Allows embedder to override creating a WebMediaPlayerImpl. If it returns
- // NULL the content layer will create the media player.
- virtual webkit_media::WebMediaPlayerImpl* OverrideCreateWebMediaPlayer(
- RenderView* render_view,
- WebKit::WebFrame* frame,
- WebKit::WebMediaPlayerClient* client,
- base::WeakPtr<webkit_media::WebMediaPlayerDelegate> delegate,
- const webkit_media::WebMediaPlayerParams& params);
+ // Allows the embedder to control when media resources are loaded. Embedders
+ // can run |closure| immediately if they don't wish to defer media resource
+ // loading.
+ virtual void DeferMediaLoad(RenderView* render_view,
+ const base::Closure& closure);
// Allows the embedder to override creating a WebMediaStreamCenter. If it
// returns NULL the content layer will create the stream center.
@@ -146,6 +141,10 @@ class CONTENT_EXPORT ContentRendererClient {
OverrideCreateWebRTCPeerConnectionHandler(
WebKit::WebRTCPeerConnectionHandlerClient* client);
+ // Allows the embedder to override creating a MediaStreamClient. If it returns
+ // NULL the content layer will create the media stream client.
+ virtual webkit_media::MediaStreamClient* OverrideCreateMediaStreamClient();
+
// Allows the embedder to override creating a WebMIDIAccessor. If it
// returns NULL the content layer will create the MIDI accessor.
virtual WebKit::WebMIDIAccessor* OverrideCreateMIDIAccessor(

Powered by Google App Engine
This is Rietveld 408576698