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

Unified Diff: content/public/browser/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: content/public/browser/ssl_host_state_delegate.h
diff --git a/content/public/browser/ssl_host_state_delegate.h b/content/public/browser/ssl_host_state_delegate.h
index bcacd7fdef1aa08b47496abf9344090809df2dd5..9f564a194b1a42b8cb7d4f32bfb16c06cfc8514c 100644
--- a/content/public/browser/ssl_host_state_delegate.h
+++ b/content/public/browser/ssl_host_state_delegate.h
@@ -27,13 +27,13 @@ class SSLHostStateDelegate {
// Records that |cert| is not permitted to be used for |host| in the future,
// for a specified |error| type.
virtual void DenyCert(const std::string& host,
- net::X509Certificate* cert,
+ const net::X509Certificate& cert,
net::CertStatus error) = 0;
// Records that |cert| is permitted to be used for |host| in the future, for
// a specified |error| type.
virtual void AllowCert(const std::string&,
- net::X509Certificate* cert,
+ const net::X509Certificate& cert,
net::CertStatus error) = 0;
// Clear all allow/deny preferences.
@@ -44,7 +44,7 @@ class SSLHostStateDelegate {
// immediately prior to this query, otherwise false.
virtual net::CertPolicy::Judgment QueryPolicy(
const std::string& host,
- net::X509Certificate* cert,
+ const net::X509Certificate& cert,
net::CertStatus error,
bool* expired_previous_decision) = 0;

Powered by Google App Engine
This is Rietveld 408576698