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

Unified Diff: base/shared_memory.h

Issue 8585002: Give base::SharedMemory::CreateAnonymous an executable flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
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.

Powered by Google App Engine
This is Rietveld 408576698