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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 double appendWindowStart() const; | 88 double appendWindowStart() const; |
89 void setAppendWindowStart(double, ExceptionState&); | 89 void setAppendWindowStart(double, ExceptionState&); |
90 double appendWindowEnd() const; | 90 double appendWindowEnd() const; |
91 void setAppendWindowEnd(double, ExceptionState&); | 91 void setAppendWindowEnd(double, ExceptionState&); |
92 TrackDefaultList* trackDefaults() const { return m_trackDefaults.get(); } | 92 TrackDefaultList* trackDefaults() const { return m_trackDefaults.get(); } |
93 void setTrackDefaults(TrackDefaultList*, ExceptionState&); | 93 void setTrackDefaults(TrackDefaultList*, ExceptionState&); |
94 | 94 |
95 AudioTrackList& audioTracks(); | 95 AudioTrackList& audioTracks(); |
96 VideoTrackList& videoTracks(); | 96 VideoTrackList& videoTracks(); |
97 | 97 |
98 void abortIfUpdating(); | |
99 void removedFromMediaSource(); | 98 void removedFromMediaSource(); |
| 99 double highestPresentationTimestamp(); |
100 | 100 |
101 // ActiveScriptWrappable | 101 // ActiveScriptWrappable |
102 bool hasPendingActivity() const final; | 102 bool hasPendingActivity() const final; |
103 | 103 |
104 // ActiveDOMObject interface | 104 // ActiveDOMObject interface |
105 void suspend() override; | 105 void suspend() override; |
106 void resume() override; | 106 void resume() override; |
107 void stop() override; | 107 void stop() override; |
108 | 108 |
109 // EventTarget interface | 109 // EventTarget interface |
(...skipping 29 matching lines...) Expand all Loading... |
139 void appendBufferAsyncPart(); | 139 void appendBufferAsyncPart(); |
140 void appendError(AppendError); | 140 void appendError(AppendError); |
141 | 141 |
142 void removeAsyncPart(); | 142 void removeAsyncPart(); |
143 | 143 |
144 void appendStreamInternal(Stream*, ExceptionState&); | 144 void appendStreamInternal(Stream*, ExceptionState&); |
145 void appendStreamAsyncPart(); | 145 void appendStreamAsyncPart(); |
146 void appendStreamDone(AppendStreamDoneAction); | 146 void appendStreamDone(AppendStreamDoneAction); |
147 void clearAppendStreamState(); | 147 void clearAppendStreamState(); |
148 | 148 |
| 149 void cancelRemove(); |
| 150 void abortIfUpdating(); |
| 151 |
149 void removeMediaTracks(); | 152 void removeMediaTracks(); |
150 | 153 |
151 // FileReaderLoaderClient interface | 154 // FileReaderLoaderClient interface |
152 void didStartLoading() override; | 155 void didStartLoading() override; |
153 void didReceiveDataForClient(const char* data, unsigned dataLength) override
; | 156 void didReceiveDataForClient(const char* data, unsigned dataLength) override
; |
154 void didFinishLoading() override; | 157 void didFinishLoading() override; |
155 void didFail(FileError::ErrorCode) override; | 158 void didFail(FileError::ErrorCode) override; |
156 | 159 |
157 std::unique_ptr<WebSourceBuffer> m_webSourceBuffer; | 160 std::unique_ptr<WebSourceBuffer> m_webSourceBuffer; |
158 Member<MediaSource> m_source; | 161 Member<MediaSource> m_source; |
(...skipping 20 matching lines...) Expand all Loading... |
179 bool m_streamMaxSizeValid; | 182 bool m_streamMaxSizeValid; |
180 unsigned long long m_streamMaxSize; | 183 unsigned long long m_streamMaxSize; |
181 Member<AsyncMethodRunner<SourceBuffer>> m_appendStreamAsyncPartRunner; | 184 Member<AsyncMethodRunner<SourceBuffer>> m_appendStreamAsyncPartRunner; |
182 Member<Stream> m_stream; | 185 Member<Stream> m_stream; |
183 std::unique_ptr<FileReaderLoader> m_loader; | 186 std::unique_ptr<FileReaderLoader> m_loader; |
184 }; | 187 }; |
185 | 188 |
186 } // namespace blink | 189 } // namespace blink |
187 | 190 |
188 #endif // SourceBuffer_h | 191 #endif // SourceBuffer_h |
OLD | NEW |