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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/media/audio/audio_server_app.h
diff --git a/services/media/audio/audio_server_app.h b/services/media/audio/audio_server_app.h
new file mode 100644
index 0000000000000000000000000000000000000000..b67262a26cdeaad92bed88b3662f44c24a4bedc3
--- /dev/null
+++ b/services/media/audio/audio_server_app.h
@@ -0,0 +1,43 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SERVICES_MEDIA_AUDIO_AUDIO_SERVER_APP_H_
+#define SERVICES_MEDIA_AUDIO_AUDIO_SERVER_APP_H_
+
+#include "mojo/common/binding_set.h"
+#include "mojo/public/cpp/application/application_delegate.h"
+#include "mojo/public/cpp/application/interface_factory.h"
+#include "mojo/services/media/audio/interfaces/audio_server.mojom.h"
+#include "services/media/audio/audio_server_impl.h"
+
+namespace mojo {
+namespace media {
+namespace audio {
+
+class AudioServerApp : public ApplicationDelegate
+ , public InterfaceFactory<AudioServer> {
+ public:
+ // Constructor/Destructor
+ AudioServerApp();
+ ~AudioServerApp() override;
+
+ // ApplicationDelegate
+ void Initialize(ApplicationImpl* app) override;
+ bool ConfigureIncomingConnection(ApplicationConnection* connection) override;
+ void Quit() override;
+
+ // InterfaceFactory<AudioServer>
+ void Create(mojo::ApplicationConnection* connection,
+ mojo::InterfaceRequest<AudioServer> request) override;
+
+ private:
+ AudioServerImpl server_impl_;
+ BindingSet<AudioServer> bindings_;
+};
+
+} // namespace audio
+} // namespace media
+} // namespace mojo
+
+#endif // SERVICES_MEDIA_AUDIO_AUDIO_SERVER_APP_H_
« 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