| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/chrome_ssl_host_state_delegate.h" | 5 #include "chrome/browser/ssl/chrome_ssl_host_state_delegate.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 void ChromeSSLHostStateDelegate::HostRanInsecureContent(const std::string& host, | 437 void ChromeSSLHostStateDelegate::HostRanInsecureContent(const std::string& host, |
| 438 int pid) { | 438 int pid) { |
| 439 ran_insecure_content_hosts_.insert(BrokenHostEntry(host, pid)); | 439 ran_insecure_content_hosts_.insert(BrokenHostEntry(host, pid)); |
| 440 } | 440 } |
| 441 | 441 |
| 442 bool ChromeSSLHostStateDelegate::DidHostRunInsecureContent( | 442 bool ChromeSSLHostStateDelegate::DidHostRunInsecureContent( |
| 443 const std::string& host, | 443 const std::string& host, |
| 444 int pid) const { | 444 int pid) const { |
| 445 return !!ran_insecure_content_hosts_.count(BrokenHostEntry(host, pid)); | 445 return !!ran_insecure_content_hosts_.count(BrokenHostEntry(host, pid)); |
| 446 } | 446 } |
| 447 |
| 448 void ChromeSSLHostStateDelegate::HostRanContentWithCertificateErrors( |
| 449 const std::string& host, |
| 450 int pid) { |
| 451 ran_content_with_certificate_errors_hosts_.insert(BrokenHostEntry(host, pid)); |
| 452 } |
| 453 |
| 454 bool ChromeSSLHostStateDelegate::DidHostRunContentWithCertificateErrors( |
| 455 const std::string& host, |
| 456 int pid) const { |
| 457 return !!ran_content_with_certificate_errors_hosts_.count( |
| 458 BrokenHostEntry(host, pid)); |
| 459 } |
| 460 |
| 447 void ChromeSSLHostStateDelegate::SetClock(std::unique_ptr<base::Clock> clock) { | 461 void ChromeSSLHostStateDelegate::SetClock(std::unique_ptr<base::Clock> clock) { |
| 448 clock_.reset(clock.release()); | 462 clock_.reset(clock.release()); |
| 449 } | 463 } |
| OLD | NEW |