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

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

Issue 1522463003: Refactor resource load and resource selection algorithms as per spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move preloadTypeToString to anonymous namespace Created 4 years, 9 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.h
diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.h b/third_party/WebKit/Source/core/html/HTMLMediaElement.h
index 5f22ef0d8d3ac51e6932f75e7a28498826335270..3ab377a3aa653c0c7224dae83c986b89f65bac36 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.h
@@ -97,7 +97,7 @@ public:
LoadMediaResource = 1 << 0,
LoadTextTrackResource = 1 << 1
};
- void scheduleDelayedAction(DelayedActionType);
+ void scheduleTextTrackResourceLoad();
bool hasRemoteRoutes() const { return m_remoteRoutesAvailable; }
bool isPlayingRemotely() const { return m_playingRemotely; }
@@ -115,6 +115,7 @@ public:
String preload() const;
void setPreload(const AtomicString&);
WebMediaPlayer::Preload preloadType() const;
+ String effectivePreload() const;
WebMediaPlayer::Preload effectivePreloadType() const;
TimeRanges* buffered() const;
@@ -345,7 +346,8 @@ private:
void scheduleEvent(const AtomicString& eventName); // FIXME: Rename to scheduleNamedEvent for clarity.
// loading
- void prepareForLoad();
+ void invokeLoadAlgorithm();
+ void invokeResourceSelectionAlgorithm();
void loadInternal();
void selectMediaResource();
void loadResource(const KURL&, ContentType&);
@@ -354,14 +356,14 @@ private:
WebMediaPlayer::LoadType loadType() const;
void scheduleNextSourceChild();
void loadNextSourceChild();
- void clearMediaPlayer(int flags);
+ void clearMediaPlayer();
void clearMediaPlayerAndAudioSourceProviderClientWithoutLocking();
bool havePotentialSourceChild();
void noneSupported();
void mediaEngineError(MediaError*);
void cancelPendingEventsAndCallbacks();
void waitForSourceChange();
- void prepareToPlay();
+ void setIgnorePreloadNone();
KURL selectNextSourceChild(ContentType*, InvalidURLAction);
@@ -552,8 +554,7 @@ private:
bool m_closedCaptionsVisible : 1;
- bool m_havePreparedToPlay : 1;
-
+ bool m_ignorePreloadNone : 1;
bool m_tracksAreReady : 1;
bool m_processingPreferenceChange : 1;
bool m_remoteRoutesAvailable : 1;

Powered by Google App Engine
This is Rietveld 408576698