| 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 1236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1247 base::PostTaskAndReplyWithResult( | 1247 base::PostTaskAndReplyWithResult( |
| 1248 safe_browsing_task_runner_.get(), FROM_HERE, task, | 1248 safe_browsing_task_runner_.get(), FROM_HERE, task, |
| 1249 base::Bind(&LocalSafeBrowsingDatabaseManager::OnAsyncCheckDone, | 1249 base::Bind(&LocalSafeBrowsingDatabaseManager::OnAsyncCheckDone, |
| 1250 check->weak_ptr_factory_->GetWeakPtr(), check)); | 1250 check->weak_ptr_factory_->GetWeakPtr(), check)); |
| 1251 base::ThreadTaskRunnerHandle::Get()->PostDelayedTask( | 1251 base::ThreadTaskRunnerHandle::Get()->PostDelayedTask( |
| 1252 FROM_HERE, base::Bind(&LocalSafeBrowsingDatabaseManager::TimeoutCallback, | 1252 FROM_HERE, base::Bind(&LocalSafeBrowsingDatabaseManager::TimeoutCallback, |
| 1253 check->weak_ptr_factory_->GetWeakPtr(), check), | 1253 check->weak_ptr_factory_->GetWeakPtr(), check), |
| 1254 check_timeout_); | 1254 check_timeout_); |
| 1255 } | 1255 } |
| 1256 | 1256 |
| 1257 bool LocalSafeBrowsingDatabaseManager::download_protection_enabled() const { | 1257 bool LocalSafeBrowsingDatabaseManager::IsDownloadProtectionEnabled() const { |
| 1258 return enable_download_protection_; | 1258 return enable_download_protection_; |
| 1259 } | 1259 } |
| 1260 | 1260 |
| 1261 } // namespace safe_browsing | 1261 } // namespace safe_browsing |
| OLD | NEW |