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 CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ |
6 #define CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ | 6 #define CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 const UpdateNetworkStateCB& update_network_state_cb, | 64 const UpdateNetworkStateCB& update_network_state_cb, |
65 const DurationChangeCB& duration_change_cb, | 65 const DurationChangeCB& duration_change_cb, |
66 const base::Closure& waiting_for_decryption_key_cb); | 66 const base::Closure& waiting_for_decryption_key_cb); |
67 | 67 |
68 blink::WebTimeRanges Buffered() const; | 68 blink::WebTimeRanges Buffered() const; |
69 size_t DecodedFrameCount() const; | 69 size_t DecodedFrameCount() const; |
70 size_t DroppedFrameCount() const; | 70 size_t DroppedFrameCount() const; |
71 size_t AudioDecodedByteCount() const; | 71 size_t AudioDecodedByteCount() const; |
72 size_t VideoDecodedByteCount() const; | 72 size_t VideoDecodedByteCount() const; |
73 | 73 |
| 74 size_t getAudioBufferSize() const; |
| 75 void setAudioBufferSize(size_t size); |
| 76 size_t getVideoBufferSize() const; |
| 77 void setVideoBufferSize(size_t size); |
| 78 |
74 // In MSE case, calls ChunkDemuxer::CancelPendingSeek(). Also sets the | 79 // In MSE case, calls ChunkDemuxer::CancelPendingSeek(). Also sets the |
75 // expectation that a regular seek will be arriving and to trivially finish | 80 // expectation that a regular seek will be arriving and to trivially finish |
76 // any browser seeks that may be requested prior to the regular seek. | 81 // any browser seeks that may be requested prior to the regular seek. |
77 void CancelPendingSeek(const base::TimeDelta& seek_time); | 82 void CancelPendingSeek(const base::TimeDelta& seek_time); |
78 | 83 |
79 // In MSE case, calls ChunkDemuxer::StartWaitingForSeek(), first calling | 84 // In MSE case, calls ChunkDemuxer::StartWaitingForSeek(), first calling |
80 // ChunkDemuxer::CancelPendingSeek() if a browser seek is in progress. | 85 // ChunkDemuxer::CancelPendingSeek() if a browser seek is in progress. |
81 // Also sets the expectation that a regular seek will be arriving and to | 86 // Also sets the expectation that a regular seek will be arriving and to |
82 // trivially finish any browser seeks that may be requested prior to the | 87 // trivially finish any browser seeks that may be requested prior to the |
83 // regular seek. | 88 // regular seek. |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 base::WeakPtr<MediaSourceDelegate> main_weak_this_; | 233 base::WeakPtr<MediaSourceDelegate> main_weak_this_; |
229 base::WeakPtrFactory<MediaSourceDelegate> main_weak_factory_; | 234 base::WeakPtrFactory<MediaSourceDelegate> main_weak_factory_; |
230 base::WeakPtrFactory<MediaSourceDelegate> media_weak_factory_; | 235 base::WeakPtrFactory<MediaSourceDelegate> media_weak_factory_; |
231 | 236 |
232 DISALLOW_COPY_AND_ASSIGN(MediaSourceDelegate); | 237 DISALLOW_COPY_AND_ASSIGN(MediaSourceDelegate); |
233 }; | 238 }; |
234 | 239 |
235 } // namespace content | 240 } // namespace content |
236 | 241 |
237 #endif // CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ | 242 #endif // CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ |
OLD | NEW |