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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 // Carries out removing a text stream from the text renderer. | 271 // Carries out removing a text stream from the text renderer. |
272 void RemoveTextStreamTask(DemuxerStream* text_stream); | 272 void RemoveTextStreamTask(DemuxerStream* text_stream); |
273 | 273 |
274 // Callbacks executed when a text track is added. | 274 // Callbacks executed when a text track is added. |
275 void OnAddTextTrack(const TextTrackConfig& config, | 275 void OnAddTextTrack(const TextTrackConfig& config, |
276 const AddTextTrackDoneCB& done_cb); | 276 const AddTextTrackDoneCB& done_cb); |
277 | 277 |
278 // Kicks off initialization for each media object, executing |done_cb| with | 278 // Kicks off initialization for each media object, executing |done_cb| with |
279 // the result when completed. | 279 // the result when completed. |
280 void InitializeDemuxer(const PipelineStatusCB& done_cb); | 280 void InitializeDemuxer(const PipelineStatusCB& done_cb); |
281 void InitializeRenderer(const base::Closure& done_cb); | 281 void InitializeRenderer(const PipelineStatusCB& done_cb); |
282 | 282 |
283 void StateTransitionTask(PipelineStatus status); | 283 void StateTransitionTask(PipelineStatus status); |
284 | 284 |
285 // Initiates an asynchronous pause-flush-seek-preroll call sequence | 285 // Initiates an asynchronous pause-flush-seek-preroll call sequence |
286 // executing |done_cb| with the final status when completed. | 286 // executing |done_cb| with the final status when completed. |
287 void DoSeek(base::TimeDelta seek_timestamp, const PipelineStatusCB& done_cb); | 287 void DoSeek(base::TimeDelta seek_timestamp, const PipelineStatusCB& done_cb); |
288 | 288 |
289 // Initiates an asynchronous pause-flush-stop call sequence executing | 289 // Initiates an asynchronous pause-flush-stop call sequence executing |
290 // |done_cb| when completed. | 290 // |done_cb| when completed. |
291 void DoStop(const PipelineStatusCB& done_cb); | 291 void DoStop(const PipelineStatusCB& done_cb); |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 | 384 |
385 // NOTE: Weak pointers must be invalidated before all other member variables. | 385 // NOTE: Weak pointers must be invalidated before all other member variables. |
386 base::WeakPtrFactory<Pipeline> weak_factory_; | 386 base::WeakPtrFactory<Pipeline> weak_factory_; |
387 | 387 |
388 DISALLOW_COPY_AND_ASSIGN(Pipeline); | 388 DISALLOW_COPY_AND_ASSIGN(Pipeline); |
389 }; | 389 }; |
390 | 390 |
391 } // namespace media | 391 } // namespace media |
392 | 392 |
393 #endif // MEDIA_BASE_PIPELINE_H_ | 393 #endif // MEDIA_BASE_PIPELINE_H_ |
OLD | NEW |