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

Unified Diff: ipc/test_util_mac.h

Issue 1422873002: Reland 1: "mac: Add auto-close and share-read-only functionality to SharedMemory." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix error. Created 5 years, 2 months 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 | « ipc/ipc_message_utils.cc ('k') | ipc/test_util_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/test_util_mac.h
diff --git a/ipc/test_util_mac.h b/ipc/test_util_mac.h
index e976ce0a3c3e5acad8a453212ffc0c17c17a3da7..6ed4d1966a8f17e38281c800e76423db9ba2ec1f 100644
--- a/ipc/test_util_mac.h
+++ b/ipc/test_util_mac.h
@@ -50,6 +50,11 @@ mach_port_urefs_t GetMachRefCount(mach_port_name_t name,
// Increments the ref count for the right/name pair.
void IncrementMachRefCount(mach_port_name_t name, mach_port_right_t right);
+// Gets the current and maximum protection levels of the memory region.
+// Returns whether the operation was successful.
+// |current| and |max| are output variables only populated on success.
+bool GetMachProtections(void* address, size_t size, int* current, int* max);
+
} // namespace IPC
#endif // IPC_TEST_UTIL_MAC_H_
« no previous file with comments | « ipc/ipc_message_utils.cc ('k') | ipc/test_util_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698