summaryrefslogtreecommitdiffstats
path: root/chrome/browser/transport_security_persister.h
diff options
context:
space:
mode:
authorcevans@chromium.org <cevans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-28 20:04:00 +0000
committercevans@chromium.org <cevans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-28 20:04:00 +0000
commitcba28128961e7ced20665dbf1758bb826610c623 (patch)
tree845b41a78bf3a6e26c5876dd1ddc107ef0c93bff /chrome/browser/transport_security_persister.h
parenta5345be658a27aed8bdd0a4b79672d4f93313922 (diff)
downloadchromium_src-cba28128961e7ced20665dbf1758bb826610c623.zip
chromium_src-cba28128961e7ced20665dbf1758bb826610c623.tar.gz
chromium_src-cba28128961e7ced20665dbf1758bb826610c623.tar.bz2
Honor pre-existing HSTS metadata in Incognito mode, but obviously continue to
never persist any metadata to disk. See the bug for a detailed discussion of the tradeoffs. BUG=77436 TEST=see bug Review URL: http://codereview.chromium.org/6746003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79605 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/transport_security_persister.h')
-rw-r--r--chrome/browser/transport_security_persister.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/transport_security_persister.h b/chrome/browser/transport_security_persister.h
index c08cbf2..13fc658 100644
--- a/chrome/browser/transport_security_persister.h
+++ b/chrome/browser/transport_security_persister.h
@@ -43,7 +43,7 @@ class TransportSecurityPersister
: public base::RefCountedThreadSafe<TransportSecurityPersister>,
public net::TransportSecurityState::Delegate {
public:
- TransportSecurityPersister();
+ explicit TransportSecurityPersister(bool readonly);
void Initialize(net::TransportSecurityState* state,
const FilePath& profile_path);
@@ -69,6 +69,9 @@ class TransportSecurityPersister
// The path to the file in which we store the serialised state.
FilePath state_file_;
+
+ // Whether or not we're in read-only mode.
+ bool readonly_;
};
#endif // CHROME_BROWSER_TRANSPORT_SECURITY_PERSISTER_H_