diff options
author | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-14 03:25:15 +0000 |
---|---|---|
committer | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-14 03:25:15 +0000 |
commit | 176aa48371da91eb98d675d87b4e70c7b26d696f (patch) | |
tree | 4c972de6ecd5a54650ab1dc7d421187f5d25834f /base/shared_memory.h | |
parent | 9a3f0ac2899139ace97e399015259d028b4d5704 (diff) | |
download | chromium_src-176aa48371da91eb98d675d87b4e70c7b26d696f.zip chromium_src-176aa48371da91eb98d675d87b4e70c7b26d696f.tar.gz chromium_src-176aa48371da91eb98d675d87b4e70c7b26d696f.tar.bz2 |
Add Terminate() to the Process object, have RenderProcessHost use this to avoid some more Windows specific code.
Move Process and SharedMemory into the base namespace (most changes).
Review URL: http://codereview.chromium.org/10895
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5446 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/shared_memory.h')
-rw-r--r-- | base/shared_memory.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/base/shared_memory.h b/base/shared_memory.h index 358b7b5..34420ce 100644 --- a/base/shared_memory.h +++ b/base/shared_memory.h @@ -9,6 +9,8 @@ #include "base/basictypes.h" #include "base/process.h" +namespace base { + // SharedMemoryHandle is a platform specific type which represents // the underlying OS handle to a shared memory segment. #if defined(OS_WIN) @@ -35,7 +37,7 @@ class SharedMemory { // shared memory file that was created by a remote process and not shared // to the current process. SharedMemory(SharedMemoryHandle handle, bool read_only, - ProcessHandle process); + base::ProcessHandle process); // Destructor. Will close any open files. ~SharedMemory(); @@ -89,7 +91,7 @@ class SharedMemory { // file. new_handle is an ouput parameter to receive // the handle for use in the remote process. // Returns true on success, false otherwise. - bool ShareToProcess(ProcessHandle process, + bool ShareToProcess(base::ProcessHandle process, SharedMemoryHandle* new_handle) { return ShareToProcessCommon(process, new_handle, false); } @@ -147,5 +149,6 @@ class SharedMemoryAutoLock { DISALLOW_EVIL_CONSTRUCTORS(SharedMemoryAutoLock); }; +} // namespace base #endif // BASE_SHARED_MEMORY_H_ |