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

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

Issue 2632533002: Add retry information to certificate reports. (Closed)
Patch Set: Enums 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
« no previous file with comments | « components/certificate_reporting/error_report.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "components/certificate_reporting/error_report.h" 5 #include "components/certificate_reporting/error_report.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/stl_util.h" 9 #include "base/stl_util.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 NETWORK_TIME_FETCHES_ON_DEMAND_ONLY; 153 NETWORK_TIME_FETCHES_ON_DEMAND_ONLY;
154 break; 154 break;
155 case NetworkTimeTracker::FETCHES_IN_BACKGROUND_AND_ON_DEMAND: 155 case NetworkTimeTracker::FETCHES_IN_BACKGROUND_AND_ON_DEMAND:
156 report_behavior = CertLoggerFeaturesInfo::NetworkTimeQueryingInfo:: 156 report_behavior = CertLoggerFeaturesInfo::NetworkTimeQueryingInfo::
157 NETWORK_TIME_FETCHES_IN_BACKGROUND_AND_ON_DEMAND; 157 NETWORK_TIME_FETCHES_IN_BACKGROUND_AND_ON_DEMAND;
158 break; 158 break;
159 } 159 }
160 network_time_info->set_network_time_query_behavior(report_behavior); 160 network_time_info->set_network_time_query_behavior(report_behavior);
161 } 161 }
162 162
163 void ErrorReport::SetIsRetryUpload(bool is_retry_upload) {
164 cert_report_->set_is_retry_upload(is_retry_upload);
165 }
166
163 const std::string& ErrorReport::hostname() const { 167 const std::string& ErrorReport::hostname() const {
164 return cert_report_->hostname(); 168 return cert_report_->hostname();
165 } 169 }
166 170
171 bool ErrorReport::is_retry_upload() const {
172 return cert_report_->is_retry_upload();
173 }
174
167 } // namespace certificate_reporting 175 } // namespace certificate_reporting
OLDNEW
« no previous file with comments | « components/certificate_reporting/error_report.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698