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

Unified Diff: mojo/public/tools/bindings/generators/cpp_templates/interface_request_validator_declaration.tmpl

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/tools/bindings/generators/cpp_templates/interface_request_validator_declaration.tmpl
diff --git a/mojo/public/tools/bindings/generators/cpp_templates/interface_request_validator_declaration.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/interface_request_validator_declaration.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..b89ec4fdf39aecd4edb5cc1d2772fdd03d6385ce
--- /dev/null
+++ b/mojo/public/tools/bindings/generators/cpp_templates/interface_request_validator_declaration.tmpl
@@ -0,0 +1,6 @@
+class {{interface.name}}RequestValidator : public mojo::internal::MessageValidator {
yzshen1 2014/05/12 16:35:25 FooRequestValidator inherits mojo::internal::Messa
+ public:
+ explicit {{interface.name}}RequestValidator(mojo::MessageReceiver* next = NULL);
+
+ virtual bool Accept(mojo::Message* message) MOJO_OVERRIDE;
+};

Powered by Google App Engine
This is Rietveld 408576698