OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/ssl/ssl_host_state.h" | 5 #include "chrome/browser/ssl/ssl_host_state.h" |
6 | 6 |
| 7 #include "base/logging.h" |
| 8 |
7 SSLHostState::SSLHostState() { | 9 SSLHostState::SSLHostState() { |
8 } | 10 } |
9 | 11 |
10 SSLHostState::~SSLHostState() { | 12 SSLHostState::~SSLHostState() { |
11 } | 13 } |
12 | 14 |
13 void SSLHostState::DenyCertForHost(net::X509Certificate* cert, | 15 void SSLHostState::DenyCertForHost(net::X509Certificate* cert, |
14 const std::string& host) { | 16 const std::string& host) { |
15 DCHECK(CalledOnValidThread()); | 17 DCHECK(CalledOnValidThread()); |
16 | 18 |
(...skipping 21 matching lines...) Expand all Loading... |
38 | 40 |
39 return (can_show_insecure_content_for_host_.find(url.host()) != | 41 return (can_show_insecure_content_for_host_.find(url.host()) != |
40 can_show_insecure_content_for_host_.end()); | 42 can_show_insecure_content_for_host_.end()); |
41 } | 43 } |
42 | 44 |
43 void SSLHostState::AllowShowInsecureContentForURL(const GURL& url) { | 45 void SSLHostState::AllowShowInsecureContentForURL(const GURL& url) { |
44 DCHECK(CalledOnValidThread()); | 46 DCHECK(CalledOnValidThread()); |
45 | 47 |
46 can_show_insecure_content_for_host_.insert(url.host()); | 48 can_show_insecure_content_for_host_.insert(url.host()); |
47 } | 49 } |
OLD | NEW |