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

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

Issue 2015643002: Add (optional) options to Run[Main]Application(). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: doh 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 #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_impl_base.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 ApplicationImplBase {
18 public: 18 public:
19 AudioServerApp(); 19 AudioServerApp();
20 ~AudioServerApp() override; 20 ~AudioServerApp() override;
21 21
22 // ApplicationDelegate 22 // ApplicationImplBase overrides:
23 void Initialize(ApplicationImpl* app) override; 23 void OnInitialize() override;
24 bool ConfigureIncomingConnection( 24 bool OnAcceptConnection(ServiceProviderImpl* service_provider_impl) override;
25 ServiceProviderImpl* service_provider_impl) override;
26 void Quit() override;
27 25
28 private: 26 private:
29 AudioServerImpl server_impl_; 27 AudioServerImpl server_impl_;
30 BindingSet<AudioServer> bindings_; 28 BindingSet<AudioServer> bindings_;
31 }; 29 };
32 30
33 } // namespace audio 31 } // namespace audio
34 } // namespace media 32 } // namespace media
35 } // namespace mojo 33 } // namespace mojo
36 34
37 #endif // SERVICES_MEDIA_AUDIO_AUDIO_SERVER_APP_H_ 35 #endif // SERVICES_MEDIA_AUDIO_AUDIO_SERVER_APP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698