summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ssl/ssl_host_state.cc
diff options
context:
space:
mode:
authorabarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-13 08:48:30 +0000
committerabarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-13 08:48:30 +0000
commit52b56d1abe78e4a87b6c6a540b41d46961af0b61 (patch)
tree90b594101ee79f95e65284c7759321cece8687f0 /chrome/browser/ssl/ssl_host_state.cc
parentd26f58aeca2d32c34ceeb84f905f81d9ba183438 (diff)
downloadchromium_src-52b56d1abe78e4a87b6c6a540b41d46961af0b61.zip
chromium_src-52b56d1abe78e4a87b6c6a540b41d46961af0b61.tar.gz
chromium_src-52b56d1abe78e4a87b6c6a540b41d46961af0b61.tar.bz2
Revert 9747
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9748 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ssl/ssl_host_state.cc')
-rwxr-xr-xchrome/browser/ssl/ssl_host_state.cc47
1 files changed, 0 insertions, 47 deletions
diff --git a/chrome/browser/ssl/ssl_host_state.cc b/chrome/browser/ssl/ssl_host_state.cc
deleted file mode 100755
index 5bee7d9..0000000
--- a/chrome/browser/ssl/ssl_host_state.cc
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright (c) 2006-2009 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.
-
-#include "chrome/browser/ssl/ssl_host_state.h"
-
-SSLHostState::SSLHostState() {
-}
-
-SSLHostState::~SSLHostState() {
-}
-
-void SSLHostState::DenyCertForHost(net::X509Certificate* cert,
- const std::string& host) {
- DCHECK(CalledOnValidThread());
-
- // Remember that we don't like this cert for this host.
- cert_policy_for_host_[host].Deny(cert);
-}
-
-void SSLHostState::AllowCertForHost(net::X509Certificate* cert,
- const std::string& host) {
- DCHECK(CalledOnValidThread());
-
- // Remember that we do like this cert for this host.
- cert_policy_for_host_[host].Allow(cert);
-}
-
-net::X509Certificate::Policy::Judgment SSLHostState::QueryPolicy(
- net::X509Certificate* cert, const std::string& host) {
- DCHECK(CalledOnValidThread());
-
- return cert_policy_for_host_[host].Check(cert);
-}
-
-bool SSLHostState::CanShowInsecureContent(const GURL& url) {
- DCHECK(CalledOnValidThread());
-
- return (can_show_insecure_content_for_host_.find(url.host()) !=
- can_show_insecure_content_for_host_.end());
-}
-
-void SSLHostState::AllowShowInsecureContentForURL(const GURL& url) {
- DCHECK(CalledOnValidThread());
-
- can_show_insecure_content_for_host_.insert(url.host());
-}