| 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 3aad6e757f7bc4a29ea1364cf6a359aa39d6ffd8..7166e16b7b77219112ef637d722341500351034d 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLMediaElement.h
|
| +++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.h
|
| @@ -478,12 +478,10 @@ private:
|
| void scheduleResolvePlayPromises();
|
| void scheduleRejectPlayPromises(ExceptionCode);
|
| void scheduleNotifyPlaying();
|
| -
|
| - void resolvePlayPromises();
|
| - // TODO(mlamouri): this is used for cancellable tasks because we can't pass
|
| - // parameters.
|
| - void rejectPlayPromises();
|
| + void resolveScheduledPlayPromises();
|
| + void rejectScheduledPlayPromises();
|
| void rejectPlayPromises(ExceptionCode, const String&);
|
| + void rejectPlayPromisesInternal(ExceptionCode, const String&);
|
|
|
| EnumerationHistogram& showControlsHistogram() const;
|
|
|
| @@ -593,9 +591,11 @@ private:
|
|
|
| Member<CueTimeline> m_cueTimeline;
|
|
|
| - HeapVector<Member<ScriptPromiseResolver>> m_playResolvers;
|
| + HeapVector<Member<ScriptPromiseResolver>> m_playPromiseResolvers;
|
| OwnPtr<CancellableTaskFactory> m_playPromiseResolveTask;
|
| OwnPtr<CancellableTaskFactory> m_playPromiseRejectTask;
|
| + HeapVector<Member<ScriptPromiseResolver>> m_playPromiseResolveList;
|
| + HeapVector<Member<ScriptPromiseResolver>> m_playPromiseRejectList;
|
| ExceptionCode m_playPromiseErrorCode;
|
|
|
| // This is a weak reference, since m_audioSourceNode holds a reference to us.
|
|
|