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

Side by Side Diff: android_webview/browser/aw_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 (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "android_webview/browser/aw_ssl_host_state_delegate.h" 5 #include "android_webview/browser/aw_ssl_host_state_delegate.h"
6 6
7 #include "net/base/hash_value.h" 7 #include "net/base/hash_value.h"
8 8
9 using content::SSLHostStateDelegate; 9 using content::SSLHostStateDelegate;
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 int pid) { 59 int pid) {
60 // Intentional no-op for Android WebView. 60 // Intentional no-op for Android WebView.
61 } 61 }
62 62
63 bool AwSSLHostStateDelegate::DidHostRunInsecureContent(const std::string& host, 63 bool AwSSLHostStateDelegate::DidHostRunInsecureContent(const std::string& host,
64 int pid) const { 64 int pid) const {
65 // Intentional no-op for Android WebView. 65 // Intentional no-op for Android WebView.
66 return false; 66 return false;
67 } 67 }
68 68
69 void AwSSLHostStateDelegate::HostRanContentWithCertificateErrors(
70 const std::string& host,
71 int pid) {
72 // Intentional no-op for Android WebView.
73 }
74
75 bool AwSSLHostStateDelegate::DidHostRunContentWithCertificateErrors(
76 const std::string& host,
77 int pid) const {
78 // Intentional no-op for Android WebView.
79 return false;
80 }
81
69 void AwSSLHostStateDelegate::AllowCert(const std::string& host, 82 void AwSSLHostStateDelegate::AllowCert(const std::string& host,
70 const net::X509Certificate& cert, 83 const net::X509Certificate& cert,
71 net::CertStatus error) { 84 net::CertStatus error) {
72 cert_policy_for_host_[host].Allow(cert, error); 85 cert_policy_for_host_[host].Allow(cert, error);
73 } 86 }
74 87
75 void AwSSLHostStateDelegate::Clear() { 88 void AwSSLHostStateDelegate::Clear() {
76 cert_policy_for_host_.clear(); 89 cert_policy_for_host_.clear();
77 } 90 }
78 91
(...skipping 12 matching lines...) Expand all
91 cert_policy_for_host_.erase(host); 104 cert_policy_for_host_.erase(host);
92 } 105 }
93 106
94 bool AwSSLHostStateDelegate::HasAllowException(const std::string& host) const { 107 bool AwSSLHostStateDelegate::HasAllowException(const std::string& host) const {
95 auto policy_iterator = cert_policy_for_host_.find(host); 108 auto policy_iterator = cert_policy_for_host_.find(host);
96 return policy_iterator != cert_policy_for_host_.end() && 109 return policy_iterator != cert_policy_for_host_.end() &&
97 policy_iterator->second.HasAllowException(); 110 policy_iterator->second.HasAllowException();
98 } 111 }
99 112
100 } // namespace android_webview 113 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/browser/aw_ssl_host_state_delegate.h ('k') | chrome/browser/ssl/chrome_security_state_model_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698