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

Unified Diff: chrome/browser/tab_contents/web_contents_user_data.h

Issue 10933105: Switch WebContentsUserData to be a friended base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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
Index: chrome/browser/tab_contents/web_contents_user_data.h
diff --git a/chrome/browser/tab_contents/web_contents_user_data.h b/chrome/browser/tab_contents/web_contents_user_data.h
index 77d57f2412dc98d05402a956e1f9541e3af06eda..8126c381be23324923725703da72f7acbf43a2a9 100644
--- a/chrome/browser/tab_contents/web_contents_user_data.h
+++ b/chrome/browser/tab_contents/web_contents_user_data.h
@@ -14,10 +14,13 @@
// --- in foo_tab_helper.h ---
// class FooTabHelper : public WebContentsUserData<FooTabHelper> {
// public:
-// explicit FooTabHelper(content::WebContents* contents);
// virtual ~FooTabHelper();
+// // ... more public stuff here ...
+// private:
+// explicit FooTabHelper(content::WebContents* contents);
// static int kUserDataKey;
-// // ... more stuff here ...
+// friend class WebContentsUserData<FooTabHelper>;
+// // ... more private stuff here ...
// }
// --- in foo_tab_helper.cc ---
// int FooTabHelper::kUserDataKey;
« no previous file with comments | « chrome/browser/sessions/session_tab_helper.h ('k') | chrome/browser/tab_contents/web_contents_user_data_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698