Chromium Code Reviews| 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..8e13ac000a6b147a5e73b3948689f9b27207ae2e 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; } |
| @@ -112,9 +112,11 @@ public: |
| enum NetworkState { NETWORK_EMPTY, NETWORK_IDLE, NETWORK_LOADING, NETWORK_NO_SOURCE }; |
| NetworkState getNetworkState() const; |
| + String preloadTypeToString(WebMediaPlayer::Preload preloadType) const; |
|
philipj_slow
2016/03/15 04:51:34
This ought to be a helper in the cpp file only, it
|
| String preload() const; |
| void setPreload(const AtomicString&); |
| WebMediaPlayer::Preload preloadType() const; |
| + String effectivePreload() const; |
| WebMediaPlayer::Preload effectivePreloadType() const; |
| TimeRanges* buffered() const; |
| @@ -345,7 +347,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 +357,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 +555,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; |