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

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

Issue 865483005: Creating the audio_modem component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merging again Created 5 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: components/copresence/mediums/audio/audio_recorder.h
diff --git a/components/copresence/mediums/audio/audio_recorder.h b/components/copresence/mediums/audio/audio_recorder.h
deleted file mode 100644
index c208980f4990db28b5dc0ed04f6d23b890f76f28..0000000000000000000000000000000000000000
--- a/components/copresence/mediums/audio/audio_recorder.h
+++ /dev/null
@@ -1,41 +0,0 @@
-// 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_H_
-#define COMPONENTS_COPRESENCE_MEDIUMS_AUDIO_AUDIO_RECORDER_H_
-
-#include <string>
-
-#include "base/gtest_prod_util.h"
-#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
-#include "media/audio/audio_io.h"
-#include "media/audio/audio_parameters.h"
-#include "media/base/audio_converter.h"
-
-namespace copresence {
-
-// The AudioRecorder class will record audio until told to stop.
-class AudioRecorder {
- public:
- using RecordedSamplesCallback = base::Callback<void(const std::string&)>;
-
- // Initializes the object. Do not use this object before calling this method.
- virtual void Initialize(const RecordedSamplesCallback& decode_callback) = 0;
-
- // If we are already recording, this function will do nothing.
- virtual void Record() = 0;
- // If we are already stopped, this function will do nothing.
- virtual void Stop() = 0;
-
- // Cleans up and deletes this object. Do not use object after this call.
- virtual void Finalize() = 0;
-
- protected:
- virtual ~AudioRecorder() {}
-};
-
-} // namespace copresence
-
-#endif // COMPONENTS_COPRESENCE_MEDIUMS_AUDIO_AUDIO_RECORDER_H_

Powered by Google App Engine
This is Rietveld 408576698