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