| 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 const TrackDefault* getTrackDefaultHelper(const AtomicString& trackType, con
st AtomicString& byteStreamTrackID) const; |
| 138 AtomicString defaultTrackLabel(const AtomicString& trackType, const AtomicSt
ring& byteStreamTrackID) const; |
| 139 AtomicString defaultTrackLanguage(const AtomicString& trackType, const Atomi
cString& byteStreamTrackID) const; |
| 140 |
| 137 // FileReaderLoaderClient interface | 141 // FileReaderLoaderClient interface |
| 138 void didStartLoading() override; | 142 void didStartLoading() override; |
| 139 void didReceiveDataForClient(const char* data, unsigned dataLength) override
; | 143 void didReceiveDataForClient(const char* data, unsigned dataLength) override
; |
| 140 void didFinishLoading() override; | 144 void didFinishLoading() override; |
| 141 void didFail(FileError::ErrorCode) override; | 145 void didFail(FileError::ErrorCode) override; |
| 142 | 146 |
| 143 OwnPtr<WebSourceBuffer> m_webSourceBuffer; | 147 OwnPtr<WebSourceBuffer> m_webSourceBuffer; |
| 144 Member<MediaSource> m_source; | 148 Member<MediaSource> m_source; |
| 145 Member<TrackDefaultList> m_trackDefaults; | 149 Member<TrackDefaultList> m_trackDefaults; |
| 146 Member<GenericEventQueue> m_asyncEventQueue; | 150 Member<GenericEventQueue> m_asyncEventQueue; |
| 147 | 151 |
| 148 AtomicString m_mode; | 152 AtomicString m_mode; |
| 149 bool m_updating; | 153 bool m_updating; |
| 150 double m_timestampOffset; | 154 double m_timestampOffset; |
| 151 Member<AudioTrackList> m_audioTracks; | 155 Member<AudioTrackList> m_audioTracks; |
| 152 Member<VideoTrackList> m_videoTracks; | 156 Member<VideoTrackList> m_videoTracks; |
| 157 bool m_activeTrack = false; |
| 153 double m_appendWindowStart; | 158 double m_appendWindowStart; |
| 154 double m_appendWindowEnd; | 159 double m_appendWindowEnd; |
| 155 bool m_firstInitializationSegmentReceived; | 160 bool m_firstInitializationSegmentReceived; |
| 156 | 161 |
| 157 Vector<unsigned char> m_pendingAppendData; | 162 Vector<unsigned char> m_pendingAppendData; |
| 158 size_t m_pendingAppendDataOffset; | 163 size_t m_pendingAppendDataOffset; |
| 159 Member<AsyncMethodRunner<SourceBuffer>> m_appendBufferAsyncPartRunner; | 164 Member<AsyncMethodRunner<SourceBuffer>> m_appendBufferAsyncPartRunner; |
| 160 | 165 |
| 161 double m_pendingRemoveStart; | 166 double m_pendingRemoveStart; |
| 162 double m_pendingRemoveEnd; | 167 double m_pendingRemoveEnd; |
| 163 Member<AsyncMethodRunner<SourceBuffer>> m_removeAsyncPartRunner; | 168 Member<AsyncMethodRunner<SourceBuffer>> m_removeAsyncPartRunner; |
| 164 | 169 |
| 165 bool m_streamMaxSizeValid; | 170 bool m_streamMaxSizeValid; |
| 166 unsigned long long m_streamMaxSize; | 171 unsigned long long m_streamMaxSize; |
| 167 Member<AsyncMethodRunner<SourceBuffer>> m_appendStreamAsyncPartRunner; | 172 Member<AsyncMethodRunner<SourceBuffer>> m_appendStreamAsyncPartRunner; |
| 168 Member<Stream> m_stream; | 173 Member<Stream> m_stream; |
| 169 OwnPtr<FileReaderLoader> m_loader; | 174 OwnPtr<FileReaderLoader> m_loader; |
| 170 }; | 175 }; |
| 171 | 176 |
| 172 } // namespace blink | 177 } // namespace blink |
| 173 | 178 |
| 174 #endif // SourceBuffer_h | 179 #endif // SourceBuffer_h |
| OLD | NEW |