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

Side by Side Diff: content/test/mock_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
« no previous file with comments | « content/test/mock_ssl_host_state_delegate.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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 "content/test/mock_ssl_host_state_delegate.h" 5 #include "content/test/mock_ssl_host_state_delegate.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 MockSSLHostStateDelegate::MockSSLHostStateDelegate() {} 9 MockSSLHostStateDelegate::MockSSLHostStateDelegate() {}
10 10
(...skipping 15 matching lines...) Expand all
26 net::CertStatus error, 26 net::CertStatus error,
27 bool* expired_previous_decision) { 27 bool* expired_previous_decision) {
28 if (exceptions_.find(host) == exceptions_.end()) 28 if (exceptions_.find(host) == exceptions_.end())
29 return SSLHostStateDelegate::DENIED; 29 return SSLHostStateDelegate::DENIED;
30 30
31 return SSLHostStateDelegate::ALLOWED; 31 return SSLHostStateDelegate::ALLOWED;
32 } 32 }
33 33
34 void MockSSLHostStateDelegate::HostRanInsecureContent( 34 void MockSSLHostStateDelegate::HostRanInsecureContent(
35 const std::string& host, 35 const std::string& host,
36 int pid, 36 int child_id,
37 InsecureContentType content_type) {} 37 InsecureContentType content_type) {}
38 38
39 bool MockSSLHostStateDelegate::DidHostRunInsecureContent( 39 bool MockSSLHostStateDelegate::DidHostRunInsecureContent(
40 const std::string& host, 40 const std::string& host,
41 int pid, 41 int child_id,
42 InsecureContentType content_type) const { 42 InsecureContentType content_type) const {
43 return false; 43 return false;
44 } 44 }
45 45
46 void MockSSLHostStateDelegate::RevokeUserAllowExceptions( 46 void MockSSLHostStateDelegate::RevokeUserAllowExceptions(
47 const std::string& host) { 47 const std::string& host) {
48 exceptions_.erase(exceptions_.find(host)); 48 exceptions_.erase(exceptions_.find(host));
49 } 49 }
50 50
51 bool MockSSLHostStateDelegate::HasAllowException( 51 bool MockSSLHostStateDelegate::HasAllowException(
52 const std::string& host) const { 52 const std::string& host) const {
53 return exceptions_.find(host) != exceptions_.end(); 53 return exceptions_.find(host) != exceptions_.end();
54 } 54 }
55 55
56 } // namespace content 56 } // namespace content
OLDNEW
« no previous file with comments | « content/test/mock_ssl_host_state_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698