summaryrefslogtreecommitdiffstats
path: root/content/browser/ssl/ssl_host_state.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/ssl/ssl_host_state.cc')
-rw-r--r--content/browser/ssl/ssl_host_state.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/content/browser/ssl/ssl_host_state.cc b/content/browser/ssl/ssl_host_state.cc
index e0ceea4..c47171f 100644
--- a/content/browser/ssl/ssl_host_state.cc
+++ b/content/browser/ssl/ssl_host_state.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -50,6 +50,12 @@ void SSLHostState::AllowCertForHost(net::X509Certificate* cert,
cert_policy_for_host_[host].Allow(cert);
}
+void SSLHostState::Clear() {
+ DCHECK(CalledOnValidThread());
+
+ cert_policy_for_host_.clear();
+}
+
net::CertPolicy::Judgment SSLHostState::QueryPolicy(
net::X509Certificate* cert, const std::string& host) {
DCHECK(CalledOnValidThread());