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/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/synchronization/lock.h" | 10 #include "base/synchronization/lock.h" |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 | 312 |
313 // Status of the pipeline. Initialized to PIPELINE_OK which indicates that | 313 // Status of the pipeline. Initialized to PIPELINE_OK which indicates that |
314 // the pipeline is operating correctly. Any other value indicates that the | 314 // the pipeline is operating correctly. Any other value indicates that the |
315 // pipeline is stopped or is stopping. Clients can call the Stop() method to | 315 // pipeline is stopped or is stopping. Clients can call the Stop() method to |
316 // reset the pipeline state, and restore this to PIPELINE_OK. | 316 // reset the pipeline state, and restore this to PIPELINE_OK. |
317 PipelineStatus status_; | 317 PipelineStatus status_; |
318 | 318 |
319 // The following data members are only accessed by tasks posted to | 319 // The following data members are only accessed by tasks posted to |
320 // |task_runner_|. | 320 // |task_runner_|. |
321 | 321 |
322 bool is_initialized_; | |
323 | |
324 // Member that tracks the current state. | 322 // Member that tracks the current state. |
325 State state_; | 323 State state_; |
326 | 324 |
327 // The timestamp to start playback from after starting/seeking has completed. | 325 // The timestamp to start playback from after starting/seeking has completed. |
328 base::TimeDelta start_timestamp_; | 326 base::TimeDelta start_timestamp_; |
329 | 327 |
330 // Whether we've received the audio/video/text ended events. | 328 // Whether we've received the audio/video/text ended events. |
331 bool renderer_ended_; | 329 bool renderer_ended_; |
332 bool text_renderer_ended_; | 330 bool text_renderer_ended_; |
333 | 331 |
(...skipping 27 matching lines...) Expand all Loading... |
361 | 359 |
362 // NOTE: Weak pointers must be invalidated before all other member variables. | 360 // NOTE: Weak pointers must be invalidated before all other member variables. |
363 base::WeakPtrFactory<Pipeline> weak_factory_; | 361 base::WeakPtrFactory<Pipeline> weak_factory_; |
364 | 362 |
365 DISALLOW_COPY_AND_ASSIGN(Pipeline); | 363 DISALLOW_COPY_AND_ASSIGN(Pipeline); |
366 }; | 364 }; |
367 | 365 |
368 } // namespace media | 366 } // namespace media |
369 | 367 |
370 #endif // MEDIA_BASE_PIPELINE_H_ | 368 #endif // MEDIA_BASE_PIPELINE_H_ |
OLD | NEW |