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

Side by Side Diff: media/base/pipeline.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 | « content/renderer/media/webmediaplayer_ms.cc ('k') | media/base/pipeline.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BASE_PIPELINE_H_ 5 #ifndef MEDIA_BASE_PIPELINE_H_
6 #define MEDIA_BASE_PIPELINE_H_ 6 #define MEDIA_BASE_PIPELINE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 // Attempt to set the volume of the audio renderer. Valid values for volume 157 // Attempt to set the volume of the audio renderer. Valid values for volume
158 // range from 0.0f (muted) to 1.0f (full volume). This value affects all 158 // range from 0.0f (muted) to 1.0f (full volume). This value affects all
159 // channels proportionately for multi-channel audio streams. 159 // channels proportionately for multi-channel audio streams.
160 void SetVolume(float volume); 160 void SetVolume(float volume);
161 161
162 // Returns the current media playback time, which progresses from 0 until 162 // Returns the current media playback time, which progresses from 0 until
163 // GetMediaDuration(). 163 // GetMediaDuration().
164 base::TimeDelta GetMediaTime() const; 164 base::TimeDelta GetMediaTime() const;
165 165
166 // Get approximate time ranges of buffered media. 166 // Get approximate time ranges of buffered media.
167 Ranges<base::TimeDelta> GetBufferedTimeRanges(); 167 Ranges<base::TimeDelta> GetBufferedTimeRanges() const;
168 168
169 // Get the duration of the media in microseconds. If the duration has not 169 // Get the duration of the media in microseconds. If the duration has not
170 // been determined yet, then returns 0. 170 // been determined yet, then returns 0.
171 base::TimeDelta GetMediaDuration() const; 171 base::TimeDelta GetMediaDuration() const;
172 172
173 // Return true if loading progress has been made since the last time this 173 // Return true if loading progress has been made since the last time this
174 // method was called. 174 // method was called.
175 bool DidLoadingProgress(); 175 bool DidLoadingProgress();
176 176
177 // Gets the current pipeline statistics. 177 // Gets the current pipeline statistics.
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 scoped_ptr<SerialRunner> pending_callbacks_; 424 scoped_ptr<SerialRunner> pending_callbacks_;
425 425
426 base::ThreadChecker thread_checker_; 426 base::ThreadChecker thread_checker_;
427 427
428 DISALLOW_COPY_AND_ASSIGN(Pipeline); 428 DISALLOW_COPY_AND_ASSIGN(Pipeline);
429 }; 429 };
430 430
431 } // namespace media 431 } // namespace media
432 432
433 #endif // MEDIA_BASE_PIPELINE_H_ 433 #endif // MEDIA_BASE_PIPELINE_H_
OLDNEW
« no previous file with comments | « content/renderer/media/webmediaplayer_ms.cc ('k') | media/base/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698