OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "mojo/public/cpp/bindings/lib/validation_util.h" | 5 #include "mojo/public/cpp/bindings/lib/validation_util.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include <limits> | 9 #include <limits> |
8 | 10 |
9 #include "mojo/public/cpp/bindings/lib/bindings_serialization.h" | 11 #include "mojo/public/cpp/bindings/lib/bindings_serialization.h" |
10 #include "mojo/public/cpp/bindings/lib/message_internal.h" | 12 #include "mojo/public/cpp/bindings/lib/message_internal.h" |
11 #include "mojo/public/cpp/bindings/lib/validation_errors.h" | 13 #include "mojo/public/cpp/bindings/lib/validation_errors.h" |
12 #include "mojo/public/interfaces/bindings/interface_control_messages.mojom.h" | 14 #include "mojo/public/interfaces/bindings/interface_control_messages.mojom.h" |
13 | 15 |
14 namespace mojo { | 16 namespace mojo { |
15 namespace internal { | 17 namespace internal { |
16 | 18 |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 bool ValidateAssociatedInterfaceId(InterfaceId input) { | 131 bool ValidateAssociatedInterfaceId(InterfaceId input) { |
130 if (!IsMasterInterfaceId(input)) | 132 if (!IsMasterInterfaceId(input)) |
131 return true; | 133 return true; |
132 | 134 |
133 ReportValidationError(VALIDATION_ERROR_ILLEGAL_INTERFACE_ID); | 135 ReportValidationError(VALIDATION_ERROR_ILLEGAL_INTERFACE_ID); |
134 return false; | 136 return false; |
135 } | 137 } |
136 | 138 |
137 } // namespace internal | 139 } // namespace internal |
138 } // namespace mojo | 140 } // namespace mojo |
OLD | NEW |