| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 CertLoggerInterstitialInfo::INTERSTITIAL_SSL); | 121 CertLoggerInterstitialInfo::INTERSTITIAL_SSL); |
| 122 break; | 122 break; |
| 123 case INTERSTITIAL_CAPTIVE_PORTAL: | 123 case INTERSTITIAL_CAPTIVE_PORTAL: |
| 124 interstitial_info->set_interstitial_reason( | 124 interstitial_info->set_interstitial_reason( |
| 125 CertLoggerInterstitialInfo::INTERSTITIAL_CAPTIVE_PORTAL); | 125 CertLoggerInterstitialInfo::INTERSTITIAL_CAPTIVE_PORTAL); |
| 126 break; | 126 break; |
| 127 case INTERSTITIAL_CLOCK: | 127 case INTERSTITIAL_CLOCK: |
| 128 interstitial_info->set_interstitial_reason( | 128 interstitial_info->set_interstitial_reason( |
| 129 CertLoggerInterstitialInfo::INTERSTITIAL_CLOCK); | 129 CertLoggerInterstitialInfo::INTERSTITIAL_CLOCK); |
| 130 break; | 130 break; |
| 131 case INTERSTITIAL_SUPERFISH: |
| 132 interstitial_info->set_interstitial_reason( |
| 133 CertLoggerInterstitialInfo::INTERSTITIAL_SUPERFISH); |
| 134 break; |
| 131 } | 135 } |
| 132 | 136 |
| 133 interstitial_info->set_user_proceeded(proceed_decision == USER_PROCEEDED); | 137 interstitial_info->set_user_proceeded(proceed_decision == USER_PROCEEDED); |
| 134 interstitial_info->set_overridable(overridable == INTERSTITIAL_OVERRIDABLE); | 138 interstitial_info->set_overridable(overridable == INTERSTITIAL_OVERRIDABLE); |
| 135 interstitial_info->set_interstitial_created_time_usec( | 139 interstitial_info->set_interstitial_created_time_usec( |
| 136 interstitial_time.ToInternalValue()); | 140 interstitial_time.ToInternalValue()); |
| 137 } | 141 } |
| 138 | 142 |
| 139 void ErrorReport::AddNetworkTimeInfo( | 143 void ErrorReport::AddNetworkTimeInfo( |
| 140 const NetworkTimeTracker* network_time_tracker) { | 144 const NetworkTimeTracker* network_time_tracker) { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 | 180 |
| 177 const std::string& ErrorReport::hostname() const { | 181 const std::string& ErrorReport::hostname() const { |
| 178 return cert_report_->hostname(); | 182 return cert_report_->hostname(); |
| 179 } | 183 } |
| 180 | 184 |
| 181 bool ErrorReport::is_retry_upload() const { | 185 bool ErrorReport::is_retry_upload() const { |
| 182 return cert_report_->is_retry_upload(); | 186 return cert_report_->is_retry_upload(); |
| 183 } | 187 } |
| 184 | 188 |
| 185 } // namespace certificate_reporting | 189 } // namespace certificate_reporting |
| OLD | NEW |