Require Renderer::Initialize() to return a status code via callback.
commit470461169311f3336e430fb91436366fa916af68
authordalecurtis <dalecurtis@chromium.org>
Fri, 23 Jan 2015 22:58:20 +0000 (23 14:58 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 23 Jan 2015 22:59:21 +0000 (23 22:59 +0000)
tree3539cfbd3c19cd3481af528432fcf2d0b16ab853
parent33f39fe7413561f88f312e4db3e1c2e5b9fa1b5a
Require Renderer::Initialize() to return a status code via callback.

Using OnError() to deliver status codes during Initialize() complicates
upstream state paths, so require clients to return status via the
initialization callback provided instead of via the error callback.

BUG=450764
TEST=media_unittests, mojo://media_test

Review URL: https://codereview.chromium.org/870693002

Cr-Commit-Position: refs/heads/master@{#312958}
14 files changed:
media/base/audio_renderer.h
media/base/mock_filters.h
media/base/pipeline.cc
media/base/pipeline.h
media/base/pipeline_unittest.cc
media/base/renderer.h
media/base/video_renderer.h
media/filters/renderer_impl.cc
media/filters/renderer_impl.h
media/filters/renderer_impl_unittest.cc
media/mojo/services/mojo_renderer_impl.cc
media/mojo/services/mojo_renderer_impl.h
media/mojo/services/mojo_renderer_service.cc
media/mojo/services/mojo_renderer_service.h