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

Side by Side Diff: services/media/audio/audio_server_app.cc

Issue 1975993002: Change InterfaceFactory<I>::Create() to take a ConnectionContext instead of an ApplicationConnectio… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 7 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "base/logging.h" 5 #include "base/logging.h"
6 #include "mojo/application/application_runner_chromium.h" 6 #include "mojo/application/application_runner_chromium.h"
7 #include "mojo/public/c/system/main.h" 7 #include "mojo/public/c/system/main.h"
8 #include "mojo/public/cpp/application/application_delegate.h" 8 #include "mojo/public/cpp/application/application_delegate.h"
9 #include "mojo/public/cpp/application/application_impl.h" 9 #include "mojo/public/cpp/application/application_impl.h"
10 #include "services/media/audio/audio_server_app.h" 10 #include "services/media/audio/audio_server_app.h"
(...skipping 13 matching lines...) Expand all
24 24
25 bool AudioServerApp::ConfigureIncomingConnection( 25 bool AudioServerApp::ConfigureIncomingConnection(
26 ApplicationConnection* connection) { 26 ApplicationConnection* connection) {
27 connection->AddService(this); 27 connection->AddService(this);
28 return true; 28 return true;
29 } 29 }
30 30
31 void AudioServerApp::Quit() { 31 void AudioServerApp::Quit() {
32 } 32 }
33 33
34 void AudioServerApp::Create(ApplicationConnection* connection, 34 void AudioServerApp::Create(const ConnectionContext& connection_context,
35 InterfaceRequest<AudioServer> request) { 35 InterfaceRequest<AudioServer> request) {
36 bindings_.AddBinding(&server_impl_, request.Pass()); 36 bindings_.AddBinding(&server_impl_, request.Pass());
37 } 37 }
38 38
39 } // namespace audio 39 } // namespace audio
40 } // namespace media 40 } // namespace media
41 } // namespace mojo 41 } // namespace mojo
42 42
43 MojoResult MojoMain(MojoHandle app_request) { 43 MojoResult MojoMain(MojoHandle app_request) {
44 mojo::ApplicationRunnerChromium runner( 44 mojo::ApplicationRunnerChromium runner(
45 new mojo::media::audio::AudioServerApp); 45 new mojo::media::audio::AudioServerApp);
46 return runner.Run(app_request); 46 return runner.Run(app_request);
47 } 47 }
OLDNEW
« no previous file with comments | « services/media/audio/audio_server_app.h ('k') | services/media/factory_service/factory_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698