| OLD | NEW |
| 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_ |
| OLD | NEW |