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

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

Issue 1901583005: Revert of Pass task runners to AudioManager constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « media/mojo/services/mojo_media_application.h ('k') | media/mojo/services/mojo_media_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_media_application.h" 5 #include "media/mojo/services/mojo_media_application.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "media/base/media_log.h" 9 #include "media/base/media_log.h"
10 #include "media/mojo/services/mojo_media_client.h" 10 #include "media/mojo/services/mojo_media_client.h"
(...skipping 19 matching lines...) Expand all
30 uint32_t /* id */) { 30 uint32_t /* id */) {
31 connector_ = connector; 31 connector_ = connector;
32 mojo_media_client_->Initialize(); 32 mojo_media_client_->Initialize();
33 } 33 }
34 34
35 bool MojoMediaApplication::AcceptConnection(shell::Connection* connection) { 35 bool MojoMediaApplication::AcceptConnection(shell::Connection* connection) {
36 connection->AddInterface<interfaces::ServiceFactory>(this); 36 connection->AddInterface<interfaces::ServiceFactory>(this);
37 return true; 37 return true;
38 } 38 }
39 39
40 bool MojoMediaApplication::ShellConnectionLost() {
41 mojo_media_client_->WillQuit();
42 return true;
43 }
44
45 void MojoMediaApplication::Create( 40 void MojoMediaApplication::Create(
46 shell::Connection* connection, 41 shell::Connection* connection,
47 mojo::InterfaceRequest<interfaces::ServiceFactory> request) { 42 mojo::InterfaceRequest<interfaces::ServiceFactory> request) {
48 // The created object is owned by the pipe. 43 // The created object is owned by the pipe.
49 new ServiceFactoryImpl(std::move(request), connection->GetRemoteInterfaces(), 44 new ServiceFactoryImpl(std::move(request), connection->GetRemoteInterfaces(),
50 media_log_, ref_factory_.CreateRef(), 45 media_log_, ref_factory_.CreateRef(),
51 mojo_media_client_.get()); 46 mojo_media_client_.get());
52 } 47 }
53 48
54 } // namespace media 49 } // namespace media
OLDNEW
« no previous file with comments | « media/mojo/services/mojo_media_application.h ('k') | media/mojo/services/mojo_media_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698