summaryrefslogtreecommitdiffstats
path: root/base/shared_memory.h
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-16 17:32:11 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-16 17:32:11 +0000
commitabd97e42913a8713d53c4361840022a4eaa74e8c (patch)
tree51373e67c1dc0ba2821ac30edcf09b0dbc4e6aaa /base/shared_memory.h
parent3224dcddf987d47154c3232d1974a9d4ba517c8a (diff)
downloadchromium_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.h5
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