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

Unified Diff: mojo/public/cpp/bindings/message.h

Issue 2064903002: Mojo: Report bindings validation errors via MojoNotifyBadMessage (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/public/cpp/bindings/message.h
diff --git a/mojo/public/cpp/bindings/message.h b/mojo/public/cpp/bindings/message.h
index d8eed2bfc3ec00a96948954a86ade3b99fdc088c..87a6f58a43314b07c0fbaebbbb2be6a5276f3b5e 100644
--- a/mojo/public/cpp/bindings/message.h
+++ b/mojo/public/cpp/bindings/message.h
@@ -10,6 +10,7 @@
#include <limits>
#include <memory>
+#include <string>
#include <vector>
#include "base/logging.h"
@@ -99,6 +100,10 @@ class Message {
// ownership of its internal storage and any attached handles.
ScopedMessageHandle TakeMojoMessage();
+ // Notifies the system that this message is "bad," in this case meaning it was
+ // rejected by bindings validation code.
+ void NotifyBadMessage(const std::string& error);
+
private:
void CloseHandles();

Powered by Google App Engine
This is Rietveld 408576698