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

Unified Diff: content/browser/renderer_host/media/audio_debug_file_writer.h

Issue 2702323002: Move AudioDebugFileWriter from content/ to media/. (Closed)
Patch Set: Code review, unit test fix and 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
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/renderer_host/media/audio_debug_file_writer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/media/audio_debug_file_writer.h
diff --git a/content/browser/renderer_host/media/audio_debug_file_writer.h b/content/browser/renderer_host/media/audio_debug_file_writer.h
deleted file mode 100644
index 1ef10f186b18553f73abb4704db74359396bf592..0000000000000000000000000000000000000000
--- a/content/browser/renderer_host/media/audio_debug_file_writer.h
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright 2015 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 CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_DEBUG_FILE_WRITER_H_
-#define CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_DEBUG_FILE_WRITER_H_
-
-#include <stdint.h>
-
-#include <memory>
-
-#include "base/files/file.h"
-#include "base/macros.h"
-#include "base/sequence_checker.h"
-#include "content/common/content_export.h"
-#include "content/public/browser/browser_thread.h"
-#include "media/audio/audio_file_writer.h"
-#include "media/base/audio_parameters.h"
-
-namespace media {
-
-class AudioBus;
-
-} // namespace media
-
-namespace content {
-
-// Writes audio input data used for debugging purposes. All operations are
-// non-blocking.
-class CONTENT_EXPORT AudioDebugFileWriter
- : public NON_EXPORTED_BASE(media::AudioFileWriter) {
- public:
- explicit AudioDebugFileWriter(const media::AudioParameters& params);
- ~AudioDebugFileWriter() override;
-
- void Start(const base::FilePath& file) override;
- void Stop() override;
- void Write(std::unique_ptr<media::AudioBus> data) override;
- bool WillWrite() override;
-
- private:
- class AudioFileWriter;
- using AudioFileWriterUniquePtr =
- std::unique_ptr<AudioFileWriter, BrowserThread::DeleteOnFileThread>;
- AudioFileWriterUniquePtr file_writer_;
- const media::AudioParameters params_;
- base::SequenceChecker client_sequence_checker_;
-};
-
-} // namspace content
-
-#endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_DEBUG_FILE_WRITER_H_
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/renderer_host/media/audio_debug_file_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698