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

Unified Diff: mojo/public/cpp/bindings/lib/message_header_validator.cc

Issue 273233002: Mojo cpp bindings: add support for validating incoming messages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase onto the InterfacePtr change Created 6 years, 7 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/message_header_validator.cc
diff --git a/mojo/public/cpp/bindings/lib/message_header_validator.cc b/mojo/public/cpp/bindings/lib/message_header_validator.cc
index a5151cfd854c9612fb701984debed877613d8fbb..1e96ccefc40d805e6d3ea5591ed39995ff55f15b 100644
--- a/mojo/public/cpp/bindings/lib/message_header_validator.cc
+++ b/mojo/public/cpp/bindings/lib/message_header_validator.cc
@@ -55,8 +55,7 @@ bool IsValidMessageHeader(const internal::MessageHeader* header) {
} // namespace
MessageHeaderValidator::MessageHeaderValidator(MessageReceiver* next)
- : next_(next) {
- assert(next);
+ : MessageValidator(next) {
}
bool MessageHeaderValidator::Accept(Message* message) {
@@ -72,11 +71,5 @@ bool MessageHeaderValidator::Accept(Message* message) {
return next_->Accept(message);
}
-bool MessageHeaderValidator::AcceptWithResponder(Message* message,
- MessageReceiver* responder) {
- assert(false); // Not reached!
- return false;
-}
-
} // namespace internal
} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698