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

Unified Diff: content/renderer/audio_message_filter.cc

Issue 6717001: Move audio messages to their own file. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 9 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/renderer/audio_message_filter.h ('k') | content/renderer/audio_message_filter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/audio_message_filter.cc
===================================================================
--- content/renderer/audio_message_filter.cc (revision 78894)
+++ content/renderer/audio_message_filter.cc (working copy)
@@ -6,8 +6,7 @@
#include "base/message_loop.h"
#include "base/time.h"
-#include "chrome/common/render_messages.h"
-#include "chrome/common/render_messages_params.h"
+#include "content/common/audio_messages.h"
#include "ipc/ipc_logging.h"
AudioMessageFilter::AudioMessageFilter(int32 route_id)
@@ -44,13 +43,12 @@
bool handled = true;
IPC_BEGIN_MESSAGE_MAP(AudioMessageFilter, message)
- IPC_MESSAGE_HANDLER(ViewMsg_RequestAudioPacket, OnRequestPacket)
- IPC_MESSAGE_HANDLER(ViewMsg_NotifyAudioStreamCreated, OnStreamCreated)
- IPC_MESSAGE_HANDLER(ViewMsg_NotifyLowLatencyAudioStreamCreated,
+ IPC_MESSAGE_HANDLER(AudioMsg_RequestPacket, OnRequestPacket)
+ IPC_MESSAGE_HANDLER(AudioMsg_NotifyStreamCreated, OnStreamCreated)
+ IPC_MESSAGE_HANDLER(AudioMsg_NotifyLowLatencyStreamCreated,
OnLowLatencyStreamCreated)
- IPC_MESSAGE_HANDLER(ViewMsg_NotifyAudioStreamStateChanged,
- OnStreamStateChanged)
- IPC_MESSAGE_HANDLER(ViewMsg_NotifyAudioStreamVolume, OnStreamVolume)
+ IPC_MESSAGE_HANDLER(AudioMsg_NotifyStreamStateChanged, OnStreamStateChanged)
+ IPC_MESSAGE_HANDLER(AudioMsg_NotifyStreamVolume, OnStreamVolume)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
return handled;
@@ -117,8 +115,7 @@
}
void AudioMessageFilter::OnStreamStateChanged(
- int stream_id,
- const ViewMsg_AudioStreamState_Params& state) {
+ int stream_id, AudioStreamState state) {
Delegate* delegate = delegates_.Lookup(stream_id);
if (!delegate) {
DLOG(WARNING) << "Got audio stream event for a non-existent or removed"
« no previous file with comments | « content/renderer/audio_message_filter.h ('k') | content/renderer/audio_message_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698