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

Side by Side Diff: android_webview/browser/aw_ssl_host_state_delegate.cc

Issue 2244253002: Rename |pid| to |child_id| in SSLHostStateDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 } // namespace internal 50 } // namespace internal
51 51
52 AwSSLHostStateDelegate::AwSSLHostStateDelegate() { 52 AwSSLHostStateDelegate::AwSSLHostStateDelegate() {
53 } 53 }
54 54
55 AwSSLHostStateDelegate::~AwSSLHostStateDelegate() { 55 AwSSLHostStateDelegate::~AwSSLHostStateDelegate() {
56 } 56 }
57 57
58 void AwSSLHostStateDelegate::HostRanInsecureContent( 58 void AwSSLHostStateDelegate::HostRanInsecureContent(
59 const std::string& host, 59 const std::string& host,
60 int pid, 60 int child_id,
61 InsecureContentType content_type) { 61 InsecureContentType content_type) {
62 // Intentional no-op for Android WebView. 62 // Intentional no-op for Android WebView.
63 } 63 }
64 64
65 bool AwSSLHostStateDelegate::DidHostRunInsecureContent( 65 bool AwSSLHostStateDelegate::DidHostRunInsecureContent(
66 const std::string& host, 66 const std::string& host,
67 int pid, 67 int child_id,
68 InsecureContentType content_type) const { 68 InsecureContentType content_type) const {
69 // Intentional no-op for Android WebView. 69 // Intentional no-op for Android WebView.
70 return false; 70 return false;
71 } 71 }
72 72
73 void AwSSLHostStateDelegate::AllowCert(const std::string& host, 73 void AwSSLHostStateDelegate::AllowCert(const std::string& host,
74 const net::X509Certificate& cert, 74 const net::X509Certificate& cert,
75 net::CertStatus error) { 75 net::CertStatus error) {
76 cert_policy_for_host_[host].Allow(cert, error); 76 cert_policy_for_host_[host].Allow(cert, error);
77 } 77 }
(...skipping 17 matching lines...) Expand all
95 cert_policy_for_host_.erase(host); 95 cert_policy_for_host_.erase(host);
96 } 96 }
97 97
98 bool AwSSLHostStateDelegate::HasAllowException(const std::string& host) const { 98 bool AwSSLHostStateDelegate::HasAllowException(const std::string& host) const {
99 auto policy_iterator = cert_policy_for_host_.find(host); 99 auto policy_iterator = cert_policy_for_host_.find(host);
100 return policy_iterator != cert_policy_for_host_.end() && 100 return policy_iterator != cert_policy_for_host_.end() &&
101 policy_iterator->second.HasAllowException(); 101 policy_iterator->second.HasAllowException();
102 } 102 }
103 103
104 } // namespace android_webview 104 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/browser/aw_ssl_host_state_delegate.h ('k') | chrome/browser/ssl/chrome_ssl_host_state_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698