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

Unified Diff: content/renderer/media/media_stream_audio_processor.h

Issue 1246283003: Split out audio debug recording from RenderProcessHostImpl. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile. Created 4 years, 11 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: content/renderer/media/media_stream_audio_processor.h
diff --git a/content/renderer/media/media_stream_audio_processor.h b/content/renderer/media/media_stream_audio_processor.h
index dabc42f291c5356181b0d22c5f31890b6551fa96..34da1c4042ee6320aa91b1b9e9686c20784984c7 100644
--- a/content/renderer/media/media_stream_audio_processor.h
+++ b/content/renderer/media/media_stream_audio_processor.h
@@ -14,7 +14,7 @@
#include "base/time/time.h"
#include "content/common/content_export.h"
#include "content/public/common/media_stream_request.h"
-#include "content/renderer/media/aec_dump_message_filter.h"
+#include "content/renderer/media/audio_debug_recorder.h"
#include "content/renderer/media/audio_repetition_detector.h"
#include "content/renderer/media/webrtc_audio_device_impl.h"
#include "media/base/audio_converter.h"
@@ -48,10 +48,10 @@ using webrtc::AudioProcessorInterface;
// processing components like AGC, AEC and NS. It enables the components based
// on the getUserMedia constraints, processes the data and outputs it in a unit
// of 10 ms data chunk.
-class CONTENT_EXPORT MediaStreamAudioProcessor :
- NON_EXPORTED_BASE(public WebRtcPlayoutDataSource::Sink),
- NON_EXPORTED_BASE(public AudioProcessorInterface),
- NON_EXPORTED_BASE(public AecDumpMessageFilter::AecDumpDelegate) {
+class CONTENT_EXPORT MediaStreamAudioProcessor
+ : NON_EXPORTED_BASE(public WebRtcPlayoutDataSource::Sink),
+ NON_EXPORTED_BASE(public AudioProcessorInterface),
+ NON_EXPORTED_BASE(public AudioDebugRecorder::AecDumpDelegate) {
public:
// |playout_data_source| is used to register this class as a sink to the
// WebRtc playout data for processing AEC. If clients do not enable AEC,
@@ -106,7 +106,7 @@ class CONTENT_EXPORT MediaStreamAudioProcessor :
// AecDumpMessageFilter::AecDumpDelegate implementation.
// Called on the main render thread.
- void OnAecDumpFile(const IPC::PlatformFileForTransit& file_handle) override;
+ void OnAecDumpFile(base::PlatformFile file_handle) override;
void OnDisableAecDump() override;
void OnIpcClosing() override;
@@ -117,7 +117,7 @@ class CONTENT_EXPORT MediaStreamAudioProcessor :
friend class MediaStreamAudioProcessorTest;
FRIEND_TEST_ALL_PREFIXES(MediaStreamAudioProcessorTest,
- GetAecDumpMessageFilter);
+ GetAudioDebugRecorder);
// WebRtcPlayoutDataSource::Sink implementation.
void OnPlayoutData(media::AudioBus* audio_bus,
@@ -199,7 +199,7 @@ class CONTENT_EXPORT MediaStreamAudioProcessor :
base::subtle::Atomic32 typing_detected_;
// Communication with browser for AEC dump.
- scoped_refptr<AecDumpMessageFilter> aec_dump_message_filter_;
+ scoped_refptr<AudioDebugRecorder> audio_debug_recorder_;
// Flag to avoid executing Stop() more than once.
bool stopped_;
« no previous file with comments | « content/renderer/media/audio_debug_recorder_unittest.cc ('k') | content/renderer/media/media_stream_audio_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698