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

Side by Side Diff: third_party/WebKit/Source/modules/mediasource/MediaSource.h

Issue 2102323002: MSE: Experimental support for new abort and duration behavior (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes all remaining comments so far Created 4 years, 5 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 void setReadyState(const AtomicString&); 120 void setReadyState(const AtomicString&);
121 void onReadyStateChange(const AtomicString&, const AtomicString&); 121 void onReadyStateChange(const AtomicString&, const AtomicString&);
122 122
123 bool isUpdating() const; 123 bool isUpdating() const;
124 124
125 std::unique_ptr<WebSourceBuffer> createWebSourceBuffer(const String& type, c onst String& codecs, ExceptionState&); 125 std::unique_ptr<WebSourceBuffer> createWebSourceBuffer(const String& type, c onst String& codecs, ExceptionState&);
126 void scheduleEvent(const AtomicString& eventName); 126 void scheduleEvent(const AtomicString& eventName);
127 void endOfStreamInternal(const WebMediaSource::EndOfStreamStatus, ExceptionS tate&); 127 void endOfStreamInternal(const WebMediaSource::EndOfStreamStatus, ExceptionS tate&);
128 128
129 // Implements the duration change algorithm. 129 // Implements the duration change algorithm.
130 // https://dvcs.w3.org/hg/html-media/raw-file/default/media-source/media-sou rce.html#duration-change-algorithm 130 // http://w3c.github.io/media-source/#duration-change-algorithm
131 void durationChangeAlgorithm(double newDuration); 131 void durationChangeAlgorithm(double newDuration, ExceptionState&);
132 132
133 std::unique_ptr<WebMediaSource> m_webMediaSource; 133 std::unique_ptr<WebMediaSource> m_webMediaSource;
134 AtomicString m_readyState; 134 AtomicString m_readyState;
135 Member<GenericEventQueue> m_asyncEventQueue; 135 Member<GenericEventQueue> m_asyncEventQueue;
136 WeakMember<HTMLMediaElement> m_attachedElement; 136 WeakMember<HTMLMediaElement> m_attachedElement;
137 137
138 Member<SourceBufferList> m_sourceBuffers; 138 Member<SourceBufferList> m_sourceBuffers;
139 Member<SourceBufferList> m_activeSourceBuffers; 139 Member<SourceBufferList> m_activeSourceBuffers;
140 140
141 Member<TimeRanges> m_liveSeekableRange; 141 Member<TimeRanges> m_liveSeekableRange;
142 142
143 bool m_isAddedToRegistry; 143 bool m_isAddedToRegistry;
144 }; 144 };
145 145
146 } // namespace blink 146 } // namespace blink
147 147
148 #endif // MediaSource_h 148 #endif // MediaSource_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698