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/safe_browsing_service.h" | 5 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
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/lazy_instance.h" | 13 #include "base/lazy_instance.h" |
14 #include "base/metrics/field_trial.h" | 14 #include "base/metrics/field_trial.h" |
15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
16 #include "base/prefs/pref_change_registrar.h" | 16 #include "base/prefs/pref_change_registrar.h" |
17 #include "base/prefs/pref_service.h" | 17 #include "base/prefs/pref_service.h" |
18 #include "base/stl_util.h" | 18 #include "base/stl_util.h" |
19 #include "base/strings/string_util.h" | 19 #include "base/strings/string_util.h" |
20 #include "base/threading/thread.h" | 20 #include "base/threading/thread.h" |
21 #include "base/threading/thread_restrictions.h" | 21 #include "base/threading/thread_restrictions.h" |
22 #include "chrome/browser/browser_process.h" | 22 #include "chrome/browser/browser_process.h" |
23 #include "chrome/browser/chrome_notification_types.h" | 23 #include "chrome/browser/chrome_notification_types.h" |
24 #include "chrome/browser/prefs/tracked/tracked_preference_validation_delegate.h" | |
25 #include "chrome/browser/profiles/profile.h" | 24 #include "chrome/browser/profiles/profile.h" |
26 #include "chrome/browser/profiles/profile_manager.h" | 25 #include "chrome/browser/profiles/profile_manager.h" |
27 #include "chrome/browser/safe_browsing/client_side_detection_service.h" | 26 #include "chrome/browser/safe_browsing/client_side_detection_service.h" |
28 #include "chrome/browser/safe_browsing/database_manager.h" | 27 #include "chrome/browser/safe_browsing/database_manager.h" |
29 #include "chrome/browser/safe_browsing/download_protection_service.h" | 28 #include "chrome/browser/safe_browsing/download_protection_service.h" |
30 #include "chrome/browser/safe_browsing/malware_details.h" | 29 #include "chrome/browser/safe_browsing/malware_details.h" |
31 #include "chrome/browser/safe_browsing/ping_manager.h" | 30 #include "chrome/browser/safe_browsing/ping_manager.h" |
32 #include "chrome/browser/safe_browsing/protocol_manager.h" | 31 #include "chrome/browser/safe_browsing/protocol_manager.h" |
33 #include "chrome/browser/safe_browsing/safe_browsing_database.h" | 32 #include "chrome/browser/safe_browsing/safe_browsing_database.h" |
34 #include "chrome/browser/safe_browsing/ui_manager.h" | 33 #include "chrome/browser/safe_browsing/ui_manager.h" |
35 #include "chrome/common/chrome_constants.h" | 34 #include "chrome/common/chrome_constants.h" |
36 #include "chrome/common/chrome_paths.h" | 35 #include "chrome/common/chrome_paths.h" |
37 #include "chrome/common/chrome_switches.h" | 36 #include "chrome/common/chrome_switches.h" |
38 #include "chrome/common/pref_names.h" | 37 #include "chrome/common/pref_names.h" |
39 #include "chrome/common/url_constants.h" | 38 #include "chrome/common/url_constants.h" |
| 39 #include "components/user_prefs/tracked/tracked_preference_validation_delegate.h
" |
40 #include "content/public/browser/browser_thread.h" | 40 #include "content/public/browser/browser_thread.h" |
41 #include "content/public/browser/cookie_store_factory.h" | 41 #include "content/public/browser/cookie_store_factory.h" |
42 #include "content/public/browser/notification_service.h" | 42 #include "content/public/browser/notification_service.h" |
43 #include "net/cookies/cookie_monster.h" | 43 #include "net/cookies/cookie_monster.h" |
44 #include "net/extras/sqlite/cookie_crypto_delegate.h" | 44 #include "net/extras/sqlite/cookie_crypto_delegate.h" |
45 #include "net/url_request/url_request_context.h" | 45 #include "net/url_request/url_request_context.h" |
46 #include "net/url_request/url_request_context_getter.h" | 46 #include "net/url_request/url_request_context_getter.h" |
47 | 47 |
48 #if defined(OS_WIN) | 48 #if defined(OS_WIN) |
49 #include "chrome/installer/util/browser_distribution.h" | 49 #include "chrome/installer/util/browser_distribution.h" |
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
639 | 639 |
640 state_callback_list_.Notify(); | 640 state_callback_list_.Notify(); |
641 | 641 |
642 #if defined(FULL_SAFE_BROWSING) | 642 #if defined(FULL_SAFE_BROWSING) |
643 if (csd_service_) | 643 if (csd_service_) |
644 csd_service_->SetEnabledAndRefreshState(enable); | 644 csd_service_->SetEnabledAndRefreshState(enable); |
645 if (download_service_) | 645 if (download_service_) |
646 download_service_->SetEnabled(enable); | 646 download_service_->SetEnabled(enable); |
647 #endif | 647 #endif |
648 } | 648 } |
OLD | NEW |