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

Unified Diff: content/renderer/media/audio_input_device.cc

Issue 10790121: First step towards moving AudioDevice from content/ to media/audio. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unnecessary #include Created 8 years, 5 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/audio_input_device.cc
diff --git a/content/renderer/media/audio_input_device.cc b/content/renderer/media/audio_input_device.cc
index 6d8514375575339aa1be3108811e5e3fe52d1f27..f075cb7d3e1a0f05e47087dbcfa2a67041c92050 100644
--- a/content/renderer/media/audio_input_device.cc
+++ b/content/renderer/media/audio_input_device.cc
@@ -133,7 +133,7 @@ void AudioInputDevice::OnVolume(double volume) {
NOTIMPLEMENTED();
}
-void AudioInputDevice::OnStateChanged(AudioStreamState state) {
+void AudioInputDevice::OnStateChanged(media::AudioStreamState state) {
DCHECK(message_loop()->BelongsToCurrentThread());
// Do nothing if the stream has been closed.
@@ -143,7 +143,7 @@ void AudioInputDevice::OnStateChanged(AudioStreamState state) {
switch (state) {
// TODO(xians): This should really be kAudioStreamStopped since the stream
// has been closed at this point.
- case kAudioStreamPaused:
+ case media::kAudioStreamPaused:
// TODO(xians): Should we just call ShutDownOnIOThread here instead?
filter_->RemoveDelegate(stream_id_);
@@ -156,10 +156,10 @@ void AudioInputDevice::OnStateChanged(AudioStreamState state) {
stream_id_ = 0;
pending_device_ready_ = false;
break;
- case kAudioStreamPlaying:
+ case media::kAudioStreamPlaying:
NOTIMPLEMENTED();
break;
- case kAudioStreamError:
+ case media::kAudioStreamError:
DLOG(WARNING) << "AudioInputDevice::OnStateChanged(kError)";
// Don't dereference the callback object if the audio thread
// is stopped or stopping. That could mean that the callback

Powered by Google App Engine
This is Rietveld 408576698