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

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

Issue 2448943004: Add experimental feature info to certificate reports (Closed)
Patch Set: battre comment Created 4 years, 1 month 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 namespace network_time {
12 class NetworkTimeTracker;
13 } // namespace network_time
11 14
12 namespace net { 15 namespace net {
13 class SSLInfo; 16 class SSLInfo;
14 } // namespace net 17 } // namespace net
15 18
16 namespace certificate_reporting { 19 namespace certificate_reporting {
17 20
18 class CertLoggerRequest; 21 class CertLoggerRequest;
19 22
20 // This class builds and serializes reports for invalid SSL certificate 23 // This class builds and serializes reports for invalid SSL certificate
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 57
55 // Serializes the report. The output will be a serialized 58 // Serializes the report. The output will be a serialized
56 // CertLoggerRequest protobuf. Returns true if the serialization was 59 // CertLoggerRequest protobuf. Returns true if the serialization was
57 // successful and false otherwise. 60 // successful and false otherwise.
58 bool Serialize(std::string* output) const; 61 bool Serialize(std::string* output) const;
59 62
60 void SetInterstitialInfo(const InterstitialReason& interstitial_reason, 63 void SetInterstitialInfo(const InterstitialReason& interstitial_reason,
61 const ProceedDecision& proceed_decision, 64 const ProceedDecision& proceed_decision,
62 const Overridable& overridable); 65 const Overridable& overridable);
63 66
67 void AddNetworkTimeInfo(
68 const network_time::NetworkTimeTracker* network_time_tracker);
69
64 // Gets the hostname to which this report corresponds. 70 // Gets the hostname to which this report corresponds.
65 const std::string& hostname() const; 71 const std::string& hostname() const;
66 72
67 private: 73 private:
68 std::unique_ptr<CertLoggerRequest> cert_report_; 74 std::unique_ptr<CertLoggerRequest> cert_report_;
69 }; 75 };
70 76
71 } // namespace certificate_reporting 77 } // namespace certificate_reporting
72 78
73 #endif // COMPONENTS_CERTIFICATE_REPORTING_CERTIFICATE_ERROR_REPORT_H_ 79 #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