| 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/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 15 matching lines...) Expand all Loading... |
| 26 #include "chrome/browser/safe_browsing/client_side_detection_service.h" | 26 #include "chrome/browser/safe_browsing/client_side_detection_service.h" |
| 27 #include "chrome/browser/safe_browsing/download_protection_service.h" | 27 #include "chrome/browser/safe_browsing/download_protection_service.h" |
| 28 #include "chrome/browser/safe_browsing/protocol_manager.h" | 28 #include "chrome/browser/safe_browsing/protocol_manager.h" |
| 29 #include "chrome/browser/safe_browsing/safe_browsing_database.h" | 29 #include "chrome/browser/safe_browsing/safe_browsing_database.h" |
| 30 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | 30 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
| 31 #include "chrome/browser/safe_browsing/ui_manager.h" | 31 #include "chrome/browser/safe_browsing/ui_manager.h" |
| 32 #include "chrome/common/chrome_paths.h" | 32 #include "chrome/common/chrome_paths.h" |
| 33 #include "chrome/common/chrome_switches.h" | 33 #include "chrome/common/chrome_switches.h" |
| 34 #include "chrome/common/pref_names.h" | 34 #include "chrome/common/pref_names.h" |
| 35 #include "components/prefs/pref_service.h" | 35 #include "components/prefs/pref_service.h" |
| 36 #include "components/safe_browsing/common/safe_browsing_prefs.h" |
| 36 #include "components/safe_browsing/common/safebrowsing_switches.h" | 37 #include "components/safe_browsing/common/safebrowsing_switches.h" |
| 37 #include "components/safe_browsing_db/safe_browsing_prefs.h" | |
| 38 #include "components/safe_browsing_db/util.h" | 38 #include "components/safe_browsing_db/util.h" |
| 39 #include "components/safe_browsing_db/v4_protocol_manager_util.h" | 39 #include "components/safe_browsing_db/v4_protocol_manager_util.h" |
| 40 #include "content/public/browser/browser_thread.h" | 40 #include "content/public/browser/browser_thread.h" |
| 41 #include "content/public/browser/notification_service.h" | 41 #include "content/public/browser/notification_service.h" |
| 42 #include "net/url_request/url_request_context_getter.h" | 42 #include "net/url_request/url_request_context_getter.h" |
| 43 #include "url/url_constants.h" | 43 #include "url/url_constants.h" |
| 44 | 44 |
| 45 using content::BrowserThread; | 45 using content::BrowserThread; |
| 46 | 46 |
| 47 namespace safe_browsing { | 47 namespace safe_browsing { |
| (...skipping 1208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1256 base::BindOnce(&LocalSafeBrowsingDatabaseManager::TimeoutCallback, | 1256 base::BindOnce(&LocalSafeBrowsingDatabaseManager::TimeoutCallback, |
| 1257 check_ptr->weak_ptr_factory_->GetWeakPtr(), check_ptr), | 1257 check_ptr->weak_ptr_factory_->GetWeakPtr(), check_ptr), |
| 1258 check_timeout_); | 1258 check_timeout_); |
| 1259 } | 1259 } |
| 1260 | 1260 |
| 1261 bool LocalSafeBrowsingDatabaseManager::IsDownloadProtectionEnabled() const { | 1261 bool LocalSafeBrowsingDatabaseManager::IsDownloadProtectionEnabled() const { |
| 1262 return enable_download_protection_; | 1262 return enable_download_protection_; |
| 1263 } | 1263 } |
| 1264 | 1264 |
| 1265 } // namespace safe_browsing | 1265 } // namespace safe_browsing |
| OLD | NEW |