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 // FileReaderLoaderClient interface | 159 // FileReaderLoaderClient interface |
157 void didStartLoading() override; | 160 void didStartLoading() override; |
158 void didReceiveDataForClient(const char* data, unsigned dataLength) override
; | 161 void didReceiveDataForClient(const char* data, unsigned dataLength) override
; |
159 void didFinishLoading() override; | 162 void didFinishLoading() override; |
160 void didFail(FileError::ErrorCode) override; | 163 void didFail(FileError::ErrorCode) override; |
161 | 164 |
162 std::unique_ptr<WebSourceBuffer> m_webSourceBuffer; | 165 std::unique_ptr<WebSourceBuffer> m_webSourceBuffer; |
163 Member<MediaSource> m_source; | 166 Member<MediaSource> m_source; |
(...skipping 20 matching lines...) Expand all Loading... |
184 bool m_streamMaxSizeValid; | 187 bool m_streamMaxSizeValid; |
185 unsigned long long m_streamMaxSize; | 188 unsigned long long m_streamMaxSize; |
186 Member<AsyncMethodRunner<SourceBuffer>> m_appendStreamAsyncPartRunner; | 189 Member<AsyncMethodRunner<SourceBuffer>> m_appendStreamAsyncPartRunner; |
187 Member<Stream> m_stream; | 190 Member<Stream> m_stream; |
188 std::unique_ptr<FileReaderLoader> m_loader; | 191 std::unique_ptr<FileReaderLoader> m_loader; |
189 }; | 192 }; |
190 | 193 |
191 } // namespace blink | 194 } // namespace blink |
192 | 195 |
193 #endif // SourceBuffer_h | 196 #endif // SourceBuffer_h |
OLD | NEW |