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_DATABASE_MANAGER_H_ | 8 #ifndef CHROME_BROWSER_SAFE_BROWSING_DATABASE_MANAGER_H_ |
9 #define CHROME_BROWSER_SAFE_BROWSING_DATABASE_MANAGER_H_ | 9 #define CHROME_BROWSER_SAFE_BROWSING_DATABASE_MANAGER_H_ |
10 | 10 |
11 #include <deque> | 11 #include <deque> |
12 #include <map> | 12 #include <map> |
13 #include <set> | 13 #include <set> |
14 #include <string> | 14 #include <string> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
17 #include "base/callback.h" | 17 #include "base/callback.h" |
18 #include "base/hash_tables.h" | 18 #include "base/containers/hash_tables.h" |
19 #include "base/memory/ref_counted.h" | 19 #include "base/memory/ref_counted.h" |
20 #include "base/memory/scoped_ptr.h" | 20 #include "base/memory/scoped_ptr.h" |
21 #include "base/synchronization/lock.h" | 21 #include "base/synchronization/lock.h" |
22 #include "base/time.h" | 22 #include "base/time.h" |
23 #include "chrome/browser/safe_browsing/protocol_manager.h" | 23 #include "chrome/browser/safe_browsing/protocol_manager.h" |
24 #include "chrome/browser/safe_browsing/safe_browsing_util.h" | 24 #include "chrome/browser/safe_browsing/safe_browsing_util.h" |
25 #include "googleurl/src/gurl.h" | 25 #include "googleurl/src/gurl.h" |
26 | 26 |
27 class SafeBrowsingService; | 27 class SafeBrowsingService; |
28 class SafeBrowsingDatabase; | 28 class SafeBrowsingDatabase; |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 | 398 |
399 std::deque<QueuedCheck> queued_checks_; | 399 std::deque<QueuedCheck> queued_checks_; |
400 | 400 |
401 // Timeout to use for safe browsing checks. | 401 // Timeout to use for safe browsing checks. |
402 base::TimeDelta check_timeout_; | 402 base::TimeDelta check_timeout_; |
403 | 403 |
404 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingDatabaseManager); | 404 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingDatabaseManager); |
405 }; | 405 }; |
406 | 406 |
407 #endif // CHROME_BROWSER_SAFE_BROWSING_DATABASE_MANAGER_H_ | 407 #endif // CHROME_BROWSER_SAFE_BROWSING_DATABASE_MANAGER_H_ |
OLD | NEW |