summaryrefslogtreecommitdiffstats
path: root/base/shared_memory.h
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-16 16:45:36 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-16 16:45:36 +0000
commit76aac1e0281a0518734c4404e9fb0814ff3c7b20 (patch)
tree0e50063deed8b1f7daaac3ca92d0826412f0aca1 /base/shared_memory.h
parent3bec623b6d7cd31d93bdb48e6ee6eb7fd0c79c31 (diff)
downloadchromium_src-76aac1e0281a0518734c4404e9fb0814ff3c7b20.zip
chromium_src-76aac1e0281a0518734c4404e9fb0814ff3c7b20.tar.gz
chromium_src-76aac1e0281a0518734c4404e9fb0814ff3c7b20.tar.bz2
Port visitedlink tests to Linux. Also make them pass on Linux, which
may fix the attached bug. The problem was that the debug check was in wrong place (too early, before every member was initialized), so it failed in the test. BUG=8710 Review URL: http://codereview.chromium.org/48005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11734 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/shared_memory.h')
-rw-r--r--base/shared_memory.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/base/shared_memory.h b/base/shared_memory.h
index 744b348..bd6770c 100644
--- a/base/shared_memory.h
+++ b/base/shared_memory.h
@@ -58,6 +58,9 @@ class SharedMemory {
// invalid value; NULL for a HANDLE and -1 for a file descriptor)
static bool IsHandleValid(const SharedMemoryHandle& handle);
+ // Return invalid handle (see comment above for exact definition).
+ static SharedMemoryHandle NULLHandle();
+
// Creates or opens a shared memory segment based on a name.
// If read_only is true, opens the memory as read-only.
// If open_existing is true, and the shared memory already exists,