Index: mojo/public/cpp/bindings/lib/message_header_validator.h |
diff --git a/mojo/public/cpp/bindings/lib/message_header_validator.h b/mojo/public/cpp/bindings/lib/message_header_validator.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d7877fbf7e0ceef8a94fbfb3d550f402d761799c |
--- /dev/null |
+++ b/mojo/public/cpp/bindings/lib/message_header_validator.h |
@@ -0,0 +1,23 @@ |
+// 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/message.h" |
+ |
+namespace mojo { |
+namespace internal { |
+ |
+class MessageHeaderValidator : public MessageReceiver { |
+ public: |
+ explicit MessageHeaderValidator(MessageReceiver* next); |
+ |
+ virtual bool Accept(Message* message) MOJO_OVERRIDE; |
+ virtual bool AcceptWithResponder(Message* message, MessageReceiver* responder) |
+ MOJO_OVERRIDE; |
+ |
+ private: |
+ MessageReceiver* next_; |
+}; |
+ |
+} // namespace internal |
+} // namespace mojo |