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

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

Issue 2575233003: Record the time when the interstitial is constructed (Closed)
Patch Set: Created 4 years 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 base {
12 class Time;
13 } // namespace base
14
11 namespace network_time { 15 namespace network_time {
12 class NetworkTimeTracker; 16 class NetworkTimeTracker;
13 } // namespace network_time 17 } // namespace network_time
14 18
15 namespace net { 19 namespace net {
16 class SSLInfo; 20 class SSLInfo;
17 } // namespace net 21 } // namespace net
18 22
19 namespace certificate_reporting { 23 namespace certificate_reporting {
20 24
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // successfully parsed and false otherwise. 59 // successfully parsed and false otherwise.
56 bool InitializeFromString(const std::string& serialized_report); 60 bool InitializeFromString(const std::string& serialized_report);
57 61
58 // Serializes the report. The output will be a serialized 62 // Serializes the report. The output will be a serialized
59 // CertLoggerRequest protobuf. Returns true if the serialization was 63 // CertLoggerRequest protobuf. Returns true if the serialization was
60 // successful and false otherwise. 64 // successful and false otherwise.
61 bool Serialize(std::string* output) const; 65 bool Serialize(std::string* output) const;
62 66
63 void SetInterstitialInfo(const InterstitialReason& interstitial_reason, 67 void SetInterstitialInfo(const InterstitialReason& interstitial_reason,
64 const ProceedDecision& proceed_decision, 68 const ProceedDecision& proceed_decision,
65 const Overridable& overridable); 69 const Overridable& overridable,
70 const base::Time& interstitial_time);
66 71
67 void AddNetworkTimeInfo( 72 void AddNetworkTimeInfo(
68 const network_time::NetworkTimeTracker* network_time_tracker); 73 const network_time::NetworkTimeTracker* network_time_tracker);
69 74
70 // Gets the hostname to which this report corresponds. 75 // Gets the hostname to which this report corresponds.
71 const std::string& hostname() const; 76 const std::string& hostname() const;
72 77
73 private: 78 private:
74 std::unique_ptr<CertLoggerRequest> cert_report_; 79 std::unique_ptr<CertLoggerRequest> cert_report_;
75 }; 80 };
76 81
77 } // namespace certificate_reporting 82 } // namespace certificate_reporting
78 83
79 #endif // COMPONENTS_CERTIFICATE_REPORTING_CERTIFICATE_ERROR_REPORT_H_ 84 #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