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

Side by Side Diff: media/audio/audio_manager_base.h

Issue 2626263006: Add browser test for getusermedia and unavailable audio device. (Closed)
Patch Set: Add comment Created 3 years, 11 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 unified diff | Download patch
« no previous file with comments | « media/audio/audio_manager.cc ('k') | media/audio/audio_manager_base.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ 5 #ifndef MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_
6 #define MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ 6 #define MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <unordered_set> 10 #include <unordered_set>
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 AudioParameters GetDefaultOutputStreamParameters() override; 61 AudioParameters GetDefaultOutputStreamParameters() override;
62 AudioParameters GetOutputStreamParameters( 62 AudioParameters GetOutputStreamParameters(
63 const std::string& device_id) override; 63 const std::string& device_id) override;
64 AudioParameters GetInputStreamParameters( 64 AudioParameters GetInputStreamParameters(
65 const std::string& device_id) override; 65 const std::string& device_id) override;
66 std::string GetAssociatedOutputDeviceID( 66 std::string GetAssociatedOutputDeviceID(
67 const std::string& input_device_id) override; 67 const std::string& input_device_id) override;
68 std::unique_ptr<AudioLog> CreateAudioLog( 68 std::unique_ptr<AudioLog> CreateAudioLog(
69 AudioLogFactory::AudioComponent component) override; 69 AudioLogFactory::AudioComponent component) override;
70 70
71 void SetMaxStreamCountForTesting(int max_input, int max_output) final;
72
71 // AudioManagerBase: 73 // AudioManagerBase:
72 74
73 // Called internally by the audio stream when it has been closed. 75 // Called internally by the audio stream when it has been closed.
74 virtual void ReleaseOutputStream(AudioOutputStream* stream); 76 virtual void ReleaseOutputStream(AudioOutputStream* stream);
75 virtual void ReleaseInputStream(AudioInputStream* stream); 77 virtual void ReleaseInputStream(AudioInputStream* stream);
76 78
77 // Creates the output stream for the |AUDIO_PCM_LINEAR| format. The legacy 79 // Creates the output stream for the |AUDIO_PCM_LINEAR| format. The legacy
78 // name is also from |AUDIO_PCM_LINEAR|. 80 // name is also from |AUDIO_PCM_LINEAR|.
79 virtual AudioOutputStream* MakeLinearOutputStream( 81 virtual AudioOutputStream* MakeLinearOutputStream(
80 const AudioParameters& params, 82 const AudioParameters& params,
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 188
187 // Proxy for creating AudioLog objects. 189 // Proxy for creating AudioLog objects.
188 AudioLogFactory* const audio_log_factory_; 190 AudioLogFactory* const audio_log_factory_;
189 191
190 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase); 192 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase);
191 }; 193 };
192 194
193 } // namespace media 195 } // namespace media
194 196
195 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ 197 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_
OLDNEW
« no previous file with comments | « media/audio/audio_manager.cc ('k') | media/audio/audio_manager_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698