| 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 "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 | 329 |
| 330 // Status of the pipeline. Initialized to PIPELINE_OK which indicates that | 330 // Status of the pipeline. Initialized to PIPELINE_OK which indicates that |
| 331 // the pipeline is operating correctly. Any other value indicates that the | 331 // the pipeline is operating correctly. Any other value indicates that the |
| 332 // pipeline is stopped or is stopping. Clients can call the Stop() method to | 332 // pipeline is stopped or is stopping. Clients can call the Stop() method to |
| 333 // reset the pipeline state, and restore this to PIPELINE_OK. | 333 // reset the pipeline state, and restore this to PIPELINE_OK. |
| 334 PipelineStatus status_; | 334 PipelineStatus status_; |
| 335 | 335 |
| 336 // The following data members are only accessed by tasks posted to | 336 // The following data members are only accessed by tasks posted to |
| 337 // |task_runner_|. | 337 // |task_runner_|. |
| 338 | 338 |
| 339 bool is_initialized_; | |
| 340 | |
| 341 // Member that tracks the current state. | 339 // Member that tracks the current state. |
| 342 State state_; | 340 State state_; |
| 343 | 341 |
| 344 // The timestamp to start playback from after starting/seeking has completed. | 342 // The timestamp to start playback from after starting/seeking has completed. |
| 345 base::TimeDelta start_timestamp_; | 343 base::TimeDelta start_timestamp_; |
| 346 | 344 |
| 347 // Whether we've received the audio/video/text ended events. | 345 // Whether we've received the audio/video/text ended events. |
| 348 bool renderer_ended_; | 346 bool renderer_ended_; |
| 349 bool text_renderer_ended_; | 347 bool text_renderer_ended_; |
| 350 | 348 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 | 382 |
| 385 // NOTE: Weak pointers must be invalidated before all other member variables. | 383 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 386 base::WeakPtrFactory<Pipeline> weak_factory_; | 384 base::WeakPtrFactory<Pipeline> weak_factory_; |
| 387 | 385 |
| 388 DISALLOW_COPY_AND_ASSIGN(Pipeline); | 386 DISALLOW_COPY_AND_ASSIGN(Pipeline); |
| 389 }; | 387 }; |
| 390 | 388 |
| 391 } // namespace media | 389 } // namespace media |
| 392 | 390 |
| 393 #endif // MEDIA_BASE_PIPELINE_H_ | 391 #endif // MEDIA_BASE_PIPELINE_H_ |
| OLD | NEW |