Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(522)

Side by Side Diff: content/renderer/media/android/media_source_delegate.h

Issue 282073003: Add return-by-value implementations of blink::WebMediaPlayer::buffered() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/renderer/media/android/media_source_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/android/media_source_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698