Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Side by Side Diff: components/certificate_reporting/error_report.h

Issue 2632533002: Add retry information to certificate reports. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698