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

Side by Side Diff: mojo/public/cpp/bindings/lib/array_internal.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 5 years 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/array_internal.h" 5 #include "mojo/public/cpp/bindings/lib/array_internal.h"
6 6
7 #include <stddef.h>
8 #include <stdint.h>
9
7 #include <sstream> 10 #include <sstream>
8 11
9 namespace mojo { 12 namespace mojo {
10 namespace internal { 13 namespace internal {
11 14
12 std::string MakeMessageWithArrayIndex(const char* message, 15 std::string MakeMessageWithArrayIndex(const char* message,
13 size_t size, 16 size_t size,
14 size_t index) { 17 size_t index) {
15 std::ostringstream stream; 18 std::ostringstream stream;
16 stream << message << ": array size - " << size << "; index - " << index; 19 stream << message << ": array size - " << size << "; index - " << index;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 void ArraySerializationHelper<Handle, true>::DecodePointersAndHandles( 68 void ArraySerializationHelper<Handle, true>::DecodePointersAndHandles(
66 const ArrayHeader* header, 69 const ArrayHeader* header,
67 ElementType* elements, 70 ElementType* elements,
68 std::vector<Handle>* handles) { 71 std::vector<Handle>* handles) {
69 for (uint32_t i = 0; i < header->num_elements; ++i) 72 for (uint32_t i = 0; i < header->num_elements; ++i)
70 DecodeHandle(&elements[i], handles); 73 DecodeHandle(&elements[i], handles);
71 } 74 }
72 75
73 } // namespace internal 76 } // namespace internal
74 } // namespace mojo 77 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/lib/array_internal.h ('k') | mojo/public/cpp/bindings/lib/array_serialization.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698