OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef SERVICES_MEDIA_AUDIO_AUDIO_SERVER_APP_H_ |
| 6 #define SERVICES_MEDIA_AUDIO_AUDIO_SERVER_APP_H_ |
| 7 |
| 8 #include "mojo/common/binding_set.h" |
| 9 #include "mojo/public/cpp/application/application_delegate.h" |
| 10 #include "mojo/public/cpp/application/interface_factory.h" |
| 11 #include "mojo/services/media/audio/interfaces/audio_server.mojom.h" |
| 12 #include "services/media/audio/audio_server_impl.h" |
| 13 |
| 14 namespace mojo { |
| 15 namespace media { |
| 16 namespace audio { |
| 17 |
| 18 class AudioServerApp : public ApplicationDelegate |
| 19 , public InterfaceFactory<AudioServer> { |
| 20 public: |
| 21 // Constructor/Destructor |
| 22 AudioServerApp(); |
| 23 ~AudioServerApp() override; |
| 24 |
| 25 // ApplicationDelegate |
| 26 void Initialize(ApplicationImpl* app) override; |
| 27 bool ConfigureIncomingConnection(ApplicationConnection* connection) override; |
| 28 void Quit() override; |
| 29 |
| 30 // InterfaceFactory<AudioServer> |
| 31 void Create(mojo::ApplicationConnection* connection, |
| 32 mojo::InterfaceRequest<AudioServer> request) override; |
| 33 |
| 34 private: |
| 35 AudioServerImpl server_impl_; |
| 36 BindingSet<AudioServer> bindings_; |
| 37 }; |
| 38 |
| 39 } // namespace audio |
| 40 } // namespace media |
| 41 } // namespace mojo |
| 42 |
| 43 #endif // SERVICES_MEDIA_AUDIO_AUDIO_SERVER_APP_H_ |
OLD | NEW |