Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(412)

Unified Diff: base/memory/shared_memory.h

Issue 2535213002: [WIP] Add SharedMemoryTracker to dump base::SharedMemory usage
Patch Set: (wip) Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/memory/shared_memory.h
diff --git a/base/memory/shared_memory.h b/base/memory/shared_memory.h
index 4b66cc6edd2c61ab12d28a00e3b0d8a53daad877..3a75149ec72b4928c7580a110372b80d09b90092 100644
--- a/base/memory/shared_memory.h
+++ b/base/memory/shared_memory.h
@@ -265,9 +265,9 @@ class BASE_EXPORT SharedMemory {
}
};
- // Returns a unique ID for this shared memory's handle. Note this function may
+ // Returns a unique ID for the shared memory |handle|. Note this function may
// access file system and be slow.
- bool GetUniqueId(UniqueId* id) const;
+ static bool GetUniqueId(const SharedMemoryHandle& handle, UniqueId* id);
#endif
private:

Powered by Google App Engine
This is Rietveld 408576698