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

Unified Diff: base/supports_user_data.h

Issue 10824342: Attached data cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | chrome/browser/extensions/extension_service.h » ('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 0a7c2dd49d571c40899bb52d637250d57e69911f..e663ed2ed5c8793741b871c6110dca986160762b 100644
--- a/base/supports_user_data.h
+++ b/base/supports_user_data.h
@@ -20,7 +20,8 @@ class BASE_EXPORT SupportsUserData {
SupportsUserData();
// Derive from this class and add your own data members to associate extra
- // information with this object. Use GetUserData(key) and SetUserData()
+ // information with this object. Alternatively, add this as a public base
+ // class to any class with a virtual destructor.
class BASE_EXPORT Data {
public:
virtual ~Data() {}
@@ -40,7 +41,7 @@ class BASE_EXPORT SupportsUserData {
private:
typedef std::map<const void*, linked_ptr<Data> > DataMap;
- // Externally-defined data accessible by key
+ // Externally-defined data accessible by key.
DataMap user_data_;
DISALLOW_COPY_AND_ASSIGN(SupportsUserData);
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698