OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "net/http/transport_security_state.h" | 5 #include "net/http/transport_security_state.h" |
6 | 6 |
7 #if defined(USE_OPENSSL) | 7 #if defined(USE_OPENSSL) |
8 #include <openssl/ecdsa.h> | 8 #include <openssl/ecdsa.h> |
9 #include <openssl/ssl.h> | 9 #include <openssl/ssl.h> |
10 #else // !defined(USE_OPENSSL) | 10 #else // !defined(USE_OPENSSL) |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 | 553 |
554 return false; | 554 return false; |
555 } | 555 } |
556 | 556 |
557 void TransportSecurityState::SetDelegate( | 557 void TransportSecurityState::SetDelegate( |
558 TransportSecurityState::Delegate* delegate) { | 558 TransportSecurityState::Delegate* delegate) { |
559 DCHECK(CalledOnValidThread()); | 559 DCHECK(CalledOnValidThread()); |
560 delegate_ = delegate; | 560 delegate_ = delegate; |
561 } | 561 } |
562 | 562 |
| 563 void TransportSecurityState::SetReporter( |
| 564 TransportSecurityState::Reporter* reporter) { |
| 565 DCHECK(CalledOnValidThread()); |
| 566 reporter_ = reporter; |
| 567 } |
| 568 |
563 void TransportSecurityState::AddHSTSInternal( | 569 void TransportSecurityState::AddHSTSInternal( |
564 const std::string& host, | 570 const std::string& host, |
565 TransportSecurityState::DomainState::UpgradeMode upgrade_mode, | 571 TransportSecurityState::DomainState::UpgradeMode upgrade_mode, |
566 const base::Time& expiry, | 572 const base::Time& expiry, |
567 bool include_subdomains) { | 573 bool include_subdomains) { |
568 DCHECK(CalledOnValidThread()); | 574 DCHECK(CalledOnValidThread()); |
569 | 575 |
570 // Copy-and-modify the existing DomainState for this host (if any). | 576 // Copy-and-modify the existing DomainState for this host (if any). |
571 DomainState domain_state; | 577 DomainState domain_state; |
572 const std::string canonicalized_host = CanonicalizeHost(host); | 578 const std::string canonicalized_host = CanonicalizeHost(host); |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1000 TransportSecurityState::DomainState::STSState::~STSState() { | 1006 TransportSecurityState::DomainState::STSState::~STSState() { |
1001 } | 1007 } |
1002 | 1008 |
1003 TransportSecurityState::DomainState::PKPState::PKPState() { | 1009 TransportSecurityState::DomainState::PKPState::PKPState() { |
1004 } | 1010 } |
1005 | 1011 |
1006 TransportSecurityState::DomainState::PKPState::~PKPState() { | 1012 TransportSecurityState::DomainState::PKPState::~PKPState() { |
1007 } | 1013 } |
1008 | 1014 |
1009 } // namespace | 1015 } // namespace |
OLD | NEW |