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

Unified Diff: chrome/browser/extensions/api/audio/audio_service.cc

Issue 13486004: Audio extension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Rahul's comments. Created 7 years, 8 months 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
Index: chrome/browser/extensions/api/audio/audio_service.cc
diff --git a/chrome/browser/extensions/api/audio/audio_service.cc b/chrome/browser/extensions/api/audio/audio_service.cc
new file mode 100644
index 0000000000000000000000000000000000000000..3406f65cd4c4afdd61872d0395088d3a6356a2fb
--- /dev/null
+++ b/chrome/browser/extensions/api/audio/audio_service.cc
@@ -0,0 +1,40 @@
+// Copyright (c) 2013 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.
+
+#include "chrome/browser/extensions/api/audio/audio_service.h"
+
+namespace extensions {
+
+class AudioServiceImpl : public AudioService {
+ public:
+ AudioServiceImpl() {}
+ virtual ~AudioServiceImpl() {}
+
+ // Called by listeners to this service to add/remove themselves as observers.
+ virtual void AddObserver(Observer* observer);
+ virtual void RemoveObserver(Observer* observer);
+
+ // Start to query audio device information.
+ virtual void StartGetInfo(const GetInfoCallback& callback);
+};
+
+void AudioServiceImpl::AddObserver(Observer* observer) {
+ // TODO: implement this for platforms other than Chrome OS.
+}
+
+void AudioServiceImpl::RemoveObserver(Observer* observer) {
+ // TODO: implement this for platforms other than Chrome OS.
+}
+
+AudioService* AudioService::CreateInstance() {
+ return new AudioServiceImpl;
+}
+
+void AudioServiceImpl::StartGetInfo(const GetInfoCallback& callback) {
+ // TODO: implement this for platforms other than Chrome OS.
+ if (!callback.is_null())
+ callback.Run(OutputInfo(), InputInfo(), false);
+}
+
+} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698