OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef BASE_MEMORY_GENERIC_SHARED_MEMORY_ID_H_ |
| 6 #define BASE_MEMORY_GENERIC_SHARED_MEMORY_ID_H_ |
| 7 |
| 8 #include "base/base_export.h" |
| 9 #include "base/trace_event/memory_allocator_dump.h" |
| 10 |
| 11 namespace base { |
| 12 |
| 13 // Defines an ID type which is used accross all types of shared memory |
| 14 // allocations. This includes other types (IOSurfaces, SharedBitmaps), not |
| 15 // just base::SharedMemory. |
| 16 using GenericSharedMemoryId = int; |
| 17 |
| 18 // Generates GUID which can be used to trace shared memory using its |
| 19 // GenericSharedMemoryId. |
| 20 BASE_EXPORT base::trace_event::MemoryAllocatorDumpGuid |
| 21 GetGenericSharedMemoryGUIDForTracing( |
| 22 uint64_t tracing_process_id, |
| 23 GenericSharedMemoryId generic_shared_memory_id); |
| 24 |
| 25 } // namespace base |
| 26 |
| 27 #endif // BASE_MEMORY_GENERIC_SHARED_MEMORY_ID_H_ |
OLD | NEW |