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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
182 underflow_disabled_for_testing_ = disabled; | 182 underflow_disabled_for_testing_ = disabled; |
183 } | 183 } |
184 void SetTimeDeltaInterpolatorForTesting(TimeDeltaInterpolator* interpolator); | 184 void SetTimeDeltaInterpolatorForTesting(TimeDeltaInterpolator* interpolator); |
185 void SetErrorForTesting(PipelineStatus status); | 185 void SetErrorForTesting(PipelineStatus status); |
186 | 186 |
187 private: | 187 private: |
188 FRIEND_TEST_ALL_PREFIXES(PipelineTest, GetBufferedTimeRanges); | 188 FRIEND_TEST_ALL_PREFIXES(PipelineTest, GetBufferedTimeRanges); |
189 FRIEND_TEST_ALL_PREFIXES(PipelineTest, EndedCallback); | 189 FRIEND_TEST_ALL_PREFIXES(PipelineTest, EndedCallback); |
190 FRIEND_TEST_ALL_PREFIXES(PipelineTest, AudioStreamShorterThanVideo); | 190 FRIEND_TEST_ALL_PREFIXES(PipelineTest, AudioStreamShorterThanVideo); |
191 friend class MediaLog; | 191 friend class MediaLog; |
192 friend class PipelineTest; | |
scherkus (not reviewing)
2014/08/07 18:51:52
not the biggest fan of making a whole class a frie
xhwang
2014/08/07 19:04:34
Done.
| |
192 | 193 |
193 // Pipeline states, as described above. | 194 // Pipeline states, as described above. |
194 enum State { | 195 enum State { |
195 kCreated, | 196 kCreated, |
196 kInitDemuxer, | 197 kInitDemuxer, |
197 kInitAudioRenderer, | 198 kInitAudioRenderer, |
198 kInitVideoRenderer, | 199 kInitVideoRenderer, |
199 kSeeking, | 200 kSeeking, |
200 kPlaying, | 201 kPlaying, |
201 kStopping, | 202 kStopping, |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
429 | 430 |
430 // NOTE: Weak pointers must be invalidated before all other member variables. | 431 // NOTE: Weak pointers must be invalidated before all other member variables. |
431 base::WeakPtrFactory<Pipeline> weak_factory_; | 432 base::WeakPtrFactory<Pipeline> weak_factory_; |
432 | 433 |
433 DISALLOW_COPY_AND_ASSIGN(Pipeline); | 434 DISALLOW_COPY_AND_ASSIGN(Pipeline); |
434 }; | 435 }; |
435 | 436 |
436 } // namespace media | 437 } // namespace media |
437 | 438 |
438 #endif // MEDIA_BASE_PIPELINE_H_ | 439 #endif // MEDIA_BASE_PIPELINE_H_ |
OLD | NEW |