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

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

Issue 2964283002: Add chrome channel to cert logger reports (Closed)
Patch Set: Fix build errors Created 3 years, 5 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
11 #include "components/certificate_reporting/cert_logger.pb.h"
12 #include "components/version_info/version_info.h"
13
11 namespace base { 14 namespace base {
12 class Time; 15 class Time;
13 } // namespace base 16 } // namespace base
14 17
15 namespace network_time { 18 namespace network_time {
16 class NetworkTimeTracker; 19 class NetworkTimeTracker;
17 } // namespace network_time 20 } // namespace network_time
18 21
19 namespace net { 22 namespace net {
20 class SSLInfo; 23 class SSLInfo;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 bool Serialize(std::string* output) const; 69 bool Serialize(std::string* output) const;
67 70
68 void SetInterstitialInfo(const InterstitialReason& interstitial_reason, 71 void SetInterstitialInfo(const InterstitialReason& interstitial_reason,
69 const ProceedDecision& proceed_decision, 72 const ProceedDecision& proceed_decision,
70 const Overridable& overridable, 73 const Overridable& overridable,
71 const base::Time& interstitial_time); 74 const base::Time& interstitial_time);
72 75
73 void AddNetworkTimeInfo( 76 void AddNetworkTimeInfo(
74 const network_time::NetworkTimeTracker* network_time_tracker); 77 const network_time::NetworkTimeTracker* network_time_tracker);
75 78
79 void AddChromeChannel(version_info::Channel channel);
80
76 // Sets is_retry_upload field of the protobuf to |is_retry_upload|. 81 // Sets is_retry_upload field of the protobuf to |is_retry_upload|.
77 void SetIsRetryUpload(bool is_retry_upload); 82 void SetIsRetryUpload(bool is_retry_upload);
78 83
79 // Gets the hostname to which this report corresponds. 84 // Gets the hostname to which this report corresponds.
80 const std::string& hostname() const; 85 const std::string& hostname() const;
81 86
87 // Gets the Chrome channel attached to this report.
88 CertLoggerRequest::ChromeChannel chrome_channel() const;
89
82 // Returns true if the report has been retried. 90 // Returns true if the report has been retried.
83 bool is_retry_upload() const; 91 bool is_retry_upload() const;
84 92
85 private: 93 private:
86 std::unique_ptr<CertLoggerRequest> cert_report_; 94 std::unique_ptr<CertLoggerRequest> cert_report_;
87 }; 95 };
88 96
89 } // namespace certificate_reporting 97 } // namespace certificate_reporting
90 98
91 #endif // COMPONENTS_CERTIFICATE_REPORTING_CERTIFICATE_ERROR_REPORT_H_ 99 #endif // COMPONENTS_CERTIFICATE_REPORTING_CERTIFICATE_ERROR_REPORT_H_
OLDNEW
« no previous file with comments | « components/certificate_reporting/cert_logger.proto ('k') | components/certificate_reporting/error_report.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698