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

Side by Side Diff: mojo/public/cpp/bindings/lib/validation_util.cc

Issue 1543603002: Switch to standard integer types in mojo/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 12 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 unified diff | Download patch
« no previous file with comments | « mojo/public/cpp/bindings/lib/validate_params.h ('k') | mojo/public/cpp/bindings/map.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/lib/validate_params.h ('k') | mojo/public/cpp/bindings/map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698