Introduce explicit configuration to CertVerifier

https://chromium-review.googlesource.com/c/chromium/src/+/1122709
This commit is contained in:
deepak1556 2018-10-26 02:03:47 +05:30
parent 089001bd92
commit f7f09b028b
2 changed files with 5 additions and 0 deletions

View file

@ -186,6 +186,10 @@ int AtomCertVerifier::Verify(const RequestParams& params,
}
}
void AtomCertVerifier::SetConfig(const Config& config) {
default_cert_verifier_->SetConfig(config);
}
void AtomCertVerifier::RemoveRequest(const RequestParams& params) {
auto it = inflight_requests_.find(params);
if (it != inflight_requests_.end())

View file

@ -50,6 +50,7 @@ class AtomCertVerifier : public net::CertVerifier {
net::CompletionOnceCallback callback,
std::unique_ptr<Request>* out_req,
const net::NetLogWithSource& net_log) override;
void SetConfig(const Config& config) override;
private:
friend class CertVerifierRequest;