Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1040)

Unified Diff: base/memory/shared_memory.h

Issue 1446363003: Deleted OS_WIN and all Windows specific files from base. (Closed) Base URL: https://github.com/domokit/mojo.git@base_tests
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/memory/raw_scoped_refptr_mismatch_checker.h ('k') | base/memory/shared_memory_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/memory/shared_memory.h
diff --git a/base/memory/shared_memory.h b/base/memory/shared_memory.h
index 008bb0106688c56f66e7edea893de42b5c5c0f5a..61ce438928a0c24ec5f5e28a302315d0d5c35b1c 100644
--- a/base/memory/shared_memory.h
+++ b/base/memory/shared_memory.h
@@ -31,9 +31,7 @@ class FilePath;
// SharedMemoryHandle is a platform specific type which represents
// the underlying OS handle to a shared memory segment.
-#if defined(OS_WIN)
-typedef HANDLE SharedMemoryHandle;
-#elif defined(OS_POSIX)
+#if defined(OS_POSIX)
typedef FileDescriptor SharedMemoryHandle;
#endif
@@ -75,13 +73,6 @@ class BASE_EXPORT SharedMemory {
public:
SharedMemory();
-#if defined(OS_WIN)
- // Similar to the default constructor, except that this allows for
- // calling LockDeprecated() to acquire the named mutex before either Create or
- // Open are called on Windows.
- explicit SharedMemory(const std::wstring& name);
-#endif
-
// Create a new SharedMemory object from an existing, open
// shared memory file.
//
@@ -287,10 +278,7 @@ class BASE_EXPORT SharedMemory {
bool close_self,
ShareMode);
-#if defined(OS_WIN)
- std::wstring name_;
- HANDLE mapped_file_;
-#elif defined(OS_POSIX)
+#if defined(OS_POSIX)
int mapped_file_;
int readonly_mapped_file_;
#endif
« no previous file with comments | « base/memory/raw_scoped_refptr_mismatch_checker.h ('k') | base/memory/shared_memory_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698