diff options
author | yzshen <yzshen@chromium.org> | 2015-12-01 15:50:39 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-01 23:52:43 +0000 |
commit | da11133fa64a17af7a10d501dae42ce6ba83fe63 (patch) | |
tree | a88c1a211ec504e439838fa70fc7294fd9a71ab2 /mojo/public/cpp/bindings/lib/validation_errors.h | |
parent | 661e756abf12e911d936464034e93ca7690558ae (diff) | |
download | chromium_src-da11133fa64a17af7a10d501dae42ce6ba83fe63.zip chromium_src-da11133fa64a17af7a10d501dae42ce6ba83fe63.tar.gz chromium_src-da11133fa64a17af7a10d501dae42ce6ba83fe63.tar.bz2 |
Mojo C++ bindings: associated interface pointers/requests validation
This CL also moves some validation code from code generation template to C++, in order to improve readability.
BUG=546067
Review URL: https://codereview.chromium.org/1486573003
Cr-Commit-Position: refs/heads/master@{#362548}
Diffstat (limited to 'mojo/public/cpp/bindings/lib/validation_errors.h')
-rw-r--r-- | mojo/public/cpp/bindings/lib/validation_errors.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mojo/public/cpp/bindings/lib/validation_errors.h b/mojo/public/cpp/bindings/lib/validation_errors.h index 1d15bc9..d1abfdd 100644 --- a/mojo/public/cpp/bindings/lib/validation_errors.h +++ b/mojo/public/cpp/bindings/lib/validation_errors.h @@ -39,6 +39,10 @@ enum ValidationError { VALIDATION_ERROR_ILLEGAL_POINTER, // A non-nullable pointer field is set to null. VALIDATION_ERROR_UNEXPECTED_NULL_POINTER, + // An interface ID is illegal. + VALIDATION_ERROR_ILLEGAL_INTERFACE_ID, + // A non-nullable interface ID field is set to invalid. + VALIDATION_ERROR_UNEXPECTED_INVALID_INTERFACE_ID, // |flags| in the message header is invalid. The flags are either // inconsistent with one another, inconsistent with other parts of the // message, or unexpected for the message receiver. For example the |