Index: media/blink/webmediaplayer_impl.cc |
diff --git a/media/blink/webmediaplayer_impl.cc b/media/blink/webmediaplayer_impl.cc |
index d6fb74b5f774b96c7c1863948592d0980eaca871..1a037a98fc5bc0107710c6a52e799fe1c6ac44e0 100644 |
--- a/media/blink/webmediaplayer_impl.cc |
+++ b/media/blink/webmediaplayer_impl.cc |
@@ -50,6 +50,7 @@ |
#include "third_party/WebKit/public/platform/WebEncryptedMediaTypes.h" |
#include "third_party/WebKit/public/platform/WebMediaPlayerClient.h" |
#include "third_party/WebKit/public/platform/WebMediaPlayerEncryptedMediaClient.h" |
+#include "third_party/WebKit/public/platform/WebMediaPlayerSource.h" |
#include "third_party/WebKit/public/platform/WebMediaSource.h" |
#include "third_party/WebKit/public/platform/WebRect.h" |
#include "third_party/WebKit/public/platform/WebSecurityOrigin.h" |
@@ -270,8 +271,12 @@ WebMediaPlayerImpl::~WebMediaPlayerImpl() { |
media_log_->CreateEvent(MediaLogEvent::WEBMEDIAPLAYER_DESTROYED)); |
} |
-void WebMediaPlayerImpl::load(LoadType load_type, const blink::WebURL& url, |
+void WebMediaPlayerImpl::load(LoadType load_type, |
+ const blink::WebMediaPlayerSource& source, |
CORSMode cors_mode) { |
+ // Only URL or MSE blob URL is supported. |
+ DCHECK(source.isURL()); |
+ blink::WebURL url = source.getAsURL(); |
DVLOG(1) << __FUNCTION__ << "(" << load_type << ", " << url << ", " |
<< cors_mode << ")"; |
if (!defer_load_cb_.is_null()) { |