| 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 #ifndef MOJO_PUBLIC_BINDINGS_LIB_ARRAY_INTERNAL_H_ | 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_ARRAY_INTERNAL_H_ |
| 6 #define MOJO_PUBLIC_BINDINGS_LIB_ARRAY_INTERNAL_H_ | 6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_ARRAY_INTERNAL_H_ |
| 7 | 7 |
| 8 #include <new> | 8 #include <new> |
| 9 | 9 |
| 10 #include "mojo/public/bindings/lib/bindings_internal.h" | |
| 11 #include "mojo/public/bindings/lib/bindings_serialization.h" | |
| 12 #include "mojo/public/cpp/bindings/buffer.h" | 10 #include "mojo/public/cpp/bindings/buffer.h" |
| 11 #include "mojo/public/cpp/bindings/lib/bindings_internal.h" |
| 12 #include "mojo/public/cpp/bindings/lib/bindings_serialization.h" |
| 13 #include "mojo/public/cpp/bindings/passable.h" | 13 #include "mojo/public/cpp/bindings/passable.h" |
| 14 #include "mojo/public/cpp/system/core.h" | 14 #include "mojo/public/cpp/system/core.h" |
| 15 | 15 |
| 16 namespace mojo { | 16 namespace mojo { |
| 17 template <typename T> class Array; | 17 template <typename T> class Array; |
| 18 | 18 |
| 19 namespace internal { | 19 namespace internal { |
| 20 | 20 |
| 21 template <typename T> | 21 template <typename T> |
| 22 struct ArrayDataTraits { | 22 struct ArrayDataTraits { |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 } | 362 } |
| 363 static Ref ToRef(MessagePipeHandle& data) { return Ref(&data); } | 363 static Ref ToRef(MessagePipeHandle& data) { return Ref(&data); } |
| 364 static ConstRef ToConstRef(const MessagePipeHandle& data) { | 364 static ConstRef ToConstRef(const MessagePipeHandle& data) { |
| 365 return ConstRef(const_cast<MessagePipeHandle*>(&data)); | 365 return ConstRef(const_cast<MessagePipeHandle*>(&data)); |
| 366 } | 366 } |
| 367 }; | 367 }; |
| 368 | 368 |
| 369 } // namespace internal | 369 } // namespace internal |
| 370 } // namespace mojo | 370 } // namespace mojo |
| 371 | 371 |
| 372 #endif // MOJO_PUBLIC_BINDINGS_LIB_ARRAY_INTERNAL_H_ | 372 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_ARRAY_INTERNAL_H_ |
| OLD | NEW |