| 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_CPP_BINDINGS_LIB_ARRAY_INTERNAL_H_ | 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_ARRAY_INTERNAL_H_ |
| 6 #define MOJO_PUBLIC_CPP_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/cpp/bindings/buffer.h" | 10 #include "mojo/public/cpp/bindings/buffer.h" |
| 11 #include "mojo/public/cpp/bindings/interface.h" | |
| 12 #include "mojo/public/cpp/bindings/lib/bindings_internal.h" | 11 #include "mojo/public/cpp/bindings/lib/bindings_internal.h" |
| 13 #include "mojo/public/cpp/bindings/lib/bindings_serialization.h" | 12 #include "mojo/public/cpp/bindings/lib/bindings_serialization.h" |
| 14 #include "mojo/public/cpp/bindings/passable.h" | 13 #include "mojo/public/cpp/bindings/passable.h" |
| 15 | 14 |
| 16 namespace mojo { | 15 namespace mojo { |
| 17 template <typename T> class Array; | 16 template <typename T> class Array; |
| 18 | 17 |
| 19 namespace internal { | 18 namespace internal { |
| 20 | 19 |
| 21 template <typename T> | 20 template <typename T> |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 static Ref ToRef(H& data) { return Ref(&data); } | 403 static Ref ToRef(H& data) { return Ref(&data); } |
| 405 static ConstRef ToConstRef(const H& data) { | 404 static ConstRef ToConstRef(const H& data) { |
| 406 return ConstRef(const_cast<H*>(&data)); | 405 return ConstRef(const_cast<H*>(&data)); |
| 407 } | 406 } |
| 408 }; | 407 }; |
| 409 | 408 |
| 410 } // namespace internal | 409 } // namespace internal |
| 411 } // namespace mojo | 410 } // namespace mojo |
| 412 | 411 |
| 413 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_ARRAY_INTERNAL_H_ | 412 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_ARRAY_INTERNAL_H_ |
| OLD | NEW |