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

Unified Diff: mojo/edk/system/ports_message.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/node_controller.cc ('k') | mojo/edk/test/mojo_test_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/ports_message.h
diff --git a/mojo/edk/system/ports_message.h b/mojo/edk/system/ports_message.h
index bbc8e7954b6f38db4fdb357604413668e54ee784..542b9817003d14da9a478bed6f71d66b5a7b2014 100644
--- a/mojo/edk/system/ports_message.h
+++ b/mojo/edk/system/ports_message.h
@@ -11,6 +11,7 @@
#include "mojo/edk/embedder/platform_handle_vector.h"
#include "mojo/edk/system/channel.h"
#include "mojo/edk/system/ports/message.h"
+#include "mojo/edk/system/ports/name.h"
namespace mojo {
namespace edk {
@@ -40,6 +41,9 @@ class PortsMessage : public ports::Message {
return std::move(channel_message_);
}
+ void set_source_node(const ports::NodeName& name) { source_node_ = name; }
+ const ports::NodeName& source_node() const { return source_node_; }
+
private:
friend class NodeController;
@@ -54,6 +58,9 @@ class PortsMessage : public ports::Message {
Channel::MessagePtr channel_message);
Channel::MessagePtr channel_message_;
+
+ // The node name from which this message was received, if known.
+ ports::NodeName source_node_ = ports::kInvalidNodeName;
};
} // namespace edk
« no previous file with comments | « mojo/edk/system/node_controller.cc ('k') | mojo/edk/test/mojo_test_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698