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

Unified Diff: mojo/public/cpp/bindings/lib/message_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_validator.cc
diff --git a/mojo/public/cpp/bindings/lib/message_validator.cc b/mojo/public/cpp/bindings/lib/message_validator.cc
new file mode 100644
index 0000000000000000000000000000000000000000..570c366f5f03b7e9b0a0ba295da5eda4ef7b6cbc
--- /dev/null
+++ b/mojo/public/cpp/bindings/lib/message_validator.cc
@@ -0,0 +1,25 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "mojo/public/cpp/bindings/lib/message_validator.h"
+
+#include <assert.h>
+
+namespace mojo {
+namespace internal {
+
+MessageValidator::MessageValidator(MessageReceiver* next) : next_(next) {
+}
+
+MessageValidator::~MessageValidator() {
+}
+
+bool MessageValidator::AcceptWithResponder(Message* message,
+ MessageReceiver* responder) {
+ assert(false); // Not reached!
+ return false;
+}
+
+} // namespace internal
+} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698