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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 8229039: Make shared memory allocation possible for all child process types. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/pepper_plugin_delegate_impl.cc ('k') | content/renderer/renderer_glue.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.cc
===================================================================
--- content/renderer/render_thread_impl.cc (revision 105562)
+++ content/renderer/render_thread_impl.cc (working copy)
@@ -22,6 +22,7 @@
#include "base/threading/thread_local.h"
#include "base/values.h"
#include "content/common/appcache/appcache_dispatcher.h"
+#include "content/common/child_process_messages.h"
#include "content/common/database_messages.h"
#include "content/common/db_message_filter.h"
#include "content/common/dom_storage_messages.h"
@@ -73,9 +74,7 @@
#include "webkit/glue/webkit_glue.h"
// TODO(port)
-#if defined(OS_WIN)
-#include "content/common/child_process_messages.h"
-#else
+#if !defined(OS_WIN)
#include "base/memory/scoped_handle.h"
#include "content/common/np_channel_base.h"
#endif
@@ -523,9 +522,10 @@
}
base::SharedMemoryHandle RenderThreadImpl::HostAllocateSharedMemoryBuffer(
- uint32 buffer_size) {
+ uint32 buffer_size) {
base::SharedMemoryHandle mem_handle;
- Send(new ViewHostMsg_AllocateSharedMemoryBuffer(buffer_size, &mem_handle));
+ Send(new ChildProcessHostMsg_SyncAllocateSharedMemory(
+ buffer_size, &mem_handle));
return mem_handle;
}
« no previous file with comments | « content/renderer/pepper_plugin_delegate_impl.cc ('k') | content/renderer/renderer_glue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698