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 // The Safe Browsing service is responsible for downloading anti-phishing and | 5 // The Safe Browsing service is responsible for downloading anti-phishing and |
6 // anti-malware tables and checking urls against them. | 6 // anti-malware tables and checking urls against them. |
7 | 7 |
8 #ifndef CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ | 8 #ifndef CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ |
9 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ | 9 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ |
10 #pragma once | 10 #pragma once |
11 | 11 |
12 #include <deque> | 12 #include <deque> |
13 #include <map> | 13 #include <map> |
14 #include <set> | 14 #include <set> |
15 #include <string> | 15 #include <string> |
16 #include <vector> | 16 #include <vector> |
17 | 17 |
18 #include "base/callback.h" | 18 #include "base/callback.h" |
19 #include "base/hash_tables.h" | 19 #include "base/hash_tables.h" |
20 #include "base/memory/ref_counted.h" | 20 #include "base/memory/ref_counted.h" |
21 #include "base/memory/scoped_ptr.h" | 21 #include "base/memory/scoped_ptr.h" |
22 #include "base/message_loop_helpers.h" | |
23 #include "base/observer_list.h" | 22 #include "base/observer_list.h" |
| 23 #include "base/sequenced_task_runner_helpers.h" |
24 #include "base/synchronization/lock.h" | 24 #include "base/synchronization/lock.h" |
25 #include "base/time.h" | 25 #include "base/time.h" |
26 #include "chrome/browser/safe_browsing/safe_browsing_util.h" | 26 #include "chrome/browser/safe_browsing/safe_browsing_util.h" |
27 #include "content/public/browser/browser_thread.h" | 27 #include "content/public/browser/browser_thread.h" |
28 #include "content/public/browser/notification_observer.h" | 28 #include "content/public/browser/notification_observer.h" |
29 #include "content/public/browser/notification_registrar.h" | 29 #include "content/public/browser/notification_registrar.h" |
30 #include "googleurl/src/gurl.h" | 30 #include "googleurl/src/gurl.h" |
31 | 31 |
32 class MalwareDetails; | 32 class MalwareDetails; |
33 class PrefChangeRegistrar; | 33 class PrefChangeRegistrar; |
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
592 class SafeBrowsingServiceFactory { | 592 class SafeBrowsingServiceFactory { |
593 public: | 593 public: |
594 SafeBrowsingServiceFactory() { } | 594 SafeBrowsingServiceFactory() { } |
595 virtual ~SafeBrowsingServiceFactory() { } | 595 virtual ~SafeBrowsingServiceFactory() { } |
596 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0; | 596 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0; |
597 private: | 597 private: |
598 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory); | 598 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory); |
599 }; | 599 }; |
600 | 600 |
601 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ | 601 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ |
OLD | NEW |