| 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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 // - A waiting to non-waiting transition indicates preroll has completed | 310 // - A waiting to non-waiting transition indicates preroll has completed |
| 311 // and StartPlayback() should be called | 311 // and StartPlayback() should be called |
| 312 // - A non-waiting to waiting transition indicates underflow has occurred | 312 // - A non-waiting to waiting transition indicates underflow has occurred |
| 313 // and PausePlayback() should be called | 313 // and PausePlayback() should be called |
| 314 void BufferingStateChanged(BufferingState* buffering_state, | 314 void BufferingStateChanged(BufferingState* buffering_state, |
| 315 BufferingState new_buffering_state); | 315 BufferingState new_buffering_state); |
| 316 bool WaitingForEnoughData() const; | 316 bool WaitingForEnoughData() const; |
| 317 void PausePlayback(); | 317 void PausePlayback(); |
| 318 void StartPlayback(); | 318 void StartPlayback(); |
| 319 | 319 |
| 320 void PauseClockAndStopRendering_Locked(); | 320 void PauseClockAndStopTicking_Locked(); |
| 321 void StartClockIfWaitingForTimeUpdate_Locked(); | 321 void StartClockIfWaitingForTimeUpdate_Locked(); |
| 322 | 322 |
| 323 // Task runner used to execute pipeline tasks. | 323 // Task runner used to execute pipeline tasks. |
| 324 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 324 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
| 325 | 325 |
| 326 // MediaLog to which to log events. | 326 // MediaLog to which to log events. |
| 327 scoped_refptr<MediaLog> media_log_; | 327 scoped_refptr<MediaLog> media_log_; |
| 328 | 328 |
| 329 // Lock used to serialize access for the following data members. | 329 // Lock used to serialize access for the following data members. |
| 330 mutable base::Lock lock_; | 330 mutable base::Lock lock_; |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 bool underflow_disabled_for_testing_; | 427 bool underflow_disabled_for_testing_; |
| 428 | 428 |
| 429 base::ThreadChecker thread_checker_; | 429 base::ThreadChecker thread_checker_; |
| 430 | 430 |
| 431 DISALLOW_COPY_AND_ASSIGN(Pipeline); | 431 DISALLOW_COPY_AND_ASSIGN(Pipeline); |
| 432 }; | 432 }; |
| 433 | 433 |
| 434 } // namespace media | 434 } // namespace media |
| 435 | 435 |
| 436 #endif // MEDIA_BASE_PIPELINE_H_ | 436 #endif // MEDIA_BASE_PIPELINE_H_ |
| OLD | NEW |