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

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

Issue 2202893002: Mojo C++ Bindings: Add helpers for bad message reporting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 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/embedder.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 2e3e5b527fe73accf609dc6b386bee4998c12705..9b109412868eaadb78ddd88e2f3fa3efe3db1f39 100644
--- a/mojo/edk/system/core.h
+++ b/mojo/edk/system/core.h
@@ -51,6 +51,8 @@ class MOJO_SYSTEM_IMPL_EXPORT Core {
scoped_refptr<Dispatcher> GetDispatcher(MojoHandle handle);
+ void SetDefaultProcessErrorCallback(const ProcessErrorCallback& callback);
+
// Called in the parent process any time a new child is launched.
void AddChild(base::ProcessHandle process_handle,
ScopedPlatformHandle platform_handle,
@@ -290,6 +292,10 @@ class MOJO_SYSTEM_IMPL_EXPORT Core {
// to access it.
std::unique_ptr<NodeController> node_controller_;
+ // The default callback to invoke, if any, when a process error is reported
+ // but cannot be associated with a specific process.
+ ProcessErrorCallback default_process_error_callback_;
+
base::Lock handles_lock_;
HandleTable handles_;
« no previous file with comments | « mojo/edk/embedder/embedder.cc ('k') | mojo/edk/system/core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698