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

Unified Diff: media/base/renderer.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/pipeline_unittest.cc ('k') | media/filters/renderer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/renderer.h
diff --git a/media/base/renderer.h b/media/base/renderer.h
index adb0de7e1333305aca815bee6bb25f915fd1d895..0034bf985f6df36856844d6a4fd66f11619d2b10 100644
--- a/media/base/renderer.h
+++ b/media/base/renderer.h
@@ -25,15 +25,15 @@ class MEDIA_EXPORT Renderer {
virtual ~Renderer();
// Initializes the Renderer, executing |init_cb| upon completion.
+ // If initialization failed, fires |error_cb| before |init_cb|.
// TODO(xhwang): Provide a set of DemuxerStreams in Initialize().
- // TODO(xhwang): Replace |init_cb| with a Closure.
//
// Permanent callbacks:
// - |statistics_cb|: Executed periodically with rendering statistics.
// - |time_cb|: Executed whenever time has advanced through rendering.
// - |ended_cb|: Executed when rendering has reached the end of stream.
// - |error_cb|: Executed if any error was encountered during rendering.
- virtual void Initialize(const PipelineStatusCB& init_cb,
+ virtual void Initialize(const base::Closure& init_cb,
tim (not reviewing) 2014/09/03 22:37:26 How important is it to return PIPELINE_ERROR_INITI
xhwang 2014/09/03 23:52:37 I don't quite follow the question. In you CL, you
const StatisticsCB& statistics_cb,
const base::Closure& ended_cb,
const PipelineStatusCB& error_cb,
« no previous file with comments | « media/base/pipeline_unittest.cc ('k') | media/filters/renderer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698