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

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

Issue 14722011: MediaPlayer cleanup, part one of N (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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
« no previous file with comments | « Source/core/html/HTMLMediaElement.h ('k') | Source/core/platform/MIMETypeRegistry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLMediaElement.cpp
diff --git a/Source/core/html/HTMLMediaElement.cpp b/Source/core/html/HTMLMediaElement.cpp
index da5b20e979af42a35e0c336102eef9479ee7cdef..abd03896f6ab085953dbd0290bb3e871b4254681 100644
--- a/Source/core/html/HTMLMediaElement.cpp
+++ b/Source/core/html/HTMLMediaElement.cpp
@@ -573,7 +573,7 @@ HTMLMediaElement::NetworkState HTMLMediaElement::networkState() const
String HTMLMediaElement::canPlayType(const String& mimeType, const String& keySystem, const KURL& url) const
{
- MediaPlayer::SupportsType support = MediaPlayer::supportsType(ContentType(mimeType), keySystem, url, this);
+ MediaPlayer::SupportsType support = MediaPlayer::supportsType(ContentType(mimeType), keySystem, url);
String canPlay;
// 4.8.10.3
@@ -3056,7 +3056,7 @@ KURL HTMLMediaElement::selectNextSourceChild(ContentType* contentType, String* k
if (shouldLog)
LOG(Media, "HTMLMediaElement::selectNextSourceChild - 'type' is '%s' - key system is '%s'", type.utf8().data(), system.utf8().data());
#endif
- if (!MediaPlayer::supportsType(ContentType(type), system, mediaURL, this))
+ if (!MediaPlayer::supportsType(ContentType(type), system, mediaURL))
goto check_again;
}
@@ -3875,26 +3875,6 @@ void HTMLMediaElement::setShouldDelayLoadEvent(bool shouldDelay)
}
-void HTMLMediaElement::getSitesInMediaCache(Vector<String>& sites)
-{
- MediaPlayer::getSitesInMediaCache(sites);
-}
-
-void HTMLMediaElement::clearMediaCache()
-{
- MediaPlayer::clearMediaCache();
-}
-
-void HTMLMediaElement::clearMediaCacheForSite(const String& site)
-{
- MediaPlayer::clearMediaCacheForSite(site);
-}
-
-void HTMLMediaElement::resetMediaEngines()
-{
- MediaPlayer::resetMediaEngines();
-}
-
MediaControls* HTMLMediaElement::mediaControls() const
{
return toMediaControls(userAgentShadowRoot()->firstChild());
@@ -4236,17 +4216,6 @@ MediaPlayerClient::CORSMode HTMLMediaElement::mediaPlayerCORSMode() const
return Anonymous;
}
-bool HTMLMediaElement::mediaPlayerNeedsSiteSpecificHacks() const
-{
- Settings* settings = document()->settings();
- return settings && settings->needsSiteSpecificQuirks();
-}
-
-String HTMLMediaElement::mediaPlayerDocumentHost() const
-{
- return document()->url().host();
-}
-
void HTMLMediaElement::mediaPlayerEnterFullscreen()
{
enterFullscreen();
« no previous file with comments | « Source/core/html/HTMLMediaElement.h ('k') | Source/core/platform/MIMETypeRegistry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698