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

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

Issue 1979723002: ApplicationConnection devolution, part 3. (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
« no previous file with comments | « services/log/main.cc ('k') | services/media/audio/audio_server_app.cc » ('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 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 #ifndef SERVICES_MEDIA_AUDIO_AUDIO_SERVER_APP_H_ 5 #ifndef SERVICES_MEDIA_AUDIO_AUDIO_SERVER_APP_H_
6 #define SERVICES_MEDIA_AUDIO_AUDIO_SERVER_APP_H_ 6 #define SERVICES_MEDIA_AUDIO_AUDIO_SERVER_APP_H_
7 7
8 #include "mojo/common/binding_set.h" 8 #include "mojo/common/binding_set.h"
9 #include "mojo/public/cpp/application/application_delegate.h" 9 #include "mojo/public/cpp/application/application_delegate.h"
10 #include "mojo/services/media/audio/interfaces/audio_server.mojom.h" 10 #include "mojo/services/media/audio/interfaces/audio_server.mojom.h"
11 #include "services/media/audio/audio_server_impl.h" 11 #include "services/media/audio/audio_server_impl.h"
12 12
13 namespace mojo { 13 namespace mojo {
14 namespace media { 14 namespace media {
15 namespace audio { 15 namespace audio {
16 16
17 class AudioServerApp : public ApplicationDelegate { 17 class AudioServerApp : public ApplicationDelegate {
18 public: 18 public:
19 AudioServerApp(); 19 AudioServerApp();
20 ~AudioServerApp() override; 20 ~AudioServerApp() override;
21 21
22 // ApplicationDelegate 22 // ApplicationDelegate
23 void Initialize(ApplicationImpl* app) override; 23 void Initialize(ApplicationImpl* app) override;
24 bool ConfigureIncomingConnection(ApplicationConnection* connection) override; 24 bool ConfigureIncomingConnection(
25 ServiceProviderImpl* service_provider_impl) override;
25 void Quit() override; 26 void Quit() override;
26 27
27 private: 28 private:
28 AudioServerImpl server_impl_; 29 AudioServerImpl server_impl_;
29 BindingSet<AudioServer> bindings_; 30 BindingSet<AudioServer> bindings_;
30 }; 31 };
31 32
32 } // namespace audio 33 } // namespace audio
33 } // namespace media 34 } // namespace media
34 } // namespace mojo 35 } // namespace mojo
35 36
36 #endif // SERVICES_MEDIA_AUDIO_AUDIO_SERVER_APP_H_ 37 #endif // SERVICES_MEDIA_AUDIO_AUDIO_SERVER_APP_H_
OLDNEW
« no previous file with comments | « services/log/main.cc ('k') | services/media/audio/audio_server_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698