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

Unified Diff: content/browser/renderer_host/render_message_filter.cc

Issue 8497014: Adds proper IPC usage for AudioDevice::GetAudioHardwareBufferSize(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Replaced size_t with uint32 Created 9 years, 1 month 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/browser/renderer_host/render_message_filter.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_message_filter.cc
===================================================================
--- content/browser/renderer_host/render_message_filter.cc (revision 109200)
+++ content/browser/renderer_host/render_message_filter.cc (working copy)
@@ -356,6 +356,8 @@
OnCacheableMetadataAvailable)
IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_Keygen, OnKeygen)
IPC_MESSAGE_HANDLER(ViewHostMsg_AsyncOpenFile, OnAsyncOpenFile)
+ IPC_MESSAGE_HANDLER(ViewHostMsg_GetHardwareBufferSize,
+ OnGetHardwareBufferSize)
IPC_MESSAGE_HANDLER(ViewHostMsg_GetHardwareInputSampleRate,
OnGetHardwareInputSampleRate)
IPC_MESSAGE_HANDLER(ViewHostMsg_GetHardwareSampleRate,
@@ -606,6 +608,10 @@
*route_id = render_widget_helper_->GetNextRoutingID();
}
+void RenderMessageFilter::OnGetHardwareBufferSize(uint32* buffer_size) {
+ *buffer_size = static_cast<uint32>(media::GetAudioHardwareBufferSize());
+}
+
void RenderMessageFilter::OnGetHardwareInputSampleRate(double* sample_rate) {
*sample_rate = media::GetAudioInputHardwareSampleRate();
}
« no previous file with comments | « content/browser/renderer_host/render_message_filter.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698