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

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

Issue 2043713004: Mojo: Add NotifyBadMessage API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: no bindings 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 8e537dbb0d219d54a535a148f9b6ce1eaf603f61..ee474cb5ab3032add4ced4323f9a215449a90965 100644
--- a/mojo/edk/system/core.h
+++ b/mojo/edk/system/core.h
@@ -54,7 +54,8 @@ class MOJO_SYSTEM_IMPL_EXPORT Core {
// Called in the parent process any time a new child is launched.
void AddChild(base::ProcessHandle process_handle,
ScopedPlatformHandle platform_handle,
- const std::string& child_token);
+ const std::string& child_token,
+ const ProcessErrorCallback& process_error_callback);
// Called in the parent process when a child process fails to launch.
void ChildLaunchFailed(const std::string& child_token);
@@ -200,6 +201,9 @@ class MOJO_SYSTEM_IMPL_EXPORT Core {
uint32_t* num_handles,
MojoReadMessageFlags flags);
MojoResult FuseMessagePipes(MojoHandle handle0, MojoHandle handle1);
+ MojoResult NotifyBadMessage(MojoMessageHandle message,
+ const char* error,
+ size_t error_num_bytes);
// These methods correspond to the API functions defined in
// "mojo/public/c/system/data_pipe.h":
« 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