| Index: extensions/browser/api/audio/audio_service_linux.cc
|
| diff --git a/extensions/browser/api/audio/audio_service_linux.cc b/extensions/browser/api/audio/audio_service_linux.cc
|
| deleted file mode 100644
|
| index 4e70cef40ffb096ebd823e495cf20e0f2d9de616..0000000000000000000000000000000000000000
|
| --- a/extensions/browser/api/audio/audio_service_linux.cc
|
| +++ /dev/null
|
| @@ -1,91 +0,0 @@
|
| -// Copyright 2014 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 "extensions/browser/api/audio/audio_service.h"
|
| -
|
| -#include "base/callback.h"
|
| -#include "base/memory/weak_ptr.h"
|
| -#include "base/observer_list.h"
|
| -#include "base/strings/string_number_conversions.h"
|
| -#include "base/threading/thread_checker.h"
|
| -#include "content/public/browser/browser_thread.h"
|
| -
|
| -using content::BrowserThread;
|
| -
|
| -namespace extensions {
|
| -
|
| -using core_api::audio::OutputDeviceInfo;
|
| -using core_api::audio::InputDeviceInfo;
|
| -
|
| -class AudioServiceImpl : public AudioService {
|
| - public:
|
| - AudioServiceImpl();
|
| - ~AudioServiceImpl() override;
|
| -
|
| - private:
|
| - // Called by listeners to this service to add/remove themselves as observers.
|
| - void AddObserver(AudioService::Observer* observer) override;
|
| - void RemoveObserver(AudioService::Observer* observer) override;
|
| -
|
| - // Start to query audio device information.
|
| - void StartGetInfo(const GetInfoCallback& callback) override;
|
| - void SetActiveDevices(const DeviceIdList& device_list) override;
|
| - bool SetDeviceProperties(const std::string& device_id,
|
| - bool muted,
|
| - int volume,
|
| - int gain) override;
|
| -
|
| - // List of observers.
|
| - ObserverList<AudioService::Observer> observer_list_;
|
| -
|
| - base::ThreadChecker thread_checker_;
|
| -
|
| - // Note: This should remain the last member so it'll be destroyed and
|
| - // invalidate the weak pointers before any other members are destroyed.
|
| - base::WeakPtrFactory<AudioServiceImpl> weak_ptr_factory_;
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(AudioServiceImpl);
|
| -};
|
| -
|
| -AudioServiceImpl::AudioServiceImpl() : weak_ptr_factory_(this) {
|
| - DCHECK(thread_checker_.CalledOnValidThread());
|
| -}
|
| -
|
| -AudioServiceImpl::~AudioServiceImpl() {
|
| - DCHECK(thread_checker_.CalledOnValidThread());
|
| -}
|
| -
|
| -void AudioServiceImpl::AddObserver(AudioService::Observer* observer) {
|
| - DCHECK(thread_checker_.CalledOnValidThread());
|
| - observer_list_.AddObserver(observer);
|
| -}
|
| -
|
| -void AudioServiceImpl::RemoveObserver(AudioService::Observer* observer) {
|
| - DCHECK(thread_checker_.CalledOnValidThread());
|
| - observer_list_.RemoveObserver(observer);
|
| -}
|
| -
|
| -void AudioServiceImpl::StartGetInfo(const GetInfoCallback& callback) {
|
| - DCHECK(thread_checker_.CalledOnValidThread());
|
| - if (!callback.is_null())
|
| - callback.Run(OutputInfo(), InputInfo(), false);
|
| -}
|
| -
|
| -void AudioServiceImpl::SetActiveDevices(const DeviceIdList& device_list) {
|
| - DCHECK(thread_checker_.CalledOnValidThread());
|
| -}
|
| -
|
| -bool AudioServiceImpl::SetDeviceProperties(const std::string& device_id,
|
| - bool muted,
|
| - int volume,
|
| - int gain) {
|
| - DCHECK(thread_checker_.CalledOnValidThread());
|
| - return false;
|
| -}
|
| -
|
| -AudioService* AudioService::CreateInstance() {
|
| - return new AudioServiceImpl;
|
| -}
|
| -
|
| -} // namespace extensions
|
|
|