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

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

Issue 633303002: Replace FINAL and OVERRIDE with their C++11 counterparts 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 virtual void OnAecDumpFile(
111 const IPC::PlatformFileForTransit& file_handle) OVERRIDE; 111 const IPC::PlatformFileForTransit& file_handle) override;
112 virtual void OnDisableAecDump() OVERRIDE; 112 virtual void OnDisableAecDump() override;
113 virtual void OnIpcClosing() OVERRIDE; 113 virtual void OnIpcClosing() override;
114 114
115 protected: 115 protected:
116 friend class base::RefCountedThreadSafe<MediaStreamAudioProcessor>; 116 friend class base::RefCountedThreadSafe<MediaStreamAudioProcessor>;
117 virtual ~MediaStreamAudioProcessor(); 117 virtual ~MediaStreamAudioProcessor();
118 118
119 private: 119 private:
120 friend class MediaStreamAudioProcessorTest; 120 friend class MediaStreamAudioProcessorTest;
121 FRIEND_TEST_ALL_PREFIXES(MediaStreamAudioProcessorTest, 121 FRIEND_TEST_ALL_PREFIXES(MediaStreamAudioProcessorTest,
122 GetAecDumpMessageFilter); 122 GetAecDumpMessageFilter);
123 123
124 // WebRtcPlayoutDataSource::Sink implementation. 124 // WebRtcPlayoutDataSource::Sink implementation.
125 virtual void OnPlayoutData(media::AudioBus* audio_bus, 125 virtual void OnPlayoutData(media::AudioBus* audio_bus,
126 int sample_rate, 126 int sample_rate,
127 int audio_delay_milliseconds) OVERRIDE; 127 int audio_delay_milliseconds) override;
128 virtual void OnPlayoutDataSourceChanged() OVERRIDE; 128 virtual void OnPlayoutDataSourceChanged() override;
129 129
130 // webrtc::AudioProcessorInterface implementation. 130 // webrtc::AudioProcessorInterface implementation.
131 // This method is called on the libjingle thread. 131 // This method is called on the libjingle thread.
132 virtual void GetStats(AudioProcessorStats* stats) OVERRIDE; 132 virtual void GetStats(AudioProcessorStats* stats) override;
133 133
134 // Helper to initialize the WebRtc AudioProcessing. 134 // Helper to initialize the WebRtc AudioProcessing.
135 void InitializeAudioProcessingModule( 135 void InitializeAudioProcessingModule(
136 const blink::WebMediaConstraints& constraints, int effects); 136 const blink::WebMediaConstraints& constraints, int effects);
137 137
138 // Helper to initialize the capture converter. 138 // Helper to initialize the capture converter.
139 void InitializeCaptureFifo(const media::AudioParameters& input_format); 139 void InitializeCaptureFifo(const media::AudioParameters& input_format);
140 140
141 // Helper to initialize the render converter. 141 // Helper to initialize the render converter.
142 void InitializeRenderFifoIfNeeded(int sample_rate, 142 void InitializeRenderFifoIfNeeded(int sample_rate,
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 // Communication with browser for AEC dump. 201 // Communication with browser for AEC dump.
202 scoped_refptr<AecDumpMessageFilter> aec_dump_message_filter_; 202 scoped_refptr<AecDumpMessageFilter> aec_dump_message_filter_;
203 203
204 // Flag to avoid executing Stop() more than once. 204 // Flag to avoid executing Stop() more than once.
205 bool stopped_; 205 bool stopped_;
206 }; 206 };
207 207
208 } // namespace content 208 } // namespace content
209 209
210 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_H_ 210 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_H_
OLDNEW
« no previous file with comments | « content/renderer/media/crypto/renderer_cdm_manager.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