| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |