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

Side by Side Diff: chrome/browser/ssl/chrome_ssl_host_state_delegate.cc

Issue 2226523002: Add separate plumbing for subresources with certificate errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo Created 4 years, 4 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 unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ssl/chrome_ssl_host_state_delegate.h ('k') | chrome/browser/ssl/ssl_browser_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698