| OLD | NEW |
| 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 "chromecast/browser/url_request_context_factory.h" | 5 #include "chromecast/browser/url_request_context_factory.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 public: | 56 public: |
| 57 IgnoresCTPolicyEnforcer() = default; | 57 IgnoresCTPolicyEnforcer() = default; |
| 58 ~IgnoresCTPolicyEnforcer() override = default; | 58 ~IgnoresCTPolicyEnforcer() override = default; |
| 59 | 59 |
| 60 net::ct::CertPolicyCompliance DoesConformToCertPolicy( | 60 net::ct::CertPolicyCompliance DoesConformToCertPolicy( |
| 61 net::X509Certificate* cert, | 61 net::X509Certificate* cert, |
| 62 const net::SCTList& verified_scts, | 62 const net::SCTList& verified_scts, |
| 63 const net::NetLogWithSource& net_log) override { | 63 const net::NetLogWithSource& net_log) override { |
| 64 return net::ct::CertPolicyCompliance::CERT_POLICY_COMPLIES_VIA_SCTS; | 64 return net::ct::CertPolicyCompliance::CERT_POLICY_COMPLIES_VIA_SCTS; |
| 65 } | 65 } |
| 66 | |
| 67 net::ct::EVPolicyCompliance DoesConformToCTEVPolicy( | |
| 68 net::X509Certificate* cert, | |
| 69 const net::ct::EVCertsWhitelist* ev_whitelist, | |
| 70 const net::SCTList& verified_scts, | |
| 71 const net::NetLogWithSource& net_log) override { | |
| 72 return net::ct::EVPolicyCompliance::EV_POLICY_DOES_NOT_APPLY; | |
| 73 } | |
| 74 }; | 66 }; |
| 75 | 67 |
| 76 bool IgnoreCertificateErrors() { | 68 bool IgnoreCertificateErrors() { |
| 77 base::CommandLine* cmd_line = base::CommandLine::ForCurrentProcess(); | 69 base::CommandLine* cmd_line = base::CommandLine::ForCurrentProcess(); |
| 78 return cmd_line->HasSwitch(switches::kIgnoreCertificateErrors); | 70 return cmd_line->HasSwitch(switches::kIgnoreCertificateErrors); |
| 79 } | 71 } |
| 80 | 72 |
| 81 } // namespace | 73 } // namespace |
| 82 | 74 |
| 83 // Private classes to expose URLRequestContextGetter that call back to the | 75 // Private classes to expose URLRequestContextGetter that call back to the |
| (...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 if (media_getter_) { | 470 if (media_getter_) { |
| 479 media_getter_->GetURLRequestContext() | 471 media_getter_->GetURLRequestContext() |
| 480 ->http_transaction_factory() | 472 ->http_transaction_factory() |
| 481 ->GetSession() | 473 ->GetSession() |
| 482 ->DisableQuic(); | 474 ->DisableQuic(); |
| 483 } | 475 } |
| 484 } | 476 } |
| 485 | 477 |
| 486 } // namespace shell | 478 } // namespace shell |
| 487 } // namespace chromecast | 479 } // namespace chromecast |
| OLD | NEW |