diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-29 20:32:22 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-29 20:32:22 +0000 |
commit | b6413b49b4a1bf216bbc70cc330e905c42db5c5b (patch) | |
tree | 1ea76480a59217bd06dadcb071dad2d8150a6518 /base/shared_memory.h | |
parent | a6c642112b067d998e699e09302d8c48649b108f (diff) | |
download | chromium_src-b6413b49b4a1bf216bbc70cc330e905c42db5c5b.zip chromium_src-b6413b49b4a1bf216bbc70cc330e905c42db5c5b.tar.gz chromium_src-b6413b49b4a1bf216bbc70cc330e905c42db5c5b.tar.bz2 |
shared_memory: remove wstrings, fix callers.
BUG=23581
TEST=compiles
Review URL: http://codereview.chromium.org/3555002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60985 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/shared_memory.h')
-rw-r--r-- | base/shared_memory.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/base/shared_memory.h b/base/shared_memory.h index 1f7cc26..053026e 100644 --- a/base/shared_memory.h +++ b/base/shared_memory.h @@ -72,18 +72,18 @@ class SharedMemory { // opens the existing shared memory and ignores the size parameter. // If name is the empty string, use a unique name. // Returns true on success, false on failure. - bool Create(const std::wstring& name, bool read_only, bool open_existing, + bool Create(const std::string& name, bool read_only, bool open_existing, uint32 size); // Deletes resources associated with a shared memory segment based on name. // Not all platforms require this call. - bool Delete(const std::wstring& name); + bool Delete(const std::string& name); // Opens a shared memory segment based on a name. // If read_only is true, opens for read-only access. // If name is the empty string, use a unique name. // Returns true on success, false on failure. - bool Open(const std::wstring& name, bool read_only); + bool Open(const std::string& name, bool read_only); // Maps the shared memory into the caller's address space. // Returns true on success, false otherwise. The memory address @@ -161,10 +161,9 @@ class SharedMemory { private: #if defined(OS_POSIX) - bool CreateOrOpen(const std::wstring &name, int posix_flags, uint32 size); - bool FilePathForMemoryName(const std::wstring& memname, FilePath* path); + bool CreateOrOpen(const std::string& name, int posix_flags, uint32 size); + bool FilePathForMemoryName(const std::string& mem_name, FilePath* path); void LockOrUnlockCommon(int function); - #endif bool ShareToProcessCommon(ProcessHandle process, SharedMemoryHandle* new_handle, |