[NaCl SDK] Fix mysterious gtest failure in Html5FsTest::OpenForCreate
[chromium-blink-merge.git] / net / url_request / fraudulent_certificate_reporter.h
blob8d5d60a0ef151769355e0995ffc01714b65c8884
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef NET_URL_REQUEST_FRAUDULENT_CERTIFICATE_REPORTER_H_
6 #define NET_URL_REQUEST_FRAUDULENT_CERTIFICATE_REPORTER_H_
8 #include <string>
10 namespace net {
12 class SSLInfo;
14 // FraudulentCertificateReporter is an interface for asynchronously
15 // reporting certificate chains that fail the certificate pinning
16 // check.
17 class FraudulentCertificateReporter {
18 public:
19 virtual ~FraudulentCertificateReporter() {}
21 // Sends a report to the report collection server containing the |ssl_info|
22 // associated with a connection to |hostname|.
23 virtual void SendReport(const std::string& hostname,
24 const SSLInfo& ssl_info) = 0;
27 } // namespace net
29 #endif // NET_URL_REQUEST_FRAUDULENT_CERTIFICATE_REPORTER_H_