2017-04-27 03:59:52 +02:00
|
|
|
diff --git base/supports_user_data.h base/supports_user_data.h
|
2017-09-06 23:40:58 +02:00
|
|
|
index 356c97329b8d..8fce524d7572 100644
|
2017-04-27 03:59:52 +02:00
|
|
|
--- base/supports_user_data.h
|
|
|
|
+++ base/supports_user_data.h
|
2017-09-06 23:40:58 +02:00
|
|
|
@@ -38,9 +38,9 @@ class BASE_EXPORT SupportsUserData {
|
2017-05-31 17:33:30 +02:00
|
|
|
// 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.
|
2017-09-06 23:40:58 +02:00
|
|
|
// |key| must not be null--that value is too vulnerable for collision.
|
2015-09-11 14:14:45 +02:00
|
|
|
- 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
|