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

Unified Diff: chrome/browser/extensions/tab_helper.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
« no previous file with comments | « no previous file | chrome/browser/sessions/session_tab_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/tab_helper.h
diff --git a/chrome/browser/extensions/tab_helper.h b/chrome/browser/extensions/tab_helper.h
index cad235ee095fac477542369794527e8591245d05..05a26658ffcac2a6d0169be761622041665368cd 100644
--- a/chrome/browser/extensions/tab_helper.h
+++ b/chrome/browser/extensions/tab_helper.h
@@ -51,9 +51,7 @@ class TabHelper : public content::WebContentsObserver,
UPDATE_SHORTCUT // Update icon for app shortcut.
};
- explicit TabHelper(content::WebContents* web_contents);
virtual ~TabHelper();
- static int kUserDataKey;
void CreateApplicationShortcuts();
bool CanCreateApplicationShortcuts() const;
@@ -115,6 +113,10 @@ class TabHelper : public content::WebContentsObserver,
void SetAppIcon(const SkBitmap& app_icon);
private:
+ explicit TabHelper(content::WebContents* web_contents);
+ static int kUserDataKey;
+ friend class WebContentsUserData<TabHelper>;
+
// content::WebContentsObserver overrides.
virtual void RenderViewCreated(
content::RenderViewHost* render_view_host) OVERRIDE;
« no previous file with comments | « no previous file | chrome/browser/sessions/session_tab_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698