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

Unified Diff: components/copresence/mediums/audio/audio_recorder_stub.h

Issue 637223011: Redesign the copresence audio handlers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Created 6 years, 2 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: components/copresence/mediums/audio/audio_recorder_stub.h
diff --git a/components/copresence/mediums/audio/audio_recorder_stub.h b/components/copresence/mediums/audio/audio_recorder_stub.h
new file mode 100644
index 0000000000000000000000000000000000000000..d589d02628f99cb55d413d1e3103bd160128ed57
--- /dev/null
+++ b/components/copresence/mediums/audio/audio_recorder_stub.h
@@ -0,0 +1,36 @@
+// Copyright 2014 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 COMPONENTS_COPRESENCE_MEDIUMS_AUDIO_AUDIO_RECORDER_STUB_H_
+#define COMPONENTS_COPRESENCE_MEDIUMS_AUDIO_AUDIO_RECORDER_STUB_H_
+
+#include "base/macros.h"
+#include "components/copresence/mediums/audio/audio_recorder.h"
+
+namespace copresence {
+
+class AudioRecorderStub final : public AudioRecorder {
+ public:
+ AudioRecorderStub();
+ virtual ~AudioRecorderStub();
+
+ // AudioRecorder overrides:
+ virtual void Initialize(const RecordedSamplesCallback& cb) override;
+ virtual void Record() override;
+ virtual void Stop() override;
+ virtual void Finalize() override;
+ virtual bool IsRecording() override;
+
+ void TriggerDecodeRequest();
+
+ private:
+ RecordedSamplesCallback cb_;
+ bool is_recording_;
+
+ DISALLOW_COPY_AND_ASSIGN(AudioRecorderStub);
+};
+
+} // namespace copresence
+
+#endif // COMPONENTS_COPRESENCE_MEDIUMS_AUDIO_AUDIO_RECORDER_STUB_H_

Powered by Google App Engine
This is Rietveld 408576698