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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 // Initialize the MediaSourceDelegate. |media_source| will be owned by | 61 // Initialize the MediaSourceDelegate. |media_source| will be owned by |
62 // this object after this call. | 62 // this object after this call. |
63 void InitializeMediaSource( | 63 void InitializeMediaSource( |
64 const MediaSourceOpenedCB& media_source_opened_cb, | 64 const MediaSourceOpenedCB& media_source_opened_cb, |
65 const media::Demuxer::NeedKeyCB& need_key_cb, | 65 const media::Demuxer::NeedKeyCB& need_key_cb, |
66 const media::SetDecryptorReadyCB& set_decryptor_ready_cb, | 66 const media::SetDecryptorReadyCB& set_decryptor_ready_cb, |
67 const UpdateNetworkStateCB& update_network_state_cb, | 67 const UpdateNetworkStateCB& update_network_state_cb, |
68 const DurationChangeCB& duration_change_cb); | 68 const DurationChangeCB& duration_change_cb); |
69 | 69 |
70 const blink::WebTimeRanges& Buffered(); | 70 const blink::WebTimeRanges& Buffered(); |
| 71 blink::WebTimeRanges Buffered() const; |
71 size_t DecodedFrameCount() const; | 72 size_t DecodedFrameCount() const; |
72 size_t DroppedFrameCount() const; | 73 size_t DroppedFrameCount() const; |
73 size_t AudioDecodedByteCount() const; | 74 size_t AudioDecodedByteCount() const; |
74 size_t VideoDecodedByteCount() const; | 75 size_t VideoDecodedByteCount() const; |
75 | 76 |
76 // In MSE case, calls ChunkDemuxer::CancelPendingSeek(). Also sets the | 77 // In MSE case, calls ChunkDemuxer::CancelPendingSeek(). Also sets the |
77 // expectation that a regular seek will be arriving and to trivially finish | 78 // expectation that a regular seek will be arriving and to trivially finish |
78 // any browser seeks that may be requested prior to the regular seek. | 79 // any browser seeks that may be requested prior to the regular seek. |
79 void CancelPendingSeek(const base::TimeDelta& seek_time); | 80 void CancelPendingSeek(const base::TimeDelta& seek_time); |
80 | 81 |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 base::WeakPtrFactory<MediaSourceDelegate> main_weak_factory_; | 243 base::WeakPtrFactory<MediaSourceDelegate> main_weak_factory_; |
243 base::WeakPtrFactory<MediaSourceDelegate> media_weak_factory_; | 244 base::WeakPtrFactory<MediaSourceDelegate> media_weak_factory_; |
244 base::WeakPtr<MediaSourceDelegate> main_weak_this_; | 245 base::WeakPtr<MediaSourceDelegate> main_weak_this_; |
245 | 246 |
246 DISALLOW_COPY_AND_ASSIGN(MediaSourceDelegate); | 247 DISALLOW_COPY_AND_ASSIGN(MediaSourceDelegate); |
247 }; | 248 }; |
248 | 249 |
249 } // namespace content | 250 } // namespace content |
250 | 251 |
251 #endif // CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ | 252 #endif // CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ |
OLD | NEW |