diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-30 01:09:33 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-30 01:09:33 +0000 |
commit | 779c33638f4b10def2d103f4703fa5bf58899aec (patch) | |
tree | 7034c81d156706a56b8101d507c87cc7045e9cc9 /chrome/browser/host_zoom_map.h | |
parent | 12cbfda3f72e24147789eed981e68c373ba1c14f (diff) | |
download | chromium_src-779c33638f4b10def2d103f4703fa5bf58899aec.zip chromium_src-779c33638f4b10def2d103f4703fa5bf58899aec.tar.gz chromium_src-779c33638f4b10def2d103f4703fa5bf58899aec.tar.bz2 |
A few fixes for the HostZoomMap:
* Persist changes from Incognito (per UI leads)
* Clear the zoom settings when the user does "reset to defaults" in prefs
BUG=none
TEST=Open incognito, change a zoom level, restart, see that it's persisted
Review URL: http://codereview.chromium.org/551213
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37595 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/host_zoom_map.h')
-rw-r--r-- | chrome/browser/host_zoom_map.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/chrome/browser/host_zoom_map.h b/chrome/browser/host_zoom_map.h index 1cf86be..f64ca6b 100644 --- a/chrome/browser/host_zoom_map.h +++ b/chrome/browser/host_zoom_map.h @@ -1,9 +1,9 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Maps hostnames to custom zoom levels. Written on the UI thread and read on -// the IO thread. One instance per profile. +// any thread. One instance per profile. #ifndef CHROME_BROWSER_HOST_ZOOM_MAP_H_ #define CHROME_BROWSER_HOST_ZOOM_MAP_H_ @@ -38,6 +38,11 @@ class HostZoomMap : public base::RefCountedThreadSafe<HostZoomMap> { // This should only be called on the UI thread. void SetZoomLevel(const std::string& host, int level); + // Resets all zoom levels. + // + // This should only be called on the UI thread. + void ResetToDefaults(); + private: friend class base::RefCountedThreadSafe<HostZoomMap>; |