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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 void GetNaturalVideoSize(gfx::Size* out_size) const; | 213 void GetNaturalVideoSize(gfx::Size* out_size) const; |
214 | 214 |
215 // Return true if loading progress has been made since the last time this | 215 // Return true if loading progress has been made since the last time this |
216 // method was called. | 216 // method was called. |
217 bool DidLoadingProgress() const; | 217 bool DidLoadingProgress() const; |
218 | 218 |
219 // Gets the current pipeline statistics. | 219 // Gets the current pipeline statistics. |
220 PipelineStatistics GetStatistics() const; | 220 PipelineStatistics GetStatistics() const; |
221 | 221 |
222 void SetClockForTesting(Clock* clock); | 222 void SetClockForTesting(Clock* clock); |
| 223 void SetErrorForTesting(PipelineStatus status); |
223 | 224 |
224 private: | 225 private: |
225 FRIEND_TEST_ALL_PREFIXES(PipelineTest, GetBufferedTimeRanges); | 226 FRIEND_TEST_ALL_PREFIXES(PipelineTest, GetBufferedTimeRanges); |
226 FRIEND_TEST_ALL_PREFIXES(PipelineTest, DisableAudioRenderer); | 227 FRIEND_TEST_ALL_PREFIXES(PipelineTest, DisableAudioRenderer); |
227 FRIEND_TEST_ALL_PREFIXES(PipelineTest, DisableAudioRendererDuringInit); | 228 FRIEND_TEST_ALL_PREFIXES(PipelineTest, DisableAudioRendererDuringInit); |
228 FRIEND_TEST_ALL_PREFIXES(PipelineTest, EndedCallback); | 229 FRIEND_TEST_ALL_PREFIXES(PipelineTest, EndedCallback); |
229 FRIEND_TEST_ALL_PREFIXES(PipelineTest, AudioStreamShorterThanVideo); | 230 FRIEND_TEST_ALL_PREFIXES(PipelineTest, AudioStreamShorterThanVideo); |
230 friend class MediaLog; | 231 friend class MediaLog; |
231 | 232 |
232 // Only allow ourselves to be deleted by reference counting. | 233 // Only allow ourselves to be deleted by reference counting. |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 base::Time creation_time_; | 560 base::Time creation_time_; |
560 | 561 |
561 scoped_ptr<SerialRunner> pending_callbacks_; | 562 scoped_ptr<SerialRunner> pending_callbacks_; |
562 | 563 |
563 DISALLOW_COPY_AND_ASSIGN(Pipeline); | 564 DISALLOW_COPY_AND_ASSIGN(Pipeline); |
564 }; | 565 }; |
565 | 566 |
566 } // namespace media | 567 } // namespace media |
567 | 568 |
568 #endif // MEDIA_BASE_PIPELINE_H_ | 569 #endif // MEDIA_BASE_PIPELINE_H_ |
OLD | NEW |