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

Unified Diff: base/supports_user_data.h

Issue 2680403004: Update SupportsUserData API to accept std::unique_ptr<>. (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | base/supports_user_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/supports_user_data.h
diff --git a/base/supports_user_data.h b/base/supports_user_data.h
index a4c7c9fc890bac0692e0d3771a97b9f9c1df401f..21183461d4d420442752d8f23dd7a8139beefe37 100644
--- a/base/supports_user_data.h
+++ b/base/supports_user_data.h
@@ -39,6 +39,7 @@ class BASE_EXPORT SupportsUserData {
// delete the object if it is changed or the object is destroyed.
Data* GetUserData(const void* key) const;
void SetUserData(const void* key, Data* data);
Nico 2017/02/10 17:54:25 add a "// TODO: remove the raw ptr version once ev
+ void SetUserData(const void* key, std::unique_ptr<Data> data);
void RemoveUserData(const void* key);
// SupportsUserData is not thread-safe, and on debug build will assert it is
« no previous file with comments | « no previous file | base/supports_user_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698