2017-04-27 03:59:52 +02:00
|
|
|
diff --git base/supports_user_data.h base/supports_user_data.h
|
2017-05-31 17:33:30 +02:00
|
|
|
index 56522e2..b945297 100644
|
2017-04-27 03:59:52 +02:00
|
|
|
--- base/supports_user_data.h
|
|
|
|
+++ base/supports_user_data.h
|
2017-05-31 17:33:30 +02:00
|
|
|
@@ -37,9 +37,9 @@ class BASE_EXPORT SupportsUserData {
|
|
|
|
// Multiple user data values can be stored under different keys.
|
|
|
|
// This object will TAKE OWNERSHIP of the given data pointer, and will
|
2015-09-11 14:14:45 +02:00
|
|
|
// delete the object if it is changed or the object is destroyed.
|
|
|
|
- Data* GetUserData(const void* key) const;
|
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;
|
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
|