| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 BASE_TRACE_EVENT_MEMORY_ALLOCATOR_DUMP_GUID_H_ | 5 #ifndef BASE_TRACE_EVENT_MEMORY_ALLOCATOR_DUMP_GUID_H_ |
| 6 #define BASE_TRACE_EVENT_MEMORY_ALLOCATOR_DUMP_GUID_H_ | 6 #define BASE_TRACE_EVENT_MEMORY_ALLOCATOR_DUMP_GUID_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 private: | 42 private: |
| 43 uint64_t guid_; | 43 uint64_t guid_; |
| 44 | 44 |
| 45 // Deliberately copy-able. | 45 // Deliberately copy-able. |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 } // namespace trace_event | 48 } // namespace trace_event |
| 49 } // namespace base | 49 } // namespace base |
| 50 | 50 |
| 51 namespace std { |
| 52 |
| 53 template <> |
| 54 struct BASE_EXPORT hash<base::trace_event::MemoryAllocatorDumpGuid> { |
| 55 size_t operator()( |
| 56 const base::trace_event::MemoryAllocatorDumpGuid& guid) const { |
| 57 return static_cast<size_t>(guid.ToUint64()); |
| 58 } |
| 59 }; |
| 60 |
| 61 } // namespace std |
| 62 |
| 51 #endif // BASE_TRACE_EVENT_MEMORY_ALLOCATOR_DUMP_GUID_H_ | 63 #endif // BASE_TRACE_EVENT_MEMORY_ALLOCATOR_DUMP_GUID_H_ |
| OLD | NEW |