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_EDK_SYSTEM_UNIQUE_IDENTIFIER_H_ | 5 #ifndef THIRD_PARTY_MOJO_SRC_MOJO_EDK_SYSTEM_UNIQUE_IDENTIFIER_H_ |
6 #define MOJO_EDK_SYSTEM_UNIQUE_IDENTIFIER_H_ | 6 #define THIRD_PARTY_MOJO_SRC_MOJO_EDK_SYSTEM_UNIQUE_IDENTIFIER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <string.h> | 9 #include <string.h> |
10 | 10 |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/containers/hash_tables.h" | 13 #include "base/containers/hash_tables.h" |
14 #include "mojo/edk/system/system_impl_export.h" | |
15 #include "mojo/public/cpp/system/macros.h" | 14 #include "mojo/public/cpp/system/macros.h" |
| 15 #include "third_party/mojo/src/mojo/edk/system/system_impl_export.h" |
16 | 16 |
17 namespace mojo { | 17 namespace mojo { |
18 namespace system { | 18 namespace system { |
19 | 19 |
20 class UniqueIdentifier; | 20 class UniqueIdentifier; |
21 | 21 |
22 } // namespace system | 22 } // namespace system |
23 } // namespace mojo | 23 } // namespace mojo |
24 | 24 |
25 namespace BASE_HASH_NAMESPACE { | 25 namespace BASE_HASH_NAMESPACE { |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 size_t operator()(mojo::system::UniqueIdentifier unique_identifier) const { | 94 size_t operator()(mojo::system::UniqueIdentifier unique_identifier) const { |
95 return base::HashInts64( | 95 return base::HashInts64( |
96 *reinterpret_cast<uint64_t*>(unique_identifier.data_), | 96 *reinterpret_cast<uint64_t*>(unique_identifier.data_), |
97 *reinterpret_cast<uint64_t*>(unique_identifier.data_ + | 97 *reinterpret_cast<uint64_t*>(unique_identifier.data_ + |
98 sizeof(uint64_t))); | 98 sizeof(uint64_t))); |
99 } | 99 } |
100 }; | 100 }; |
101 | 101 |
102 } // BASE_HASH_NAMESPACE | 102 } // BASE_HASH_NAMESPACE |
103 | 103 |
104 #endif // MOJO_EDK_SYSTEM_UNIQUE_IDENTIFIER_H_ | 104 #endif // THIRD_PARTY_MOJO_SRC_MOJO_EDK_SYSTEM_UNIQUE_IDENTIFIER_H_ |
OLD | NEW |