| Index: chrome/browser/net/chrome_fraudulent_certificate_reporter.h
|
| diff --git a/chrome/browser/net/chrome_fraudulent_certificate_reporter.h b/chrome/browser/net/chrome_fraudulent_certificate_reporter.h
|
| index c9874768f1e818aeccfa58e670851e2dfc4f55ed..9da80978a82d02e0c7b412d59386aebdf298fa7b 100644
|
| --- a/chrome/browser/net/chrome_fraudulent_certificate_reporter.h
|
| +++ b/chrome/browser/net/chrome_fraudulent_certificate_reporter.h
|
| @@ -27,13 +27,18 @@ class ChromeFraudulentCertificateReporter
|
| ~ChromeFraudulentCertificateReporter() override;
|
|
|
| // Allows users of this class to override this and set their own URLRequest
|
| - // type. Used by SendReport.
|
| + // type. Used by SendPinningViolationReport.
|
| virtual scoped_ptr<net::URLRequest> CreateURLRequest(
|
| - net::URLRequestContext* context);
|
| + net::URLRequestContext* context,
|
| + const GURL& upload_url);
|
|
|
| // net::FraudulentCertificateReporter
|
| - void SendReport(const std::string& hostname,
|
| - const net::SSLInfo& ssl_info) override;
|
| + void SendPinningViolationReport(const std::string& hostname,
|
| + const net::SSLInfo& ssl_info) override;
|
| +
|
| + // net::FraudulentCertificateReporter
|
| + void SendInvalidChainReport(const std::string& hostname,
|
| + const net::SSLInfo& ssl_info) override;
|
|
|
| // net::URLRequest::Delegate
|
| void OnResponseStarted(net::URLRequest* request) override;
|
| @@ -41,12 +46,13 @@ class ChromeFraudulentCertificateReporter
|
|
|
| protected:
|
| net::URLRequestContext* const request_context_;
|
| + const GURL pinning_violation_upload_url_;
|
| + const GURL invalid_chain_upload_url_;
|
|
|
| private:
|
| // Performs post-report cleanup.
|
| void RequestComplete(net::URLRequest* request);
|
|
|
| - const GURL upload_url_;
|
| // Owns the contained requests.
|
| std::set<net::URLRequest*> inflight_requests_;
|
|
|
| @@ -56,4 +62,3 @@ class ChromeFraudulentCertificateReporter
|
| } // namespace chrome_browser_net
|
|
|
| #endif // CHROME_BROWSER_NET_CHROME_FRAUDULENT_CERTIFICATE_REPORTER_H_
|
| -
|
|
|