OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/safe_browsing/protocol_manager.h" | 5 #include "chrome/browser/safe_browsing/protocol_manager.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/base64.h" | 9 #include "base/base64.h" |
10 #include "base/environment.h" | 10 #include "base/environment.h" |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 kSbTimerStartIntervalSecMax))), | 212 kSbTimerStartIntervalSecMax))), |
213 chunk_pending_to_write_(false), | 213 chunk_pending_to_write_(false), |
214 next_gethash_v4_time_(Time::FromDoubleT(0)), | 214 next_gethash_v4_time_(Time::FromDoubleT(0)), |
215 version_(config.version), | 215 version_(config.version), |
216 update_size_(0), | 216 update_size_(0), |
217 client_name_(config.client_name), | 217 client_name_(config.client_name), |
218 request_context_getter_(request_context_getter), | 218 request_context_getter_(request_context_getter), |
219 url_prefix_(config.url_prefix), | 219 url_prefix_(config.url_prefix), |
220 backup_update_reason_(BACKUP_UPDATE_REASON_MAX), | 220 backup_update_reason_(BACKUP_UPDATE_REASON_MAX), |
221 disable_auto_update_(config.disable_auto_update), | 221 disable_auto_update_(config.disable_auto_update), |
222 url_fetcher_id_(0), | 222 url_fetcher_id_(0) { |
223 app_in_foreground_(true) { | |
224 DCHECK(!url_prefix_.empty()); | 223 DCHECK(!url_prefix_.empty()); |
225 | 224 |
226 backup_url_prefixes_[BACKUP_UPDATE_REASON_CONNECT] = | 225 backup_url_prefixes_[BACKUP_UPDATE_REASON_CONNECT] = |
227 config.backup_connect_error_url_prefix; | 226 config.backup_connect_error_url_prefix; |
228 backup_url_prefixes_[BACKUP_UPDATE_REASON_HTTP] = | 227 backup_url_prefixes_[BACKUP_UPDATE_REASON_HTTP] = |
229 config.backup_http_error_url_prefix; | 228 config.backup_http_error_url_prefix; |
230 backup_url_prefixes_[BACKUP_UPDATE_REASON_NETWORK] = | 229 backup_url_prefixes_[BACKUP_UPDATE_REASON_NETWORK] = |
231 config.backup_network_error_url_prefix; | 230 config.backup_network_error_url_prefix; |
232 | 231 |
233 // Set the backoff multiplier fuzz to a random value between 0 and 1. | 232 // Set the backoff multiplier fuzz to a random value between 0 and 1. |
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1094 SafeBrowsingProtocolManager::FullHashDetails::FullHashDetails( | 1093 SafeBrowsingProtocolManager::FullHashDetails::FullHashDetails( |
1095 FullHashCallback callback, | 1094 FullHashCallback callback, |
1096 bool is_download) | 1095 bool is_download) |
1097 : callback(callback), is_download(is_download) {} | 1096 : callback(callback), is_download(is_download) {} |
1098 | 1097 |
1099 SafeBrowsingProtocolManager::FullHashDetails::~FullHashDetails() {} | 1098 SafeBrowsingProtocolManager::FullHashDetails::~FullHashDetails() {} |
1100 | 1099 |
1101 SafeBrowsingProtocolManagerDelegate::~SafeBrowsingProtocolManagerDelegate() {} | 1100 SafeBrowsingProtocolManagerDelegate::~SafeBrowsingProtocolManagerDelegate() {} |
1102 | 1101 |
1103 } // namespace safe_browsing | 1102 } // namespace safe_browsing |
OLD | NEW |