Index: base/shared_memory.h |
diff --git a/base/shared_memory.h b/base/shared_memory.h |
index c9dfd6eb05c2357f2bfded6c283dfb8b8638c213..52c2bd5c111f47a21fe3b46488838d014c635f1b 100644 |
--- a/base/shared_memory.h |
+++ b/base/shared_memory.h |
@@ -79,16 +79,19 @@ class BASE_EXPORT SharedMemory { |
bool CreateAndMapAnonymous(uint32 size); |
// Creates an anonymous shared memory segment of size size. |
+ // If executable is true, mappings might need to be made executable later. |
// Returns true on success and false on failure. |
- bool CreateAnonymous(uint32 size); |
+ bool CreateAnonymous(uint32 size, bool executable); |
// Creates or opens a shared memory segment based on a name. |
// If open_existing is true, and the shared memory already exists, |
// opens the existing shared memory and ignores the size parameter. |
// If open_existing is false, shared memory must not exist. |
// size is the size of the block to be created. |
+ // If executable is true, mappings might need to be made executable later. |
// Returns true on success, false on failure. |
- bool CreateNamed(const std::string& name, bool open_existing, uint32 size); |
+ bool CreateNamed(const std::string& name, bool open_existing, |
+ uint32 size, bool executable); |
// Deletes resources associated with a shared memory segment based on name. |
// Not all platforms require this call. |