diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-04 16:57:51 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-04 16:57:51 +0000 |
commit | 887f80da171aa9a6c3e6edad585634ce287258a7 (patch) | |
tree | 7538f30384ca23e4626c08cef4934135b767d238 /chrome/browser/profile.h | |
parent | da230a3e8e28a88871252a724dc097c5da4496de (diff) | |
download | chromium_src-887f80da171aa9a6c3e6edad585634ce287258a7.zip chromium_src-887f80da171aa9a6c3e6edad585634ce287258a7.tar.gz chromium_src-887f80da171aa9a6c3e6edad585634ce287258a7.tar.bz2 |
ForceTLS: persist to disk
With this patch, we'll persist ForceTLS state to disk. It's saved as a
JSON file (ForceTLSState) in the profile directory for the moment.
You still need the --force-https flag in order to trigger any ForceTLS
behaviour.
For the moment, this state isn't cleared when the rest of the browser
state it. That's ok because it's still behind a flag.
http://codereview.chromium.org/186014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25459 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profile.h')
-rw-r--r-- | chrome/browser/profile.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/profile.h b/chrome/browser/profile.h index 83ae64c..97e747b 100644 --- a/chrome/browser/profile.h +++ b/chrome/browser/profile.h @@ -34,6 +34,7 @@ class ExtensionProcessManager; class ExtensionMessageService; class ExtensionsService; class FaviconService; +class ForceTLSPersister; class HistoryService; class NavigationController; class PasswordStore; @@ -154,7 +155,7 @@ class Profile { // called. virtual SSLHostState* GetSSLHostState() = 0; - // Retrieves a pointer to the ForceTLStSate associated with this profile. + // Retrieves a pointer to the ForceTLSState associated with this profile. // The ForceTLSState is lazily created the first time that this method is // called. virtual net::ForceTLSState* GetForceTLSState() = 0; @@ -460,7 +461,8 @@ class ProfileImpl : public Profile, scoped_ptr<ExtensionProcessManager> extension_process_manager_; scoped_refptr<ExtensionMessageService> extension_message_service_; scoped_ptr<SSLHostState> ssl_host_state_; - scoped_ptr<net::ForceTLSState> force_tls_state_; + scoped_refptr<net::ForceTLSState> force_tls_state_; + scoped_refptr<ForceTLSPersister> force_tls_persister_; scoped_ptr<PrefService> prefs_; scoped_refptr<ThumbnailStore> thumbnail_store_; scoped_ptr<TemplateURLFetcher> template_url_fetcher_; |