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 "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 #include "chrome/common/chrome_notification_types.h" | 33 #include "chrome/common/chrome_notification_types.h" |
34 #include "chrome/common/chrome_paths.h" | 34 #include "chrome/common/chrome_paths.h" |
35 #include "chrome/common/chrome_switches.h" | 35 #include "chrome/common/chrome_switches.h" |
36 #include "chrome/common/pref_names.h" | 36 #include "chrome/common/pref_names.h" |
37 #include "chrome/common/url_constants.h" | 37 #include "chrome/common/url_constants.h" |
38 #include "content/public/browser/browser_thread.h" | 38 #include "content/public/browser/browser_thread.h" |
39 #include "content/public/browser/navigation_entry.h" | 39 #include "content/public/browser/navigation_entry.h" |
40 #include "content/public/browser/notification_service.h" | 40 #include "content/public/browser/notification_service.h" |
41 #include "content/public/browser/web_contents.h" | 41 #include "content/public/browser/web_contents.h" |
42 #include "content/public/common/content_client.h" | 42 #include "content/public/common/content_client.h" |
43 #include "net/base/registry_controlled_domain.h" | 43 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
44 #include "net/cookies/cookie_monster.h" | 44 #include "net/cookies/cookie_monster.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" |
50 #endif | 50 #endif |
51 | 51 |
52 using content::BrowserThread; | 52 using content::BrowserThread; |
53 using content::NavigationEntry; | 53 using content::NavigationEntry; |
(...skipping 1390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1444 Stop(); | 1444 Stop(); |
1445 | 1445 |
1446 if (csd_service_.get()) | 1446 if (csd_service_.get()) |
1447 csd_service_->SetEnabledAndRefreshState(enable); | 1447 csd_service_->SetEnabledAndRefreshState(enable); |
1448 if (download_service_.get()) { | 1448 if (download_service_.get()) { |
1449 download_service_->SetEnabled( | 1449 download_service_->SetEnabled( |
1450 enable && !CommandLine::ForCurrentProcess()->HasSwitch( | 1450 enable && !CommandLine::ForCurrentProcess()->HasSwitch( |
1451 switches::kDisableImprovedDownloadProtection)); | 1451 switches::kDisableImprovedDownloadProtection)); |
1452 } | 1452 } |
1453 } | 1453 } |
OLD | NEW |