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

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: 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
Index: mojo/edk/system/core.h
diff --git a/mojo/edk/system/core.h b/mojo/edk/system/core.h
index 8e537dbb0d219d54a535a148f9b6ce1eaf603f61..4ffc1da56f93b0a86cc835286efc8039677f8cb0 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 base::Closure& bad_message_callback);
// Called in the parent process when a child process fails to launch.
void ChildLaunchFailed(const std::string& child_token);
@@ -200,6 +201,7 @@ class MOJO_SYSTEM_IMPL_EXPORT Core {
uint32_t* num_handles,
MojoReadMessageFlags flags);
MojoResult FuseMessagePipes(MojoHandle handle0, MojoHandle handle1);
+ MojoResult NotifyBadMessage(MojoMessageHandle message);
// These methods correspond to the API functions defined in
// "mojo/public/c/system/data_pipe.h":

Powered by Google App Engine
This is Rietveld 408576698