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

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

Issue 1424933002: Add an initial revision of an audio server. (Closed) Base URL: https://github.com/domokit/mojo.git@change4
Patch Set: fix issues discovered with initial preflight Created 5 years, 1 month 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/media/audio/audio_pipe.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
(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_
OLDNEW
« no previous file with comments | « services/media/audio/audio_pipe.cc ('k') | services/media/audio/audio_server_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698