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/database_manager.h" | 5 #include "chrome/browser/safe_browsing/database_manager.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/debug/leak_tracker.h" | 13 #include "base/debug/leak_tracker.h" |
14 #include "base/path_service.h" | |
15 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
16 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
17 #include "base/threading/thread.h" | 16 #include "base/threading/thread.h" |
18 #include "base/threading/thread_restrictions.h" | 17 #include "base/threading/thread_restrictions.h" |
19 #include "chrome/browser/browser_process.h" | 18 #include "chrome/browser/browser_process.h" |
20 #include "chrome/browser/chrome_notification_types.h" | 19 #include "chrome/browser/chrome_notification_types.h" |
21 #include "chrome/browser/prerender/prerender_field_trial.h" | 20 #include "chrome/browser/prerender/prerender_field_trial.h" |
22 #include "chrome/browser/safe_browsing/client_side_detection_service.h" | 21 #include "chrome/browser/safe_browsing/client_side_detection_service.h" |
23 #include "chrome/browser/safe_browsing/download_protection_service.h" | 22 #include "chrome/browser/safe_browsing/download_protection_service.h" |
24 #include "chrome/browser/safe_browsing/malware_details.h" | 23 #include "chrome/browser/safe_browsing/malware_details.h" |
(...skipping 1049 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1074 new base::WeakPtrFactory<SafeBrowsingDatabaseManager>(this)); | 1073 new base::WeakPtrFactory<SafeBrowsingDatabaseManager>(this)); |
1075 checks_.insert(check); | 1074 checks_.insert(check); |
1076 | 1075 |
1077 safe_browsing_thread_->message_loop()->PostTask(FROM_HERE, task); | 1076 safe_browsing_thread_->message_loop()->PostTask(FROM_HERE, task); |
1078 | 1077 |
1079 base::MessageLoop::current()->PostDelayedTask(FROM_HERE, | 1078 base::MessageLoop::current()->PostDelayedTask(FROM_HERE, |
1080 base::Bind(&SafeBrowsingDatabaseManager::TimeoutCallback, | 1079 base::Bind(&SafeBrowsingDatabaseManager::TimeoutCallback, |
1081 check->timeout_factory_->GetWeakPtr(), check), | 1080 check->timeout_factory_->GetWeakPtr(), check), |
1082 check_timeout_); | 1081 check_timeout_); |
1083 } | 1082 } |
OLD | NEW |