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 "net/quic/chromium/crypto/proof_verifier_chromium.h" | 5 #include "net/quic/chromium/crypto/proof_verifier_chromium.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 ct_policy_enforcer_(ct_policy_enforcer), | 549 ct_policy_enforcer_(ct_policy_enforcer), |
550 transport_security_state_(transport_security_state), | 550 transport_security_state_(transport_security_state), |
551 cert_transparency_verifier_(cert_transparency_verifier) { | 551 cert_transparency_verifier_(cert_transparency_verifier) { |
552 DCHECK(cert_verifier_); | 552 DCHECK(cert_verifier_); |
553 DCHECK(ct_policy_enforcer_); | 553 DCHECK(ct_policy_enforcer_); |
554 DCHECK(transport_security_state_); | 554 DCHECK(transport_security_state_); |
555 DCHECK(cert_transparency_verifier_); | 555 DCHECK(cert_transparency_verifier_); |
556 } | 556 } |
557 | 557 |
558 ProofVerifierChromium::~ProofVerifierChromium() { | 558 ProofVerifierChromium::~ProofVerifierChromium() { |
559 STLDeleteElements(&active_jobs_); | 559 base::STLDeleteElements(&active_jobs_); |
560 } | 560 } |
561 | 561 |
562 QuicAsyncStatus ProofVerifierChromium::VerifyProof( | 562 QuicAsyncStatus ProofVerifierChromium::VerifyProof( |
563 const std::string& hostname, | 563 const std::string& hostname, |
564 const uint16_t port, | 564 const uint16_t port, |
565 const std::string& server_config, | 565 const std::string& server_config, |
566 QuicVersion quic_version, | 566 QuicVersion quic_version, |
567 base::StringPiece chlo_hash, | 567 base::StringPiece chlo_hash, |
568 const std::vector<std::string>& certs, | 568 const std::vector<std::string>& certs, |
569 const std::string& cert_sct, | 569 const std::string& cert_sct, |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
613 active_jobs_.insert(job.release()); | 613 active_jobs_.insert(job.release()); |
614 return status; | 614 return status; |
615 } | 615 } |
616 | 616 |
617 void ProofVerifierChromium::OnJobComplete(Job* job) { | 617 void ProofVerifierChromium::OnJobComplete(Job* job) { |
618 active_jobs_.erase(job); | 618 active_jobs_.erase(job); |
619 delete job; | 619 delete job; |
620 } | 620 } |
621 | 621 |
622 } // namespace net | 622 } // namespace net |
OLD | NEW |