| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_ARRAY_SERIALIZATION_H_ | 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_ARRAY_SERIALIZATION_H_ |
| 6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_ARRAY_SERIALIZATION_H_ | 6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_ARRAY_SERIALIZATION_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <string.h> // For |memcpy()|. | 9 #include <string.h> // For |memcpy()|. |
| 10 | 10 |
| 11 #include <limits> | 11 #include <limits> |
| 12 #include <type_traits> | 12 #include <type_traits> |
| 13 #include <utility> | 13 #include <utility> |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "base/logging.h" | 16 #include "base/logging.h" |
| 17 #include "mojo/public/cpp/bindings/array_data_view.h" | 17 #include "mojo/public/cpp/bindings/array_data_view.h" |
| 18 #include "mojo/public/cpp/bindings/lib/array_internal.h" | 18 #include "mojo/public/cpp/bindings/lib/array_internal.h" |
| 19 #include "mojo/public/cpp/bindings/lib/serialization_forward.h" | 19 #include "mojo/public/cpp/bindings/lib/serialization_forward.h" |
| 20 #include "mojo/public/cpp/bindings/lib/template_util.h" | 20 #include "mojo/public/cpp/bindings/lib/template_util.h" |
| 21 #include "mojo/public/cpp/bindings/lib/validation_errors.h" | 21 #include "mojo/public/cpp/bindings/lib/validation_errors.h" |
| 22 #include "mojo/public/cpp/bindings/map.h" | |
| 23 | 22 |
| 24 namespace mojo { | 23 namespace mojo { |
| 25 namespace internal { | 24 namespace internal { |
| 26 | 25 |
| 27 template <typename Traits, | 26 template <typename Traits, |
| 28 typename MaybeConstUserType, | 27 typename MaybeConstUserType, |
| 29 bool HasGetBegin = | 28 bool HasGetBegin = |
| 30 HasGetBeginMethod<Traits, MaybeConstUserType>::value> | 29 HasGetBeginMethod<Traits, MaybeConstUserType>::value> |
| 31 class ArrayIterator {}; | 30 class ArrayIterator {}; |
| 32 | 31 |
| (...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 538 if (!input) | 537 if (!input) |
| 539 return CallSetToNullIfExists<Traits>(output); | 538 return CallSetToNullIfExists<Traits>(output); |
| 540 return Impl::DeserializeElements(input, output, context); | 539 return Impl::DeserializeElements(input, output, context); |
| 541 } | 540 } |
| 542 }; | 541 }; |
| 543 | 542 |
| 544 } // namespace internal | 543 } // namespace internal |
| 545 } // namespace mojo | 544 } // namespace mojo |
| 546 | 545 |
| 547 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_ARRAY_SERIALIZATION_H_ | 546 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_ARRAY_SERIALIZATION_H_ |
| OLD | NEW |