Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1106)

Side by Side Diff: media/base/pipeline.h

Issue 526653002: Replace init_cb in Renderer::Initialize() with base::Closure. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase only Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 // Carries out removing a text stream from the text renderer. 253 // Carries out removing a text stream from the text renderer.
254 void RemoveTextStreamTask(DemuxerStream* text_stream); 254 void RemoveTextStreamTask(DemuxerStream* text_stream);
255 255
256 // Callbacks executed when a text track is added. 256 // Callbacks executed when a text track is added.
257 void OnAddTextTrack(const TextTrackConfig& config, 257 void OnAddTextTrack(const TextTrackConfig& config,
258 const AddTextTrackDoneCB& done_cb); 258 const AddTextTrackDoneCB& done_cb);
259 259
260 // Kicks off initialization for each media object, executing |done_cb| with 260 // Kicks off initialization for each media object, executing |done_cb| with
261 // the result when completed. 261 // the result when completed.
262 void InitializeDemuxer(const PipelineStatusCB& done_cb); 262 void InitializeDemuxer(const PipelineStatusCB& done_cb);
263 void InitializeRenderer(const PipelineStatusCB& done_cb); 263 void InitializeRenderer(const base::Closure& done_cb);
264 264
265 void OnStateTransition(PipelineStatus status); 265 void OnStateTransition(PipelineStatus status);
266 void StateTransitionTask(PipelineStatus status); 266 void StateTransitionTask(PipelineStatus status);
267 267
268 // Initiates an asynchronous pause-flush-seek-preroll call sequence 268 // Initiates an asynchronous pause-flush-seek-preroll call sequence
269 // executing |done_cb| with the final status when completed. 269 // executing |done_cb| with the final status when completed.
270 void DoSeek(base::TimeDelta seek_timestamp, const PipelineStatusCB& done_cb); 270 void DoSeek(base::TimeDelta seek_timestamp, const PipelineStatusCB& done_cb);
271 271
272 // Initiates an asynchronous pause-flush-stop call sequence executing 272 // Initiates an asynchronous pause-flush-stop call sequence executing
273 // |done_cb| when completed. 273 // |done_cb| when completed.
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 361
362 // NOTE: Weak pointers must be invalidated before all other member variables. 362 // NOTE: Weak pointers must be invalidated before all other member variables.
363 base::WeakPtrFactory<Pipeline> weak_factory_; 363 base::WeakPtrFactory<Pipeline> weak_factory_;
364 364
365 DISALLOW_COPY_AND_ASSIGN(Pipeline); 365 DISALLOW_COPY_AND_ASSIGN(Pipeline);
366 }; 366 };
367 367
368 } // namespace media 368 } // namespace media
369 369
370 #endif // MEDIA_BASE_PIPELINE_H_ 370 #endif // MEDIA_BASE_PIPELINE_H_
OLDNEW
« no previous file with comments | « media/base/mock_filters.h ('k') | media/base/pipeline.cc » ('j') | media/base/renderer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698