Chromium Code Reviews

Unified Diff: components/html_viewer/media_factory.cc

Issue 1308983005: NOT FOR LANDING Implement WebMediaSession (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add forward declaration Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: components/html_viewer/media_factory.cc
diff --git a/components/html_viewer/media_factory.cc b/components/html_viewer/media_factory.cc
index dda9427c9fa1a4c593603a7086ed63a8093483af..a1196371571371a5d98b7b990440f81675286709 100644
--- a/components/html_viewer/media_factory.cc
+++ b/components/html_viewer/media_factory.cc
@@ -82,6 +82,7 @@ blink::WebMediaPlayer* MediaFactory::CreateMediaPlayer(
blink::WebMediaPlayerClient* client,
blink::WebMediaPlayerEncryptedMediaClient* encrypted_client,
blink::WebContentDecryptionModule* initial_cdm,
+ blink::WebMediaSession* session,
mojo::Shell* shell) {
#if defined(OS_ANDROID)
// TODO(xhwang): Get CreateMediaPlayer working on android.
@@ -106,7 +107,7 @@ blink::WebMediaPlayer* MediaFactory::CreateMediaPlayer(
compositor_task_runner_, media::WebMediaPlayerParams::Context3DCB(),
base::Bind(&v8::Isolate::AdjustAmountOfExternalAllocatedMemory,
base::Unretained(blink::mainThreadIsolate())),
- GetMediaPermission(), initial_cdm);
+ GetMediaPermission(), initial_cdm, session);
base::WeakPtr<media::WebMediaPlayerDelegate> delegate;
if (!url_index_.get() || url_index_->frame() != frame) {
« no previous file with comments | « components/html_viewer/media_factory.h ('k') | content/browser/media/android/browser_media_player_manager.h » ('j') | no next file with comments »

Powered by Google App Engine