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

Side by Side Diff: media/mojo/services/mojo_renderer_impl.cc

Issue 1565343003: Move mojo/application/public -> mojo/shell/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fetcher
Patch Set: . Created 4 years, 11 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "media/mojo/services/mojo_renderer_impl.h" 5 #include "media/mojo/services/mojo_renderer_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback_helpers.h" 10 #include "base/callback_helpers.h"
11 #include "base/location.h" 11 #include "base/location.h"
12 #include "base/single_thread_task_runner.h" 12 #include "base/single_thread_task_runner.h"
13 #include "media/base/bind_to_current_loop.h" 13 #include "media/base/bind_to_current_loop.h"
14 #include "media/base/demuxer_stream_provider.h" 14 #include "media/base/demuxer_stream_provider.h"
15 #include "media/mojo/services/mojo_demuxer_stream_impl.h" 15 #include "media/mojo/services/mojo_demuxer_stream_impl.h"
16 #include "mojo/application/public/cpp/connect.h" 16 #include "mojo/shell/public/cpp/connect.h"
17 #include "mojo/application/public/interfaces/service_provider.mojom.h" 17 #include "mojo/shell/public/interfaces/service_provider.mojom.h"
18 18
19 namespace media { 19 namespace media {
20 20
21 MojoRendererImpl::MojoRendererImpl( 21 MojoRendererImpl::MojoRendererImpl(
22 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, 22 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
23 interfaces::RendererPtr remote_renderer) 23 interfaces::RendererPtr remote_renderer)
24 : task_runner_(task_runner), 24 : task_runner_(task_runner),
25 remote_renderer_(std::move(remote_renderer)), 25 remote_renderer_(std::move(remote_renderer)),
26 weak_factory_(this) { 26 weak_factory_(this) {
27 DVLOG(1) << __FUNCTION__; 27 DVLOG(1) << __FUNCTION__;
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 void MojoRendererImpl::OnInitialized(bool success) { 205 void MojoRendererImpl::OnInitialized(bool success) {
206 DVLOG(1) << __FUNCTION__; 206 DVLOG(1) << __FUNCTION__;
207 DCHECK(task_runner_->BelongsToCurrentThread()); 207 DCHECK(task_runner_->BelongsToCurrentThread());
208 DCHECK(!init_cb_.is_null()); 208 DCHECK(!init_cb_.is_null());
209 209
210 base::ResetAndReturn(&init_cb_) 210 base::ResetAndReturn(&init_cb_)
211 .Run(success ? PIPELINE_OK : PIPELINE_ERROR_INITIALIZATION_FAILED); 211 .Run(success ? PIPELINE_OK : PIPELINE_ERROR_INITIALIZATION_FAILED);
212 } 212 }
213 213
214 } // namespace media 214 } // namespace media
OLDNEW
« no previous file with comments | « media/mojo/services/mojo_media_application.cc ('k') | media/mojo/services/service_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698