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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
124 bool prepareAppend(size_t newDataSize, ExceptionState&); | 124 bool prepareAppend(size_t newDataSize, ExceptionState&); |
125 bool evictCodedFrames(size_t newDataSize); | 125 bool evictCodedFrames(size_t newDataSize); |
126 void appendBufferInternal(const unsigned char*, unsigned, ExceptionState&); | 126 void appendBufferInternal(const unsigned char*, unsigned, ExceptionState&); |
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 |
135 // |decodeError| is only valid if |runAppendError| is true. | |
foolip
2016/06/20 12:04:17
Smells like this should be a 3-state enum?
wolenetz
2016/06/21 19:38:09
I was thinking similarly and certainly would have
foolip
2016/06/22 12:39:52
Yay :)
| |
136 void appendStreamDone(bool runAppendError, bool decodeError); | |
137 | |
135 void clearAppendStreamState(); | 138 void clearAppendStreamState(); |
136 | 139 |
137 void removeMediaTracks(); | 140 void removeMediaTracks(); |
138 | 141 |
139 // FileReaderLoaderClient interface | 142 // FileReaderLoaderClient interface |
140 void didStartLoading() override; | 143 void didStartLoading() override; |
141 void didReceiveDataForClient(const char* data, unsigned dataLength) override ; | 144 void didReceiveDataForClient(const char* data, unsigned dataLength) override ; |
142 void didFinishLoading() override; | 145 void didFinishLoading() override; |
143 void didFail(FileError::ErrorCode) override; | 146 void didFail(FileError::ErrorCode) override; |
144 | 147 |
(...skipping 22 matching lines...) Expand all Loading... | |
167 bool m_streamMaxSizeValid; | 170 bool m_streamMaxSizeValid; |
168 unsigned long long m_streamMaxSize; | 171 unsigned long long m_streamMaxSize; |
169 Member<AsyncMethodRunner<SourceBuffer>> m_appendStreamAsyncPartRunner; | 172 Member<AsyncMethodRunner<SourceBuffer>> m_appendStreamAsyncPartRunner; |
170 Member<Stream> m_stream; | 173 Member<Stream> m_stream; |
171 OwnPtr<FileReaderLoader> m_loader; | 174 OwnPtr<FileReaderLoader> m_loader; |
172 }; | 175 }; |
173 | 176 |
174 } // namespace blink | 177 } // namespace blink |
175 | 178 |
176 #endif // SourceBuffer_h | 179 #endif // SourceBuffer_h |
OLD | NEW |