OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef COMPONENTS_CERTIFICATE_REPORTING_CERTIFICATE_ERROR_REPORT_H_ | 5 #ifndef COMPONENTS_CERTIFICATE_REPORTING_CERTIFICATE_ERROR_REPORT_H_ |
6 #define COMPONENTS_CERTIFICATE_REPORTING_CERTIFICATE_ERROR_REPORT_H_ | 6 #define COMPONENTS_CERTIFICATE_REPORTING_CERTIFICATE_ERROR_REPORT_H_ |
7 | 7 |
| 8 #include <memory> |
8 #include <string> | 9 #include <string> |
9 | 10 |
10 #include "base/memory/scoped_ptr.h" | |
11 | 11 |
12 namespace net { | 12 namespace net { |
13 class SSLInfo; | 13 class SSLInfo; |
14 } // namespace net | 14 } // namespace net |
15 | 15 |
16 namespace certificate_reporting { | 16 namespace certificate_reporting { |
17 | 17 |
18 class CertLoggerRequest; | 18 class CertLoggerRequest; |
19 | 19 |
20 // This class builds and serializes reports for invalid SSL certificate | 20 // This class builds and serializes reports for invalid SSL certificate |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 bool Serialize(std::string* output) const; | 58 bool Serialize(std::string* output) const; |
59 | 59 |
60 void SetInterstitialInfo(const InterstitialReason& interstitial_reason, | 60 void SetInterstitialInfo(const InterstitialReason& interstitial_reason, |
61 const ProceedDecision& proceed_decision, | 61 const ProceedDecision& proceed_decision, |
62 const Overridable& overridable); | 62 const Overridable& overridable); |
63 | 63 |
64 // Gets the hostname to which this report corresponds. | 64 // Gets the hostname to which this report corresponds. |
65 const std::string& hostname() const; | 65 const std::string& hostname() const; |
66 | 66 |
67 private: | 67 private: |
68 scoped_ptr<CertLoggerRequest> cert_report_; | 68 std::unique_ptr<CertLoggerRequest> cert_report_; |
69 }; | 69 }; |
70 | 70 |
71 } // namespace certificate_reporting | 71 } // namespace certificate_reporting |
72 | 72 |
73 #endif // COMPONENTS_CERTIFICATE_REPORTING_CERTIFICATE_ERROR_REPORT_H_ | 73 #endif // COMPONENTS_CERTIFICATE_REPORTING_CERTIFICATE_ERROR_REPORT_H_ |
OLD | NEW |