DescriptionIntegrate Mojo JS validation bindings with the Router
Instad of generating exported validateFooRequest(),
validateFooResponse() methods, a pointer to a validation
functions is added to the generated Stub and Proxy class
prototypes. For example, given an interface Foo, with
client interface FooClient:
FooStub.prototype.validators = [validateFooRequest];
FooProxy.prototype.validators = [validateFooResponse];
Note that if interface Foo has no callbacks, then
FooProxy.prototype.validators is an empty array.
The router validates incoming messages using these functions
and validateMessageHeader().
BUG=407181
Committed: https://crrev.com/08768f75fe85867797a826fc53f555d592cfda5c
Cr-Commit-Position: refs/heads/master@{#292270}
Patch Set 1 : router integration #Patch Set 2 : Revised mapping from Connection local,remote factories to validators #Patch Set 3 : Fixed a template indentO #
Total comments: 4
Patch Set 4 : One more indentation fix (sorry about the noise) #
Total comments: 2
Patch Set 5 : Final changes #
Messages
Total messages: 11 (0 generated)
|