OLD | NEW |
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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 DEFINE_ATTRIBUTE_EVENT_LISTENER(update); | 93 DEFINE_ATTRIBUTE_EVENT_LISTENER(update); |
94 DEFINE_ATTRIBUTE_EVENT_LISTENER(updateend); | 94 DEFINE_ATTRIBUTE_EVENT_LISTENER(updateend); |
95 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); | 95 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); |
96 DEFINE_ATTRIBUTE_EVENT_LISTENER(abort); | 96 DEFINE_ATTRIBUTE_EVENT_LISTENER(abort); |
97 TrackDefaultList* trackDefaults() const { return m_trackDefaults.get(); } | 97 TrackDefaultList* trackDefaults() const { return m_trackDefaults.get(); } |
98 void setTrackDefaults(TrackDefaultList*, ExceptionState&); | 98 void setTrackDefaults(TrackDefaultList*, ExceptionState&); |
99 | 99 |
100 AudioTrackList& audioTracks(); | 100 AudioTrackList& audioTracks(); |
101 VideoTrackList& videoTracks(); | 101 VideoTrackList& videoTracks(); |
102 | 102 |
103 void abortIfUpdating(); | |
104 void removedFromMediaSource(); | 103 void removedFromMediaSource(); |
| 104 double highestPresentationTimestamp(); |
105 | 105 |
106 // ActiveScriptWrappable | 106 // ActiveScriptWrappable |
107 bool hasPendingActivity() const final; | 107 bool hasPendingActivity() const final; |
108 | 108 |
109 // ActiveDOMObject interface | 109 // ActiveDOMObject interface |
110 void suspend() override; | 110 void suspend() override; |
111 void resume() override; | 111 void resume() override; |
112 void stop() override; | 112 void stop() override; |
113 | 113 |
114 // EventTarget interface | 114 // EventTarget interface |
(...skipping 29 matching lines...) Expand all Loading... |
144 void appendBufferAsyncPart(); | 144 void appendBufferAsyncPart(); |
145 void appendError(AppendError); | 145 void appendError(AppendError); |
146 | 146 |
147 void removeAsyncPart(); | 147 void removeAsyncPart(); |
148 | 148 |
149 void appendStreamInternal(Stream*, ExceptionState&); | 149 void appendStreamInternal(Stream*, ExceptionState&); |
150 void appendStreamAsyncPart(); | 150 void appendStreamAsyncPart(); |
151 void appendStreamDone(AppendStreamDoneAction); | 151 void appendStreamDone(AppendStreamDoneAction); |
152 void clearAppendStreamState(); | 152 void clearAppendStreamState(); |
153 | 153 |
| 154 void cancelRemove(); |
| 155 void abortIfUpdating(); |
| 156 |
154 void removeMediaTracks(); | 157 void removeMediaTracks(); |
155 | 158 |
156 const TrackDefault* getTrackDefault(const AtomicString& trackType, const Ato
micString& byteStreamTrackID) const; | 159 const TrackDefault* getTrackDefault(const AtomicString& trackType, const Ato
micString& byteStreamTrackID) const; |
157 AtomicString defaultTrackLabel(const AtomicString& trackType, const AtomicSt
ring& byteStreamTrackID) const; | 160 AtomicString defaultTrackLabel(const AtomicString& trackType, const AtomicSt
ring& byteStreamTrackID) const; |
158 AtomicString defaultTrackLanguage(const AtomicString& trackType, const Atomi
cString& byteStreamTrackID) const; | 161 AtomicString defaultTrackLanguage(const AtomicString& trackType, const Atomi
cString& byteStreamTrackID) const; |
159 | 162 |
160 // FileReaderLoaderClient interface | 163 // FileReaderLoaderClient interface |
161 void didStartLoading() override; | 164 void didStartLoading() override; |
162 void didReceiveDataForClient(const char* data, unsigned dataLength) override
; | 165 void didReceiveDataForClient(const char* data, unsigned dataLength) override
; |
163 void didFinishLoading() override; | 166 void didFinishLoading() override; |
(...skipping 25 matching lines...) Expand all Loading... |
189 bool m_streamMaxSizeValid; | 192 bool m_streamMaxSizeValid; |
190 unsigned long long m_streamMaxSize; | 193 unsigned long long m_streamMaxSize; |
191 Member<AsyncMethodRunner<SourceBuffer>> m_appendStreamAsyncPartRunner; | 194 Member<AsyncMethodRunner<SourceBuffer>> m_appendStreamAsyncPartRunner; |
192 Member<Stream> m_stream; | 195 Member<Stream> m_stream; |
193 std::unique_ptr<FileReaderLoader> m_loader; | 196 std::unique_ptr<FileReaderLoader> m_loader; |
194 }; | 197 }; |
195 | 198 |
196 } // namespace blink | 199 } // namespace blink |
197 | 200 |
198 #endif // SourceBuffer_h | 201 #endif // SourceBuffer_h |
OLD | NEW |