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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 void appendBufferAsyncPart(); | 127 void appendBufferAsyncPart(); |
128 void appendError(bool decodeError); | 128 void appendError(bool decodeError); |
129 | 129 |
130 void removeAsyncPart(); | 130 void removeAsyncPart(); |
131 | 131 |
132 void appendStreamInternal(Stream*, ExceptionState&); | 132 void appendStreamInternal(Stream*, ExceptionState&); |
133 void appendStreamAsyncPart(); | 133 void appendStreamAsyncPart(); |
134 void appendStreamDone(bool success); | 134 void appendStreamDone(bool success); |
135 void clearAppendStreamState(); | 135 void clearAppendStreamState(); |
136 | 136 |
| 137 void removeMediaTracks(); |
| 138 |
137 // FileReaderLoaderClient interface | 139 // FileReaderLoaderClient interface |
138 void didStartLoading() override; | 140 void didStartLoading() override; |
139 void didReceiveDataForClient(const char* data, unsigned dataLength) override
; | 141 void didReceiveDataForClient(const char* data, unsigned dataLength) override
; |
140 void didFinishLoading() override; | 142 void didFinishLoading() override; |
141 void didFail(FileError::ErrorCode) override; | 143 void didFail(FileError::ErrorCode) override; |
142 | 144 |
143 OwnPtr<WebSourceBuffer> m_webSourceBuffer; | 145 OwnPtr<WebSourceBuffer> m_webSourceBuffer; |
144 Member<MediaSource> m_source; | 146 Member<MediaSource> m_source; |
145 Member<TrackDefaultList> m_trackDefaults; | 147 Member<TrackDefaultList> m_trackDefaults; |
146 Member<GenericEventQueue> m_asyncEventQueue; | 148 Member<GenericEventQueue> m_asyncEventQueue; |
(...skipping 18 matching lines...) Expand all Loading... |
165 bool m_streamMaxSizeValid; | 167 bool m_streamMaxSizeValid; |
166 unsigned long long m_streamMaxSize; | 168 unsigned long long m_streamMaxSize; |
167 Member<AsyncMethodRunner<SourceBuffer>> m_appendStreamAsyncPartRunner; | 169 Member<AsyncMethodRunner<SourceBuffer>> m_appendStreamAsyncPartRunner; |
168 Member<Stream> m_stream; | 170 Member<Stream> m_stream; |
169 OwnPtr<FileReaderLoader> m_loader; | 171 OwnPtr<FileReaderLoader> m_loader; |
170 }; | 172 }; |
171 | 173 |
172 } // namespace blink | 174 } // namespace blink |
173 | 175 |
174 #endif // SourceBuffer_h | 176 #endif // SourceBuffer_h |
OLD | NEW |