Chromium Code Reviews| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 64 // successful and false otherwise. | 64 // successful and false otherwise. |
| 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 // Sets is_retry_upload field of the protobuf to |is_retry_upload|. | |
|
estark
2017/01/13 23:26:22
nit: blank line above (and above line 79)
meacer
2017/01/17 22:24:27
Done.
| |
| 75 void SetIsRetryUpload(bool is_retry_upload); | |
| 74 | 76 |
| 75 // Gets the hostname to which this report corresponds. | 77 // Gets the hostname to which this report corresponds. |
| 76 const std::string& hostname() const; | 78 const std::string& hostname() const; |
| 79 // Returns true if the report has been retried. | |
| 80 bool is_retry_upload() const; | |
| 77 | 81 |
| 78 private: | 82 private: |
| 79 std::unique_ptr<CertLoggerRequest> cert_report_; | 83 std::unique_ptr<CertLoggerRequest> cert_report_; |
| 80 }; | 84 }; |
| 81 | 85 |
| 82 } // namespace certificate_reporting | 86 } // namespace certificate_reporting |
| 83 | 87 |
| 84 #endif // COMPONENTS_CERTIFICATE_REPORTING_CERTIFICATE_ERROR_REPORT_H_ | 88 #endif // COMPONENTS_CERTIFICATE_REPORTING_CERTIFICATE_ERROR_REPORT_H_ |
| OLD | NEW |