diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-16 17:32:11 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-16 17:32:11 +0000 |
commit | abd97e42913a8713d53c4361840022a4eaa74e8c (patch) | |
tree | 51373e67c1dc0ba2821ac30edcf09b0dbc4e6aaa /base/shared_memory.h | |
parent | 3224dcddf987d47154c3232d1974a9d4ba517c8a (diff) | |
download | chromium_src-abd97e42913a8713d53c4361840022a4eaa74e8c.zip chromium_src-abd97e42913a8713d53c4361840022a4eaa74e8c.tar.gz chromium_src-abd97e42913a8713d53c4361840022a4eaa74e8c.tar.bz2 |
posix: clean up shared memory code
At first I rewrote this to use the shm_*() family of
functions, but that doesn't work on OS X. Now I've just
cleaned up some bits and added an extra print to help with
the below bug.
BUG=16371
Review URL: http://codereview.chromium.org/204024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26361 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/shared_memory.h')
-rw-r--r-- | base/shared_memory.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/base/shared_memory.h b/base/shared_memory.h index ea72069..90bed59 100644 --- a/base/shared_memory.h +++ b/base/shared_memory.h @@ -17,6 +17,8 @@ #include "base/basictypes.h" #include "base/process.h" +class FilePath; + namespace base { // SharedMemoryHandle is a platform specific type which represents @@ -160,8 +162,7 @@ class SharedMemory { private: #if defined(OS_POSIX) bool CreateOrOpen(const std::wstring &name, int posix_flags, size_t size); - bool FilenameForMemoryName(const std::wstring &memname, - std::wstring *filename); + bool FilePathForMemoryName(const std::wstring& memname, FilePath* path); void LockOrUnlockCommon(int function); #endif |