OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |