| 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 // Return true if loading progress has been made since the last time this | 206 // Return true if loading progress has been made since the last time this |
| 207 // method was called. | 207 // method was called. |
| 208 bool DidLoadingProgress() const; | 208 bool DidLoadingProgress() const; |
| 209 | 209 |
| 210 // Gets the current pipeline statistics. | 210 // Gets the current pipeline statistics. |
| 211 PipelineStatistics GetStatistics() const; | 211 PipelineStatistics GetStatistics() const; |
| 212 | 212 |
| 213 void SetClockForTesting(Clock* clock); | 213 void SetClockForTesting(Clock* clock); |
| 214 void SetErrorForTesting(PipelineStatus status); | 214 void SetErrorForTesting(PipelineStatus status); |
| 215 | 215 |
| 216 void KeyAdded(); |
| 217 |
| 216 private: | 218 private: |
| 217 FRIEND_TEST_ALL_PREFIXES(PipelineTest, GetBufferedTimeRanges); | 219 FRIEND_TEST_ALL_PREFIXES(PipelineTest, GetBufferedTimeRanges); |
| 218 FRIEND_TEST_ALL_PREFIXES(PipelineTest, DisableAudioRenderer); | 220 FRIEND_TEST_ALL_PREFIXES(PipelineTest, DisableAudioRenderer); |
| 219 FRIEND_TEST_ALL_PREFIXES(PipelineTest, DisableAudioRendererDuringInit); | 221 FRIEND_TEST_ALL_PREFIXES(PipelineTest, DisableAudioRendererDuringInit); |
| 220 FRIEND_TEST_ALL_PREFIXES(PipelineTest, EndedCallback); | 222 FRIEND_TEST_ALL_PREFIXES(PipelineTest, EndedCallback); |
| 221 FRIEND_TEST_ALL_PREFIXES(PipelineTest, AudioStreamShorterThanVideo); | 223 FRIEND_TEST_ALL_PREFIXES(PipelineTest, AudioStreamShorterThanVideo); |
| 222 friend class MediaLog; | 224 friend class MediaLog; |
| 223 | 225 |
| 224 // Only allow ourselves to be deleted by reference counting. | 226 // Only allow ourselves to be deleted by reference counting. |
| 225 friend class base::RefCountedThreadSafe<Pipeline>; | 227 friend class base::RefCountedThreadSafe<Pipeline>; |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 539 base::Time creation_time_; | 541 base::Time creation_time_; |
| 540 | 542 |
| 541 scoped_ptr<SerialRunner> pending_callbacks_; | 543 scoped_ptr<SerialRunner> pending_callbacks_; |
| 542 | 544 |
| 543 DISALLOW_COPY_AND_ASSIGN(Pipeline); | 545 DISALLOW_COPY_AND_ASSIGN(Pipeline); |
| 544 }; | 546 }; |
| 545 | 547 |
| 546 } // namespace media | 548 } // namespace media |
| 547 | 549 |
| 548 #endif // MEDIA_BASE_PIPELINE_H_ | 550 #endif // MEDIA_BASE_PIPELINE_H_ |
| OLD | NEW |