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

Unified Diff: services/media/audio/fwd_decls.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_track_to_output_link.cc ('k') | services/media/audio/platform/generic/mixer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/media/audio/fwd_decls.h
diff --git a/services/media/audio/fwd_decls.h b/services/media/audio/fwd_decls.h
new file mode 100644
index 0000000000000000000000000000000000000000..c4f2c9e4fee478c0ef7d64046b17c6fbf1eefa21
--- /dev/null
+++ b/services/media/audio/fwd_decls.h
@@ -0,0 +1,44 @@
+// 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_FWD_DECLS_H__
+#define SERVICES_MEDIA_AUDIO_FWD_DECLS_H__
+
+#include <memory>
+#include <set>
+
+namespace mojo {
+namespace media {
+namespace audio {
+
+class AudioOutput;
+class AudioOutputManager;
+class AudioServerImpl;
+class AudioTrackImpl;
+class AudioTrackToOutputLink;
+
+using AudioOutputPtr = std::shared_ptr<AudioOutput>;
+using AudioOutputSet = std::set<AudioOutputPtr,
+ std::owner_less<AudioOutputPtr>>;
+using AudioOutputWeakPtr = std::weak_ptr<AudioOutput>;
+using AudioOutputWeakSet = std::set<AudioOutputWeakPtr,
+ std::owner_less<AudioOutputWeakPtr>>;
+
+using AudioTrackImplPtr = std::shared_ptr<AudioTrackImpl>;
+using AudioTrackImplSet = std::set<AudioTrackImplPtr,
+ std::owner_less<AudioTrackImplPtr>>;
+using AudioTrackImplWeakPtr = std::weak_ptr<AudioTrackImpl>;
+using AudioTrackImplWeakSet = std::set<AudioTrackImplWeakPtr,
+ std::owner_less<AudioTrackImplWeakPtr>>;
+
+using AudioTrackToOutputLinkPtr = std::shared_ptr<AudioTrackToOutputLink>;
+using AudioTrackToOutputLinkSet =
+ std::set<AudioTrackToOutputLinkPtr,
+ std::owner_less<AudioTrackToOutputLinkPtr>>;
+
+} // namespace audio
+} // namespace media
+} // namespace mojo
+
+#endif // SERVICES_MEDIA_AUDIO_FWD_DECLS_H__
« no previous file with comments | « services/media/audio/audio_track_to_output_link.cc ('k') | services/media/audio/platform/generic/mixer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698