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

Unified Diff: content/browser/host_zoom_map.h

Issue 7067005: Remove Profile code from HostZoomMap. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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 | « content/browser/DEPS ('k') | content/browser/host_zoom_map.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/host_zoom_map.h
===================================================================
--- content/browser/host_zoom_map.h (revision 86304)
+++ content/browser/host_zoom_map.h (working copy)
@@ -21,7 +21,6 @@
#include "content/common/notification_registrar.h"
class GURL;
-class Profile;
// HostZoomMap needs to be deleted on the UI thread because it listens
// to notifications on there (and holds a NotificationRegistrar).
@@ -30,7 +29,7 @@
public base::RefCountedThreadSafe<HostZoomMap,
BrowserThread::DeleteOnUIThread> {
public:
- explicit HostZoomMap(Profile* profile);
+ HostZoomMap();
// Returns the zoom level for a given url. The zoom level is determined by
// the host portion of the URL, or (in the absence of a host) the complete
@@ -69,6 +68,7 @@
const NotificationSource& source,
const NotificationDetails& details);
+ double default_zoom_level() const { return default_zoom_level_; }
void set_default_zoom_level(double level) { default_zoom_level_ = level; }
private:
@@ -79,9 +79,6 @@
~HostZoomMap();
- // The profile we're associated with.
- Profile* profile_;
-
// Copy of the pref data, so that we can read it on the IO thread.
HostZoomLevels host_zoom_levels_;
double default_zoom_level_;
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/host_zoom_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698