| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 bool Serialize(std::string* output) const; | 65 bool Serialize(std::string* output) const; |
| 66 | 66 |
| 67 void SetInterstitialInfo(const InterstitialReason& interstitial_reason, | 67 void SetInterstitialInfo(const InterstitialReason& interstitial_reason, |
| 68 const ProceedDecision& proceed_decision, | 68 const ProceedDecision& proceed_decision, |
| 69 const Overridable& overridable, | 69 const Overridable& overridable, |
| 70 const base::Time& interstitial_time); | 70 const base::Time& interstitial_time); |
| 71 | 71 |
| 72 void AddNetworkTimeInfo( | 72 void AddNetworkTimeInfo( |
| 73 const network_time::NetworkTimeTracker* network_time_tracker); | 73 const network_time::NetworkTimeTracker* network_time_tracker); |
| 74 | 74 |
| 75 // Sets is_retry_upload field of the protobuf to |is_retry_upload|. |
| 76 void SetIsRetryUpload(bool is_retry_upload); |
| 77 |
| 75 // Gets the hostname to which this report corresponds. | 78 // Gets the hostname to which this report corresponds. |
| 76 const std::string& hostname() const; | 79 const std::string& hostname() const; |
| 77 | 80 |
| 81 // Returns true if the report has been retried. |
| 82 bool is_retry_upload() const; |
| 83 |
| 78 private: | 84 private: |
| 79 std::unique_ptr<CertLoggerRequest> cert_report_; | 85 std::unique_ptr<CertLoggerRequest> cert_report_; |
| 80 }; | 86 }; |
| 81 | 87 |
| 82 } // namespace certificate_reporting | 88 } // namespace certificate_reporting |
| 83 | 89 |
| 84 #endif // COMPONENTS_CERTIFICATE_REPORTING_CERTIFICATE_ERROR_REPORT_H_ | 90 #endif // COMPONENTS_CERTIFICATE_REPORTING_CERTIFICATE_ERROR_REPORT_H_ |
| OLD | NEW |