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

Unified Diff: mojo/edk/system/core.h

Issue 2084993002: Mojo: add support for disallowing sync calls for a process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 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 | « mojo/edk/embedder/entrypoints.cc ('k') | mojo/edk/system/core.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/core.h
diff --git a/mojo/edk/system/core.h b/mojo/edk/system/core.h
index ee474cb5ab3032add4ced4323f9a215449a90965..b273a69e962c65bcbff192e3e0ad8c2b0f4cd165 100644
--- a/mojo/edk/system/core.h
+++ b/mojo/edk/system/core.h
@@ -124,6 +124,8 @@ class MOJO_SYSTEM_IMPL_EXPORT Core {
MojoHandleSignals signals,
const base::Callback<void(MojoResult)>& callback);
+ MojoResult SetProperty(MojoPropertyType type, const void* value);
+
// ---------------------------------------------------------------------------
// The following methods are essentially implementations of the Mojo Core
@@ -158,6 +160,7 @@ class MOJO_SYSTEM_IMPL_EXPORT Core {
MojoMessageHandle* message);
MojoResult FreeMessage(MojoMessageHandle message);
MojoResult GetMessageBuffer(MojoMessageHandle message, void** buffer);
+ MojoResult GetProperty(MojoPropertyType type, void* value);
// These methods correspond to the API functions defined in
// "mojo/public/c/system/wait_set.h":
@@ -301,6 +304,10 @@ class MOJO_SYSTEM_IMPL_EXPORT Core {
base::Lock mapping_table_lock_; // Protects |mapping_table_|.
MappingTable mapping_table_;
+ base::Lock property_lock_;
+ // Properties that can be read using the MojoGetProperty() API.
+ bool property_sync_call_allowed_ = true;
+
DISALLOW_COPY_AND_ASSIGN(Core);
};
« no previous file with comments | « mojo/edk/embedder/entrypoints.cc ('k') | mojo/edk/system/core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698