| 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
|
|
|