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

Unified Diff: third_party/WebKit/Source/core/html/HTMLMediaElement.cpp

Issue 2844963006: Remove WebMediaPlayerClient::RequestReload() (Closed)
Patch Set: Created 3 years, 8 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: third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
index 42d58c920ec8072b4c36e311858af46ae450e684..f7d904d0efa63c92a423fdd01a7a1ebfc1d1b7db 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
@@ -1195,7 +1195,7 @@ void HTMLMediaElement::LoadResource(const WebMediaPlayerSource& source,
GetLayoutObject()->UpdateFromElement();
}
-void HTMLMediaElement::StartPlayerLoad(const KURL& player_provided_url) {
+void HTMLMediaElement::StartPlayerLoad() {
DCHECK(!web_media_player_);
WebMediaPlayerSource source;
@@ -1215,8 +1215,7 @@ void HTMLMediaElement::StartPlayerLoad(const KURL& player_provided_url) {
// 'authentication flag' to control how user:pass embedded in a
// media resource URL should be treated, then update the handling
// here to match.
- KURL request_url =
- player_provided_url.IsNull() ? KURL(current_src_) : player_provided_url;
+ KURL request_url = current_src_;
if (!request_url.User().IsEmpty())
request_url.SetUser(String());
if (!request_url.Pass().IsEmpty())
@@ -3225,15 +3224,6 @@ WebMediaPlayer::TrackId HTMLMediaElement::GetSelectedVideoTrackId() {
return track->id();
}
-void HTMLMediaElement::RequestReload(const WebURL& new_url) {
- DCHECK(GetWebMediaPlayer());
- DCHECK(!src_object_);
- DCHECK(new_url.IsValid());
- DCHECK(IsSafeToLoadURL(new_url, kComplain));
- ResetMediaPlayerAndMediaSource();
- StartPlayerLoad(new_url);
-}
-
bool HTMLMediaElement::IsAutoplayingMuted() {
return autoplay_policy_->IsAutoplayingMuted();
}
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLMediaElement.h ('k') | third_party/WebKit/public/platform/WebMediaPlayerClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698