| 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_EDK_SYSTEM_MEMORY_H_ | 5 #ifndef MOJO_EDK_SYSTEM_MEMORY_H_ |
| 6 #define MOJO_EDK_SYSTEM_MEMORY_H_ | 6 #define MOJO_EDK_SYSTEM_MEMORY_H_ |
| 7 | 7 |
| 8 #include <mojo/macros.h> |
| 8 #include <stddef.h> | 9 #include <stddef.h> |
| 9 #include <stdint.h> | 10 #include <stdint.h> |
| 10 #include <string.h> // For |memcpy()|. | 11 #include <string.h> // For |memcpy()|. |
| 11 | 12 |
| 12 #include <memory> | 13 #include <memory> |
| 13 #include <type_traits> | 14 #include <type_traits> |
| 14 | 15 |
| 15 #include "mojo/public/c/system/macros.h" | |
| 16 #include "mojo/public/cpp/system/macros.h" | 16 #include "mojo/public/cpp/system/macros.h" |
| 17 | 17 |
| 18 namespace mojo { | 18 namespace mojo { |
| 19 namespace system { | 19 namespace system { |
| 20 | 20 |
| 21 namespace internal { | 21 namespace internal { |
| 22 | 22 |
| 23 // Yields |(const) char| if |T| is |(const) void|, else |T|: | 23 // Yields |(const) char| if |T| is |(const) void|, else |T|: |
| 24 template <typename T> | 24 template <typename T> |
| 25 struct VoidToChar { | 25 struct VoidToChar { |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 | 409 |
| 410 TypeNoConst storage_; | 410 TypeNoConst storage_; |
| 411 | 411 |
| 412 MOJO_DISALLOW_COPY_AND_ASSIGN(UserPointerPartialReader); | 412 MOJO_DISALLOW_COPY_AND_ASSIGN(UserPointerPartialReader); |
| 413 }; | 413 }; |
| 414 | 414 |
| 415 } // namespace system | 415 } // namespace system |
| 416 } // namespace mojo | 416 } // namespace mojo |
| 417 | 417 |
| 418 #endif // MOJO_EDK_SYSTEM_MEMORY_H_ | 418 #endif // MOJO_EDK_SYSTEM_MEMORY_H_ |
| OLD | NEW |