2015-09-11 14:14:45 +02:00
|
|
|
diff --git supports_user_data.h supports_user_data.h
|
2017-03-03 23:37:23 +01:00
|
|
|
index 233ce38..02e690b 100644
|
2015-09-11 14:14:45 +02:00
|
|
|
--- supports_user_data.h
|
|
|
|
+++ supports_user_data.h
|
2017-03-03 23:37:23 +01:00
|
|
|
@@ -39,10 +39,10 @@ class BASE_EXPORT SupportsUserData {
|
2015-09-11 14:14:45 +02:00
|
|
|
// delete the object if it is changed or the object is destroyed.
|
2017-03-03 23:37:23 +01:00
|
|
|
// TODO: remove the raw ptr version of SetUserData once everything uses
|
|
|
|
// the unique_ptr version, see crbug.com/690937.
|
2015-09-11 14:14:45 +02:00
|
|
|
- Data* GetUserData(const void* key) const;
|
|
|
|
- void SetUserData(const void* key, Data* data);
|
2017-03-03 23:37:23 +01:00
|
|
|
- void SetUserData(const void* key, std::unique_ptr<Data> data);
|
2015-09-11 14:14:45 +02:00
|
|
|
- void RemoveUserData(const void* key);
|
|
|
|
+ virtual Data* GetUserData(const void* key) const;
|
|
|
|
+ virtual void SetUserData(const void* key, Data* data);
|
2017-03-03 23:37:23 +01:00
|
|
|
+ virtual void SetUserData(const void* key, std::unique_ptr<Data> data);
|
2015-09-11 14:14:45 +02:00
|
|
|
+ virtual void RemoveUserData(const void* key);
|
|
|
|
|
|
|
|
// SupportsUserData is not thread-safe, and on debug build will assert it is
|
2017-01-23 18:36:54 +01:00
|
|
|
// only used on one execution sequence. Calling this method allows the caller
|