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

Unified Diff: chrome/browser/ssl/chrome_ssl_host_state_delegate.h

Issue 441043005: Cleanup of SSLHostStateDelegate and related code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: const and pass-by-ref changes Created 6 years, 3 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
Index: chrome/browser/ssl/chrome_ssl_host_state_delegate.h
diff --git a/chrome/browser/ssl/chrome_ssl_host_state_delegate.h b/chrome/browser/ssl/chrome_ssl_host_state_delegate.h
index 1353c20020a5b958d91d33779bd037cc6e25f1bc..9365ea9a12757b4e3efe0cb8d314a48236e6d8a9 100644
--- a/chrome/browser/ssl/chrome_ssl_host_state_delegate.h
+++ b/chrome/browser/ssl/chrome_ssl_host_state_delegate.h
@@ -29,15 +29,15 @@ class ChromeSSLHostStateDelegate : public content::SSLHostStateDelegate {
// SSLHostStateDelegate:
virtual void DenyCert(const std::string& host,
- net::X509Certificate* cert,
+ const net::X509Certificate& cert,
net::CertStatus error) OVERRIDE;
virtual void AllowCert(const std::string& host,
- net::X509Certificate* cert,
+ const net::X509Certificate& cert,
net::CertStatus error) OVERRIDE;
virtual void Clear() OVERRIDE;
virtual net::CertPolicy::Judgment QueryPolicy(
const std::string& host,
- net::X509Certificate* cert,
+ const net::X509Certificate& cert,
net::CertStatus error,
bool* expired_previous_decision) OVERRIDE;
virtual void HostRanInsecureContent(const std::string& host,
@@ -55,10 +55,7 @@ class ChromeSSLHostStateDelegate : public content::SSLHostStateDelegate {
// Returns true if any decisions has been recorded for |host| for the given
// Profile, otherwise false.
- virtual bool HasUserDecision(const std::string& host);
-
- // Called on the UI thread when the profile is about to be destroyed.
- void ShutdownOnUIThread() {}
+ virtual bool HasUserDecision(const std::string& host) const;
protected:
// SetClock takes ownership of the passed in clock.
@@ -74,8 +71,8 @@ class ChromeSSLHostStateDelegate : public content::SSLHostStateDelegate {
// Used to specify whether new content setting entries should be created if
// they don't already exist when querying the user's settings.
enum CreateDictionaryEntriesDisposition {
- CreateDictionaryEntries,
- DoNotCreateDictionaryEntries
+ CREATE_DICTIONARY_ENTRIES,
+ DO_NOT_CREATE_DICTIONARY_ENTRIES
};
// Specifies whether user SSL error decisions should be forgetten at the end
@@ -84,8 +81,8 @@ class ChromeSSLHostStateDelegate : public content::SSLHostStateDelegate {
// length of time, deteremined by
// |default_ssl_cert_decision_expiration_delta_|.
enum RememberSSLExceptionDecisionsDisposition {
- ForgetSSLExceptionDecisionsAtSessionEnd,
- RememberSSLExceptionDecisionsForDelta
+ FORGET_SSL_EXCEPTION_DECISIONS_AT_SESSION_END,
+ REMEMBER_SSL_EXCEPTION_DECISIONS_FOR_DELTA
};
// Modify the user's content settings to specify a judgement made for a
@@ -93,7 +90,7 @@ class ChromeSSLHostStateDelegate : public content::SSLHostStateDelegate {
// is the certificate with an error, |error| is the error in the certificate,
// and |judgement| is the user decision to be recorded.
void ChangeCertPolicy(const std::string& host,
- net::X509Certificate* cert,
+ const net::X509Certificate& cert,
net::CertStatus error,
net::CertPolicy::Judgment judgment);

Powered by Google App Engine
This is Rietveld 408576698