| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 class WebSourceBufferImpl : public blink::WebSourceBuffer { | 22 class WebSourceBufferImpl : public blink::WebSourceBuffer { |
| 23 public: | 23 public: |
| 24 WebSourceBufferImpl(const std::string& id, ChunkDemuxer* demuxer); | 24 WebSourceBufferImpl(const std::string& id, ChunkDemuxer* demuxer); |
| 25 ~WebSourceBufferImpl() override; | 25 ~WebSourceBufferImpl() override; |
| 26 | 26 |
| 27 // blink::WebSourceBuffer implementation. | 27 // blink::WebSourceBuffer implementation. |
| 28 void setClient(blink::WebSourceBufferClient* client) override; | 28 void setClient(blink::WebSourceBufferClient* client) override; |
| 29 bool setMode(AppendMode mode) override; | 29 bool setMode(AppendMode mode) override; |
| 30 blink::WebTimeRanges buffered() override; | 30 blink::WebTimeRanges buffered() override; |
| 31 double highestPresentationTimestamp() override; |
| 31 bool evictCodedFrames(double currentPlaybackTime, | 32 bool evictCodedFrames(double currentPlaybackTime, |
| 32 size_t newDataSize) override; | 33 size_t newDataSize) override; |
| 33 bool append(const unsigned char* data, | 34 bool append(const unsigned char* data, |
| 34 unsigned length, | 35 unsigned length, |
| 35 double* timestamp_offset) override; | 36 double* timestamp_offset) override; |
| 36 void resetParserState() override; | 37 void resetParserState() override; |
| 37 void remove(double start, double end) override; | 38 void remove(double start, double end) override; |
| 38 bool setTimestampOffset(double offset) override; | 39 bool setTimestampOffset(double offset) override; |
| 39 void setAppendWindowStart(double start) override; | 40 void setAppendWindowStart(double start) override; |
| 40 void setAppendWindowEnd(double end) override; | 41 void setAppendWindowEnd(double end) override; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 57 | 58 |
| 58 base::TimeDelta append_window_start_; | 59 base::TimeDelta append_window_start_; |
| 59 base::TimeDelta append_window_end_; | 60 base::TimeDelta append_window_end_; |
| 60 | 61 |
| 61 DISALLOW_COPY_AND_ASSIGN(WebSourceBufferImpl); | 62 DISALLOW_COPY_AND_ASSIGN(WebSourceBufferImpl); |
| 62 }; | 63 }; |
| 63 | 64 |
| 64 } // namespace media | 65 } // namespace media |
| 65 | 66 |
| 66 #endif // MEDIA_BLINK_WEBSOURCEBUFFER_IMPL_H_ | 67 #endif // MEDIA_BLINK_WEBSOURCEBUFFER_IMPL_H_ |
| OLD | NEW |