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

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: Readability changes from willchan Created 6 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/ssl/chrome_ssl_host_state_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..577a25b237bdfe48e81f96d4fd93f5fd4297ef41 100644
--- a/chrome/browser/ssl/chrome_ssl_host_state_delegate.h
+++ b/chrome/browser/ssl/chrome_ssl_host_state_delegate.h
@@ -29,21 +29,21 @@ class ChromeSSLHostStateDelegate : public content::SSLHostStateDelegate {
// SSLHostStateDelegate:
virtual void DenyCert(const std::string& host,
- net::X509Certificate* cert,
- net::CertStatus error) OVERRIDE;
+ const net::X509Certificate* cert,
willchan no longer on Chromium 2014/09/04 00:02:38 Can/should this be a const reference rather than a
jww 2014/09/04 18:41:49 I believe that historically this was a pointer bec
+ const net::CertStatus error) OVERRIDE;
virtual void AllowCert(const std::string& host,
- net::X509Certificate* cert,
- net::CertStatus error) OVERRIDE;
+ const net::X509Certificate* cert,
+ const net::CertStatus error) OVERRIDE;
virtual void Clear() OVERRIDE;
virtual net::CertPolicy::Judgment QueryPolicy(
const std::string& host,
- net::X509Certificate* cert,
- net::CertStatus error,
+ const net::X509Certificate* cert,
+ const net::CertStatus error,
bool* expired_previous_decision) OVERRIDE;
virtual void HostRanInsecureContent(const std::string& host,
- int pid) OVERRIDE;
+ const int pid) OVERRIDE;
willchan no longer on Chromium 2014/09/04 00:02:38 Nit: I'd remove this const. The reason is it's cop
jww 2014/09/04 18:41:49 Done.
virtual bool DidHostRunInsecureContent(const std::string& host,
- int pid) const OVERRIDE;
+ const int pid) const OVERRIDE;
// ChromeSSLHostStateDelegate implementation:
// Revoke all user decisions for |host| in the given Profile. The
@@ -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);
« no previous file with comments | « no previous file | chrome/browser/ssl/chrome_ssl_host_state_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698