| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MEDIA_BLINK_WEBSOURCEBUFFER_IMPL_H_ | 5 #ifndef MEDIA_BLINK_WEBSOURCEBUFFER_IMPL_H_ |
| 6 #define MEDIA_BLINK_WEBSOURCEBUFFER_IMPL_H_ | 6 #define MEDIA_BLINK_WEBSOURCEBUFFER_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 // blink::WebSourceBuffer implementation. | 23 // blink::WebSourceBuffer implementation. |
| 24 virtual void setClient(blink::WebSourceBufferClient* client); | 24 virtual void setClient(blink::WebSourceBufferClient* client); |
| 25 virtual bool setMode(AppendMode mode); | 25 virtual bool setMode(AppendMode mode); |
| 26 virtual blink::WebTimeRanges buffered(); | 26 virtual blink::WebTimeRanges buffered(); |
| 27 virtual bool evictCodedFrames(double currentPlaybackTime, | 27 virtual bool evictCodedFrames(double currentPlaybackTime, |
| 28 size_t newDataSize); | 28 size_t newDataSize); |
| 29 virtual void append( | 29 virtual void append( |
| 30 const unsigned char* data, | 30 const unsigned char* data, |
| 31 unsigned length, | 31 unsigned length, |
| 32 double* timestamp_offset); | 32 double* timestamp_offset); |
| 33 // TODO(servolk): WebSourceBuffer::abort is being renamed into |
| 34 // resetParserState and will be removed soon |
| 33 virtual void abort(); | 35 virtual void abort(); |
| 36 virtual void resetParserState(); |
| 34 virtual void remove(double start, double end); | 37 virtual void remove(double start, double end); |
| 35 virtual bool setTimestampOffset(double offset); | 38 virtual bool setTimestampOffset(double offset); |
| 36 virtual void setAppendWindowStart(double start); | 39 virtual void setAppendWindowStart(double start); |
| 37 virtual void setAppendWindowEnd(double end); | 40 virtual void setAppendWindowEnd(double end); |
| 38 virtual void removedFromMediaSource(); | 41 virtual void removedFromMediaSource(); |
| 39 | 42 |
| 40 private: | 43 private: |
| 41 // Demuxer callback handler to process an initialization segment received | 44 // Demuxer callback handler to process an initialization segment received |
| 42 // during an append() call. | 45 // during an append() call. |
| 43 void InitSegmentReceived(); | 46 void InitSegmentReceived(); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 54 | 57 |
| 55 base::TimeDelta append_window_start_; | 58 base::TimeDelta append_window_start_; |
| 56 base::TimeDelta append_window_end_; | 59 base::TimeDelta append_window_end_; |
| 57 | 60 |
| 58 DISALLOW_COPY_AND_ASSIGN(WebSourceBufferImpl); | 61 DISALLOW_COPY_AND_ASSIGN(WebSourceBufferImpl); |
| 59 }; | 62 }; |
| 60 | 63 |
| 61 } // namespace media | 64 } // namespace media |
| 62 | 65 |
| 63 #endif // MEDIA_BLINK_WEBSOURCEBUFFER_IMPL_H_ | 66 #endif // MEDIA_BLINK_WEBSOURCEBUFFER_IMPL_H_ |
| OLD | NEW |