diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-04 23:49:51 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-04 23:49:51 +0000 |
commit | 40bd658fd9aeedc8f2f7cc17c835f41095df9189 (patch) | |
tree | 87e9562263a8a641f7d2da19f629a2737d67c041 /chrome/browser/net/chrome_url_request_context.h | |
parent | 1c42268bc05d715b59d1b535e432c0d9ef666113 (diff) | |
download | chromium_src-40bd658fd9aeedc8f2f7cc17c835f41095df9189.zip chromium_src-40bd658fd9aeedc8f2f7cc17c835f41095df9189.tar.gz chromium_src-40bd658fd9aeedc8f2f7cc17c835f41095df9189.tar.bz2 |
Remember zoom on a per-host basis.
BUG=567
TEST=Visit a page, zoom in or out, then navigate to a different host. The new page should not be zoomed. Go back, or restart, or open a new tab and navigate to the old page, and it should be zoomed.
Review URL: http://codereview.chromium.org/437077
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33886 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net/chrome_url_request_context.h')
-rw-r--r-- | chrome/browser/net/chrome_url_request_context.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/net/chrome_url_request_context.h b/chrome/browser/net/chrome_url_request_context.h index 0d9bed040..55c497a 100644 --- a/chrome/browser/net/chrome_url_request_context.h +++ b/chrome/browser/net/chrome_url_request_context.h @@ -6,6 +6,7 @@ #define CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ #include "base/file_path.h" +#include "chrome/browser/host_zoom_map.h" #include "chrome/browser/net/url_request_context_getter.h" #include "chrome/common/appcache/chrome_appcache_service.h" #include "chrome/common/notification_registrar.h" @@ -178,6 +179,8 @@ class ChromeURLRequestContext : public URLRequestContext { virtual bool AllowSendingCookies(const URLRequest* request) const; + const HostZoomMap* host_zoom_map() const { return host_zoom_map_; } + // Gets the Privacy Blacklist, if any for this context. const Blacklist* GetBlacklist() const; @@ -243,6 +246,9 @@ class ChromeURLRequestContext : public URLRequestContext { void set_extension_paths(const ExtensionPaths& paths) { extension_paths_ = paths; } + void set_host_zoom_map(HostZoomMap* host_zoom_map) { + host_zoom_map_ = host_zoom_map; + } void set_blacklist_manager(BlacklistManager* blacklist_manager); void set_appcache_service(ChromeAppCacheService* service) { appcache_service_ = service; @@ -266,6 +272,7 @@ class ChromeURLRequestContext : public URLRequestContext { FilePath user_script_dir_path_; scoped_refptr<ChromeAppCacheService> appcache_service_; + scoped_refptr<HostZoomMap> host_zoom_map_; scoped_refptr<BlacklistManager> blacklist_manager_; bool is_media_; @@ -308,6 +315,7 @@ class ChromeURLRequestContextFactory { net::CookiePolicy::Type cookie_policy_type_; ChromeURLRequestContext::ExtensionPaths extension_paths_; FilePath user_script_dir_path_; + scoped_refptr<HostZoomMap> host_zoom_map_; scoped_refptr<BlacklistManager> blacklist_manager_; net::StrictTransportSecurityState* strict_transport_security_state_; scoped_refptr<net::SSLConfigService> ssl_config_service_; |