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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: media/audio/audio_system_impl.h
diff --git a/media/audio/audio_system_impl.h b/media/audio/audio_system_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..bdb6c90cb95c9fc823706b3e171282b157f8383d
--- /dev/null
+++ b/media/audio/audio_system_impl.h
@@ -0,0 +1,37 @@
+// Copyright 2017 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.
+
+#ifndef MEDIA_AUDIO_AUDIO_SYSTEM_IMPL_H_
+#define MEDIA_AUDIO_AUDIO_SYSTEM_IMPL_H_
+
+#include "media/audio/audio_system.h"
+
+namespace media {
+class AudioManager;
+
+class MEDIA_EXPORT AudioSystemImpl : public AudioSystem {
+ public:
+ static std::unique_ptr<AudioSystem> Create(AudioManager* audio_manager);
+
+ ~AudioSystemImpl();
tommi (sloooow) - chröme 2017/02/05 20:14:55 override?
o1ka 2017/02/06 12:06:08 Oops. Done.
+
+ base::SingleThreadTaskRunner* GetTaskRunner() const override;
+
+ // AudioSystem implementation.
+ void GetInputStreamParameters(const std::string& device_id,
+ OnAudioParamsCallback on_params_cb) override;
+ AudioManager* GetAudioManager() override;
+
+ protected:
+ AudioSystemImpl(AudioManager* audio_manager);
+
+ private:
+ 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.
+
+ DISALLOW_COPY_AND_ASSIGN(AudioSystemImpl);
+};
+
+} // namespace media
+
+#endif // MEDIA_AUDIO_AUDIO_SYSTEM_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698