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

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

Issue 2675713002: Switch Speech Recognition to asynchronous callback-based AudioManager interactions. (Closed)
Patch Set: another rebase! 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 media {
11 class AudioManager;
12
13 class MEDIA_EXPORT AudioSystemImpl : public AudioSystem {
14 public:
15 static std::unique_ptr<AudioSystem> Create(AudioManager* audio_manager);
16
17 ~AudioSystemImpl();
tommi (sloooow) - chröme 2017/02/05 20:14:55 override?
o1ka 2017/02/06 12:06:08 Oops. Done.
18
19 base::SingleThreadTaskRunner* GetTaskRunner() const override;
20
21 // AudioSystem implementation.
22 void GetInputStreamParameters(const std::string& device_id,
23 OnAudioParamsCallback on_params_cb) override;
24 AudioManager* GetAudioManager() override;
25
26 protected:
27 AudioSystemImpl(AudioManager* audio_manager);
28
29 private:
30 AudioManager* audio_manager_;
tommi (sloooow) - chröme 2017/02/05 20:14:55 Can this be: AudioManager* const audio_manager_;
o1ka 2017/02/06 12:06:08 Done.
31
32 DISALLOW_COPY_AND_ASSIGN(AudioSystemImpl);
33 };
34
35 } // namespace media
36
37 #endif // MEDIA_AUDIO_AUDIO_SYSTEM_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698