Adds "tts" permission for Input Tools & XKB extension.
[chromium-blink-merge.git] / media / audio / fake_audio_manager.h
blobce24c3e343535b0bef0707001ef8edf5cb35c00d
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef MEDIA_AUDIO_FAKE_AUDIO_MANAGER_H_
6 #define MEDIA_AUDIO_FAKE_AUDIO_MANAGER_H_
8 #include <string>
9 #include "base/compiler_specific.h"
10 #include "media/audio/audio_manager_base.h"
11 #include "media/audio/fake_audio_input_stream.h"
12 #include "media/audio/fake_audio_output_stream.h"
14 namespace media {
16 class MEDIA_EXPORT FakeAudioManager : public AudioManagerBase {
17 public:
18 FakeAudioManager(AudioLogFactory* audio_log_factory);
20 // Implementation of AudioManager.
21 bool HasAudioOutputDevices() override;
22 bool HasAudioInputDevices() override;
24 // Implementation of AudioManagerBase.
25 AudioOutputStream* MakeLinearOutputStream(
26 const AudioParameters& params) override;
27 AudioOutputStream* MakeLowLatencyOutputStream(
28 const AudioParameters& params,
29 const std::string& device_id) override;
30 AudioInputStream* MakeLinearInputStream(
31 const AudioParameters& params,
32 const std::string& device_id) override;
33 AudioInputStream* MakeLowLatencyInputStream(
34 const AudioParameters& params,
35 const std::string& device_id) override;
36 AudioParameters GetInputStreamParameters(
37 const std::string& device_id) override;
39 protected:
40 ~FakeAudioManager() override;
42 AudioParameters GetPreferredOutputStreamParameters(
43 const std::string& output_device_id,
44 const AudioParameters& input_params) override;
46 private:
47 DISALLOW_COPY_AND_ASSIGN(FakeAudioManager);
50 } // namespace media
52 #endif // MEDIA_AUDIO_FAKE_AUDIO_MANAGER_H_