OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/shell/browser/shell_url_request_context_getter.h" | 5 #include "content/shell/browser/shell_url_request_context_getter.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 public: | 59 public: |
60 IgnoresCTPolicyEnforcer() = default; | 60 IgnoresCTPolicyEnforcer() = default; |
61 ~IgnoresCTPolicyEnforcer() override = default; | 61 ~IgnoresCTPolicyEnforcer() override = default; |
62 | 62 |
63 net::ct::CertPolicyCompliance DoesConformToCertPolicy( | 63 net::ct::CertPolicyCompliance DoesConformToCertPolicy( |
64 net::X509Certificate* cert, | 64 net::X509Certificate* cert, |
65 const net::SCTList& verified_scts, | 65 const net::SCTList& verified_scts, |
66 const net::NetLogWithSource& net_log) override { | 66 const net::NetLogWithSource& net_log) override { |
67 return net::ct::CertPolicyCompliance::CERT_POLICY_COMPLIES_VIA_SCTS; | 67 return net::ct::CertPolicyCompliance::CERT_POLICY_COMPLIES_VIA_SCTS; |
68 } | 68 } |
69 | |
70 net::ct::EVPolicyCompliance DoesConformToCTEVPolicy( | |
71 net::X509Certificate* cert, | |
72 const net::ct::EVCertsWhitelist* ev_whitelist, | |
73 const net::SCTList& verified_scts, | |
74 const net::NetLogWithSource& net_log) override { | |
75 return net::ct::EVPolicyCompliance::EV_POLICY_DOES_NOT_APPLY; | |
76 } | |
77 }; | 69 }; |
78 | 70 |
79 void InstallProtocolHandlers(net::URLRequestJobFactoryImpl* job_factory, | 71 void InstallProtocolHandlers(net::URLRequestJobFactoryImpl* job_factory, |
80 ProtocolHandlerMap* protocol_handlers) { | 72 ProtocolHandlerMap* protocol_handlers) { |
81 for (ProtocolHandlerMap::iterator it = | 73 for (ProtocolHandlerMap::iterator it = |
82 protocol_handlers->begin(); | 74 protocol_handlers->begin(); |
83 it != protocol_handlers->end(); | 75 it != protocol_handlers->end(); |
84 ++it) { | 76 ++it) { |
85 bool set_protocol = job_factory->SetProtocolHandler( | 77 bool set_protocol = job_factory->SetProtocolHandler( |
86 it->first, base::WrapUnique(it->second.release())); | 78 it->first, base::WrapUnique(it->second.release())); |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 scoped_refptr<base::SingleThreadTaskRunner> | 276 scoped_refptr<base::SingleThreadTaskRunner> |
285 ShellURLRequestContextGetter::GetNetworkTaskRunner() const { | 277 ShellURLRequestContextGetter::GetNetworkTaskRunner() const { |
286 return BrowserThread::GetTaskRunnerForThread(BrowserThread::IO); | 278 return BrowserThread::GetTaskRunnerForThread(BrowserThread::IO); |
287 } | 279 } |
288 | 280 |
289 net::HostResolver* ShellURLRequestContextGetter::host_resolver() { | 281 net::HostResolver* ShellURLRequestContextGetter::host_resolver() { |
290 return url_request_context_->host_resolver(); | 282 return url_request_context_->host_resolver(); |
291 } | 283 } |
292 | 284 |
293 } // namespace content | 285 } // namespace content |
OLD | NEW |