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

Side by Side Diff: chrome/browser/safe_browsing/local_database_manager.cc

Issue 1703413002: Move common PVer4 code into a V4ProtocolManagerUtil class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Pass config as pointer, instead of reference Created 4 years, 10 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
OLDNEW
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/local_database_manager.h" 5 #include "chrome/browser/safe_browsing/local_database_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 default: 265 default:
266 NOTREACHED(); 266 NOTREACHED();
267 } 267 }
268 } else { 268 } else {
269 NOTREACHED(); 269 NOTREACHED();
270 } 270 }
271 } 271 }
272 272
273 LocalSafeBrowsingDatabaseManager::LocalSafeBrowsingDatabaseManager( 273 LocalSafeBrowsingDatabaseManager::LocalSafeBrowsingDatabaseManager(
274 const scoped_refptr<SafeBrowsingService>& service) : 274 const scoped_refptr<SafeBrowsingService>& service) :
275 LocalSafeBrowsingDatabaseManager(service, NULL, V4GetHashProtocolConfig()) { 275 LocalSafeBrowsingDatabaseManager(service, NULL, V4ProtocolConfig()) {
276 } 276 }
277 277
278 LocalSafeBrowsingDatabaseManager::LocalSafeBrowsingDatabaseManager( 278 LocalSafeBrowsingDatabaseManager::LocalSafeBrowsingDatabaseManager(
279 const scoped_refptr<SafeBrowsingService>& service, 279 const scoped_refptr<SafeBrowsingService>& service,
280 net::URLRequestContextGetter* request_context_getter, 280 net::URLRequestContextGetter* request_context_getter,
281 const V4GetHashProtocolConfig& config) 281 const V4ProtocolConfig& config)
282 : SafeBrowsingDatabaseManager(request_context_getter, config), 282 : SafeBrowsingDatabaseManager(request_context_getter, config),
283 sb_service_(service), 283 sb_service_(service),
284 database_(NULL), 284 database_(NULL),
285 enabled_(false), 285 enabled_(false),
286 enable_download_protection_(false), 286 enable_download_protection_(false),
287 enable_csd_whitelist_(false), 287 enable_csd_whitelist_(false),
288 enable_download_whitelist_(false), 288 enable_download_whitelist_(false),
289 enable_extension_blacklist_(false), 289 enable_extension_blacklist_(false),
290 enable_ip_blacklist_(false), 290 enable_ip_blacklist_(false),
291 enable_unwanted_software_blacklist_(true), 291 enable_unwanted_software_blacklist_(true),
(...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after
1278 FROM_HERE, base::Bind(&LocalSafeBrowsingDatabaseManager::TimeoutCallback, 1278 FROM_HERE, base::Bind(&LocalSafeBrowsingDatabaseManager::TimeoutCallback,
1279 check->weak_ptr_factory_->GetWeakPtr(), check), 1279 check->weak_ptr_factory_->GetWeakPtr(), check),
1280 check_timeout_); 1280 check_timeout_);
1281 } 1281 }
1282 1282
1283 bool LocalSafeBrowsingDatabaseManager::download_protection_enabled() const { 1283 bool LocalSafeBrowsingDatabaseManager::download_protection_enabled() const {
1284 return enable_download_protection_; 1284 return enable_download_protection_;
1285 } 1285 }
1286 1286
1287 } // namespace safe_browsing 1287 } // namespace safe_browsing
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/local_database_manager.h ('k') | chrome/browser/safe_browsing/safe_browsing_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698