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

Side by Side Diff: base/memory/shared_memory_handle.h

Issue 2565683003: Share field trial allocator on Mac (Closed)
Patch Set: Use intentionally dummy value and fix comment Created 4 years 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 unified diff | Download patch
« no previous file with comments | « no previous file | base/memory/shared_memory_handle_mac.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_MEMORY_SHARED_MEMORY_HANDLE_H_ 5 #ifndef BASE_MEMORY_SHARED_MEMORY_HANDLE_H_
6 #define BASE_MEMORY_SHARED_MEMORY_HANDLE_H_ 6 #define BASE_MEMORY_SHARED_MEMORY_HANDLE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 base::ProcessId pid); 114 base::ProcessId pid);
115 115
116 // Standard copy constructor. The new instance shares the underlying OS 116 // Standard copy constructor. The new instance shares the underlying OS
117 // primitives. 117 // primitives.
118 SharedMemoryHandle(const SharedMemoryHandle& handle); 118 SharedMemoryHandle(const SharedMemoryHandle& handle);
119 119
120 // Standard assignment operator. The updated instance shares the underlying 120 // Standard assignment operator. The updated instance shares the underlying
121 // OS primitives. 121 // OS primitives.
122 SharedMemoryHandle& operator=(const SharedMemoryHandle& handle); 122 SharedMemoryHandle& operator=(const SharedMemoryHandle& handle);
123 123
124 // Duplicates the underlying OS resources. Assumes the SharedMemoryHandle is 124 // Duplicates the underlying OS resources.
125 // of type MACH.
126 SharedMemoryHandle Duplicate() const; 125 SharedMemoryHandle Duplicate() const;
127 126
128 // Comparison operators. 127 // Comparison operators.
129 bool operator==(const SharedMemoryHandle& handle) const; 128 bool operator==(const SharedMemoryHandle& handle) const;
130 bool operator!=(const SharedMemoryHandle& handle) const; 129 bool operator!=(const SharedMemoryHandle& handle) const;
131 130
132 // Whether the underlying OS primitive is valid. Once the SharedMemoryHandle 131 // Whether the underlying OS primitive is valid. Once the SharedMemoryHandle
133 // is backed by a valid OS primitive, it becomes immutable. 132 // is backed by a valid OS primitive, it becomes immutable.
134 bool IsValid() const; 133 bool IsValid() const;
135 134
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 // Defaults to |false|. 182 // Defaults to |false|.
184 bool ownership_passes_to_ipc_; 183 bool ownership_passes_to_ipc_;
185 }; 184 };
186 }; 185 };
187 }; 186 };
188 #endif 187 #endif
189 188
190 } // namespace base 189 } // namespace base
191 190
192 #endif // BASE_MEMORY_SHARED_MEMORY_HANDLE_H_ 191 #endif // BASE_MEMORY_SHARED_MEMORY_HANDLE_H_
OLDNEW
« no previous file with comments | « no previous file | base/memory/shared_memory_handle_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698