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

Unified Diff: mojo/public/cpp/bindings/lib/pipe_control_message_handler.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/lib/pipe_control_message_handler.h
diff --git a/mojo/public/cpp/bindings/lib/pipe_control_message_handler.h b/mojo/public/cpp/bindings/lib/pipe_control_message_handler.h
index c42d0bae3d1e7ccd67062d858f1e321f56275087..8f56fd8ca2fa0c31ced687d2541584622a23199c 100644
--- a/mojo/public/cpp/bindings/lib/pipe_control_message_handler.h
+++ b/mojo/public/cpp/bindings/lib/pipe_control_message_handler.h
@@ -31,11 +31,11 @@ class PipeControlMessageHandler : public MessageReceiver {
// - have passed message header validation; and
// - be a pipe control message (i.e., IsPipeControlMessage() returns true).
// If the method returns false, the message pipe should be closed.
- bool Accept(Message* message) override;
+ bool Accept(Message* message, Error* error) override;
private:
// |message| must have passed message header validation.
- bool Validate(const Message* message);
+ bool Validate(Message* message, Error* error);
bool RunOrClosePipe(Message* message);
PipeControlMessageHandlerDelegate* const delegate_;

Powered by Google App Engine
This is Rietveld 408576698