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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 void clearAppendStreamState(); | 116 void clearAppendStreamState(); |
117 | 117 |
118 // FileReaderLoaderClient interface | 118 // FileReaderLoaderClient interface |
119 virtual void didStartLoading() override; | 119 virtual void didStartLoading() override; |
120 virtual void didReceiveDataForClient(const char* data, unsigned dataLength)
override; | 120 virtual void didReceiveDataForClient(const char* data, unsigned dataLength)
override; |
121 virtual void didFinishLoading() override; | 121 virtual void didFinishLoading() override; |
122 virtual void didFail(FileError::ErrorCode) override; | 122 virtual void didFail(FileError::ErrorCode) override; |
123 | 123 |
124 OwnPtr<WebSourceBuffer> m_webSourceBuffer; | 124 OwnPtr<WebSourceBuffer> m_webSourceBuffer; |
125 Member<MediaSource> m_source; | 125 Member<MediaSource> m_source; |
126 GenericEventQueue* m_asyncEventQueue; | 126 RawPtrWillBeMember<GenericEventQueue> m_asyncEventQueue; |
127 | 127 |
128 AtomicString m_mode; | 128 AtomicString m_mode; |
129 bool m_updating; | 129 bool m_updating; |
130 double m_timestampOffset; | 130 double m_timestampOffset; |
131 double m_appendWindowStart; | 131 double m_appendWindowStart; |
132 double m_appendWindowEnd; | 132 double m_appendWindowEnd; |
133 bool m_firstInitializationSegmentReceived; | 133 bool m_firstInitializationSegmentReceived; |
134 | 134 |
135 Vector<unsigned char> m_pendingAppendData; | 135 Vector<unsigned char> m_pendingAppendData; |
136 size_t m_pendingAppendDataOffset; | 136 size_t m_pendingAppendDataOffset; |
137 AsyncMethodRunner<SourceBuffer> m_appendBufferAsyncPartRunner; | 137 AsyncMethodRunner<SourceBuffer> m_appendBufferAsyncPartRunner; |
138 | 138 |
139 double m_pendingRemoveStart; | 139 double m_pendingRemoveStart; |
140 double m_pendingRemoveEnd; | 140 double m_pendingRemoveEnd; |
141 AsyncMethodRunner<SourceBuffer> m_removeAsyncPartRunner; | 141 AsyncMethodRunner<SourceBuffer> m_removeAsyncPartRunner; |
142 | 142 |
143 bool m_streamMaxSizeValid; | 143 bool m_streamMaxSizeValid; |
144 unsigned long long m_streamMaxSize; | 144 unsigned long long m_streamMaxSize; |
145 AsyncMethodRunner<SourceBuffer> m_appendStreamAsyncPartRunner; | 145 AsyncMethodRunner<SourceBuffer> m_appendStreamAsyncPartRunner; |
146 RefPtrWillBeMember<Stream> m_stream; | 146 RefPtrWillBeMember<Stream> m_stream; |
147 OwnPtr<FileReaderLoader> m_loader; | 147 OwnPtr<FileReaderLoader> m_loader; |
148 }; | 148 }; |
149 | 149 |
150 } // namespace blink | 150 } // namespace blink |
151 | 151 |
152 #endif // SourceBuffer_h | 152 #endif // SourceBuffer_h |
OLD | NEW |