OLD | NEW |
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 "third_party/mojo/src/mojo/public/cpp/bindings/lib/array_internal.h" | 5 #include "mojo/public/cpp/bindings/lib/array_internal.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 namespace mojo { | 9 namespace mojo { |
10 namespace internal { | 10 namespace internal { |
11 | 11 |
12 std::string MakeMessageWithArrayIndex(const char* message, | 12 std::string MakeMessageWithArrayIndex(const char* message, |
13 size_t size, | 13 size_t size, |
14 size_t index) { | 14 size_t index) { |
15 std::ostringstream stream; | 15 std::ostringstream stream; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 void ArraySerializationHelper<Handle, true>::DecodePointersAndHandles( | 65 void ArraySerializationHelper<Handle, true>::DecodePointersAndHandles( |
66 const ArrayHeader* header, | 66 const ArrayHeader* header, |
67 ElementType* elements, | 67 ElementType* elements, |
68 std::vector<Handle>* handles) { | 68 std::vector<Handle>* handles) { |
69 for (uint32_t i = 0; i < header->num_elements; ++i) | 69 for (uint32_t i = 0; i < header->num_elements; ++i) |
70 DecodeHandle(&elements[i], handles); | 70 DecodeHandle(&elements[i], handles); |
71 } | 71 } |
72 | 72 |
73 } // namespace internal | 73 } // namespace internal |
74 } // namespace mojo | 74 } // namespace mojo |
OLD | NEW |