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

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

Issue 2675713002: Switch Speech Recognition to asynchronous callback-based AudioManager interactions. (Closed)
Patch Set: review comments addressed Created 3 years, 10 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
OLDNEW
(Empty)
1 // Copyright 2017 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.
4
5 #ifndef MEDIA_AUDIO_AUDIO_SYSTEM_IMPL_H_
6 #define MEDIA_AUDIO_AUDIO_SYSTEM_IMPL_H_
7
8 #include "media/audio/audio_system.h"
9
10 namespace base {
11 class SingleThreadTaskRunner;
12 }
13
14 namespace media {
15 class AudioManager;
16
17 class MEDIA_EXPORT AudioSystemImpl : public AudioSystem {
18 public:
19 static std::unique_ptr<AudioSystem> Create(AudioManager* audio_manager);
20
21 ~AudioSystemImpl() override;
22
23 // AudioSystem implementation.
24 void GetInputStreamParameters(
25 const std::string& device_id,
26 OnAudioParamsCallback on_params_cb) const override;
27 AudioManager* GetAudioManager() const override;
28
29 protected:
30 AudioSystemImpl(AudioManager* audio_manager);
31
32 private:
33 base::SingleThreadTaskRunner* GetTaskRunner() const;
34
35 AudioManager* const audio_manager_;
36
37 DISALLOW_COPY_AND_ASSIGN(AudioSystemImpl);
38 };
39
40 } // namespace media
41
42 #endif // MEDIA_AUDIO_AUDIO_SYSTEM_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698