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 <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... | |
27 // This class builds and serializes reports for invalid SSL certificate | 27 // This class builds and serializes reports for invalid SSL certificate |
28 // chains, intended to be sent with ErrorReporter. | 28 // chains, intended to be sent with ErrorReporter. |
29 class ErrorReport { | 29 class ErrorReport { |
30 public: | 30 public: |
31 // Describes the type of interstitial that the user was shown for the | 31 // Describes the type of interstitial that the user was shown for the |
32 // error that this report represents. Gets mapped to | 32 // error that this report represents. Gets mapped to |
33 // |CertLoggerInterstitialInfo::InterstitialReason|. | 33 // |CertLoggerInterstitialInfo::InterstitialReason|. |
34 enum InterstitialReason { | 34 enum InterstitialReason { |
35 INTERSTITIAL_SSL, | 35 INTERSTITIAL_SSL, |
36 INTERSTITIAL_CAPTIVE_PORTAL, | 36 INTERSTITIAL_CAPTIVE_PORTAL, |
37 INTERSTITIAL_CLOCK | 37 INTERSTITIAL_CLOCK, |
38 INTERSTITIAL_SUPERFISH, | |
meacer
2017/06/22 22:35:37
Same here, no longer needed?
| |
38 }; | 39 }; |
39 | 40 |
40 // Whether the user clicked through the interstitial or not. | 41 // Whether the user clicked through the interstitial or not. |
41 enum ProceedDecision { USER_PROCEEDED, USER_DID_NOT_PROCEED }; | 42 enum ProceedDecision { USER_PROCEEDED, USER_DID_NOT_PROCEED }; |
42 | 43 |
43 // Whether the user was shown an option to click through the | 44 // Whether the user was shown an option to click through the |
44 // interstitial. | 45 // interstitial. |
45 enum Overridable { INTERSTITIAL_OVERRIDABLE, INTERSTITIAL_NOT_OVERRIDABLE }; | 46 enum Overridable { INTERSTITIAL_OVERRIDABLE, INTERSTITIAL_NOT_OVERRIDABLE }; |
46 | 47 |
47 // Constructs an empty report. | 48 // Constructs an empty report. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
81 // Returns true if the report has been retried. | 82 // Returns true if the report has been retried. |
82 bool is_retry_upload() const; | 83 bool is_retry_upload() const; |
83 | 84 |
84 private: | 85 private: |
85 std::unique_ptr<CertLoggerRequest> cert_report_; | 86 std::unique_ptr<CertLoggerRequest> cert_report_; |
86 }; | 87 }; |
87 | 88 |
88 } // namespace certificate_reporting | 89 } // namespace certificate_reporting |
89 | 90 |
90 #endif // COMPONENTS_CERTIFICATE_REPORTING_CERTIFICATE_ERROR_REPORT_H_ | 91 #endif // COMPONENTS_CERTIFICATE_REPORTING_CERTIFICATE_ERROR_REPORT_H_ |
OLD | NEW |