diff options
author | michaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-15 00:33:03 +0000 |
---|---|---|
committer | michaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-15 00:33:03 +0000 |
commit | bdae981ec7c7206a631d1b27ad3151df7429c584 (patch) | |
tree | 2ff241a456c5e0e6ceffefe8754e7968447d1703 /content/common/child_thread.h | |
parent | 23d50ceba2892577f8fa7bcedbe27ad0de4c0c93 (diff) | |
download | chromium_src-bdae981ec7c7206a631d1b27ad3151df7429c584.zip chromium_src-bdae981ec7c7206a631d1b27ad3151df7429c584.tar.gz chromium_src-bdae981ec7c7206a631d1b27ad3151df7429c584.tar.bz2 |
Make shared memory allocation possible for all child process types.
Review URL: http://codereview.chromium.org/8229039
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105621 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/child_thread.h')
-rw-r--r-- | content/common/child_thread.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/content/common/child_thread.h b/content/common/child_thread.h index 356ffd5..a58fecf 100644 --- a/content/common/child_thread.h +++ b/content/common/child_thread.h @@ -8,6 +8,7 @@ #include "base/basictypes.h" #include "base/memory/scoped_ptr.h" +#include "base/shared_memory.h" #include "content/common/content_export.h" #include "content/common/message_router.h" #include "webkit/glue/resource_loader_bridge.h" @@ -50,6 +51,12 @@ class CONTENT_EXPORT ChildThread : public IPC::Channel::Listener, virtual webkit_glue::ResourceLoaderBridge* CreateBridge( const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info); + // Allocates a block of shared memory of the given size and + // maps in into the address space. Returns NULL of failure. + // Note: On posix, this requires a sync IPC to the browser process, + // but on windows the child process directly allocates the block. + base::SharedMemory* AllocateSharedMemory(size_t buf_size); + ResourceDispatcher* resource_dispatcher(); SocketStreamDispatcher* socket_stream_dispatcher() { |