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

Unified Diff: mojo/edk/system/message_for_transit.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/system/core.cc ('k') | mojo/edk/system/multiprocess_message_pipe_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/message_for_transit.h
diff --git a/mojo/edk/system/message_for_transit.h b/mojo/edk/system/message_for_transit.h
index be035b04794489384453c351c0810016ec01014a..6103a771e1be5716046a33eadf55c4357998a6b5 100644
--- a/mojo/edk/system/message_for_transit.h
+++ b/mojo/edk/system/message_for_transit.h
@@ -89,6 +89,8 @@ class MOJO_SYSTEM_IMPL_EXPORT MessageForTransit {
size_t num_handles() const { return header()->num_dispatchers; }
+ const PortsMessage& ports_message() const { return *message_; }
+
std::unique_ptr<PortsMessage> TakePortsMessage() {
return std::move(message_);
}
« no previous file with comments | « mojo/edk/system/core.cc ('k') | mojo/edk/system/multiprocess_message_pipe_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698