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

Side by Side Diff: content/renderer/media/media_stream_audio_processor.h

Issue 670683003: Standardize usage of virtual/override/final in content/renderer/ (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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_H_
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_H_ 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_H_
7 7
8 #include "base/atomicops.h" 8 #include "base/atomicops.h"
9 #include "base/files/file.h" 9 #include "base/files/file.h"
10 #include "base/synchronization/lock.h" 10 #include "base/synchronization/lock.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 // The audio formats of the capture input to and output from the processor. 100 // The audio formats of the capture input to and output from the processor.
101 // Must only be called on the main render or audio capture threads. 101 // Must only be called on the main render or audio capture threads.
102 const media::AudioParameters& InputFormat() const; 102 const media::AudioParameters& InputFormat() const;
103 const media::AudioParameters& OutputFormat() const; 103 const media::AudioParameters& OutputFormat() const;
104 104
105 // Accessor to check if the audio processing is enabled or not. 105 // Accessor to check if the audio processing is enabled or not.
106 bool has_audio_processing() const { return audio_processing_ != NULL; } 106 bool has_audio_processing() const { return audio_processing_ != NULL; }
107 107
108 // AecDumpMessageFilter::AecDumpDelegate implementation. 108 // AecDumpMessageFilter::AecDumpDelegate implementation.
109 // Called on the main render thread. 109 // Called on the main render thread.
110 virtual void OnAecDumpFile( 110 void OnAecDumpFile(const IPC::PlatformFileForTransit& file_handle) override;
111 const IPC::PlatformFileForTransit& file_handle) override; 111 void OnDisableAecDump() override;
112 virtual void OnDisableAecDump() override; 112 void OnIpcClosing() override;
113 virtual void OnIpcClosing() override;
114 113
115 protected: 114 protected:
116 friend class base::RefCountedThreadSafe<MediaStreamAudioProcessor>; 115 friend class base::RefCountedThreadSafe<MediaStreamAudioProcessor>;
117 virtual ~MediaStreamAudioProcessor(); 116 ~MediaStreamAudioProcessor() override;
118 117
119 private: 118 private:
120 friend class MediaStreamAudioProcessorTest; 119 friend class MediaStreamAudioProcessorTest;
121 FRIEND_TEST_ALL_PREFIXES(MediaStreamAudioProcessorTest, 120 FRIEND_TEST_ALL_PREFIXES(MediaStreamAudioProcessorTest,
122 GetAecDumpMessageFilter); 121 GetAecDumpMessageFilter);
123 122
124 // WebRtcPlayoutDataSource::Sink implementation. 123 // WebRtcPlayoutDataSource::Sink implementation.
125 virtual void OnPlayoutData(media::AudioBus* audio_bus, 124 void OnPlayoutData(media::AudioBus* audio_bus,
126 int sample_rate, 125 int sample_rate,
127 int audio_delay_milliseconds) override; 126 int audio_delay_milliseconds) override;
128 virtual void OnPlayoutDataSourceChanged() override; 127 void OnPlayoutDataSourceChanged() override;
129 128
130 // webrtc::AudioProcessorInterface implementation. 129 // webrtc::AudioProcessorInterface implementation.
131 // This method is called on the libjingle thread. 130 // This method is called on the libjingle thread.
132 virtual void GetStats(AudioProcessorStats* stats) override; 131 void GetStats(AudioProcessorStats* stats) override;
133 132
134 // Helper to initialize the WebRtc AudioProcessing. 133 // Helper to initialize the WebRtc AudioProcessing.
135 void InitializeAudioProcessingModule( 134 void InitializeAudioProcessingModule(
136 const blink::WebMediaConstraints& constraints, int effects); 135 const blink::WebMediaConstraints& constraints, int effects);
137 136
138 // Helper to initialize the capture converter. 137 // Helper to initialize the capture converter.
139 void InitializeCaptureFifo(const media::AudioParameters& input_format); 138 void InitializeCaptureFifo(const media::AudioParameters& input_format);
140 139
141 // Helper to initialize the render converter. 140 // Helper to initialize the render converter.
142 void InitializeRenderFifoIfNeeded(int sample_rate, 141 void InitializeRenderFifoIfNeeded(int sample_rate,
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 // Communication with browser for AEC dump. 200 // Communication with browser for AEC dump.
202 scoped_refptr<AecDumpMessageFilter> aec_dump_message_filter_; 201 scoped_refptr<AecDumpMessageFilter> aec_dump_message_filter_;
203 202
204 // Flag to avoid executing Stop() more than once. 203 // Flag to avoid executing Stop() more than once.
205 bool stopped_; 204 bool stopped_;
206 }; 205 };
207 206
208 } // namespace content 207 } // namespace content
209 208
210 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_H_ 209 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_H_
OLDNEW
« no previous file with comments | « content/renderer/media/crypto/render_cdm_factory.h ('k') | content/renderer/media/media_stream_audio_sink_owner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698