| Index: chrome/browser/ssl/chrome_expect_staple_reporter.h
|
| diff --git a/chrome/browser/ssl/chrome_expect_staple_reporter.h b/chrome/browser/ssl/chrome_expect_staple_reporter.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2171613e93b895787ba6554a7bbd593b3377171e
|
| --- /dev/null
|
| +++ b/chrome/browser/ssl/chrome_expect_staple_reporter.h
|
| @@ -0,0 +1,33 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_SSL_CHROME_EXPECT_STAPLE_REPORTER_H_
|
| +#define CHROME_BROWSER_SSL_CHROME_EXPECT_STAPLE_REPORTER_H_
|
| +
|
| +#include "base/macros.h"
|
| +#include "net/http/transport_security_state.h"
|
| +
|
| +namespace net {
|
| +class CertificateReportSender;
|
| +class URLRequestContext;
|
| +} // namespace net
|
| +
|
| +class ChromeExpectStapleReporter
|
| + : public net::TransportSecurityState::ExpectStapleReporter {
|
| + public:
|
| + explicit ChromeExpectStapleReporter(net::URLRequestContext* request_context);
|
| + ~ChromeExpectStapleReporter() override;
|
| +
|
| + // net::ExpectStapleReporter:
|
| + void OnExpectStapleFailed(const net::HostPortPair& host_port_pair,
|
| + const GURL& report_uri,
|
| + const net::SSLInfo& ssl_info) override;
|
| +
|
| + private:
|
| + std::unique_ptr<net::CertificateReportSender> report_sender_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(ChromeExpectStapleReporter);
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_SSL_CHROME_EXPECT_STAPLE_REPORTER_H_
|
|
|