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 <set> | 12 #include <set> |
13 #include <string> | 13 #include <string> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/callback.h" | 16 #include "base/callback.h" |
17 #include "base/hash_tables.h" | 17 #include "base/hash_tables.h" |
18 #include "base/memory/ref_counted.h" | 18 #include "base/memory/ref_counted.h" |
19 #include "base/memory/scoped_ptr.h" | 19 #include "base/memory/scoped_ptr.h" |
20 #include "base/synchronization/lock.h" | 20 #include "base/synchronization/lock.h" |
21 #include "base/time.h" | 21 #include "base/time.h" |
22 #include "chrome/browser/safe_browsing/protocol_manager.h" | 22 #include "chrome/browser/safe_browsing/protocol_manager.h" |
23 #include "chrome/browser/safe_browsing/safe_browsing_util.h" | 23 #include "chrome/browser/safe_browsing/safe_browsing_util.h" |
24 #include "content/public/browser/browser_thread.h" | |
25 #include "googleurl/src/gurl.h" | 24 #include "googleurl/src/gurl.h" |
26 | 25 |
27 class SafeBrowsingService; | 26 class SafeBrowsingService; |
28 class SafeBrowsingDatabase; | 27 class SafeBrowsingDatabase; |
29 | 28 |
30 namespace base { | 29 namespace base { |
31 class Thread; | 30 class Thread; |
32 } | 31 } |
33 | 32 |
34 namespace net { | 33 namespace net { |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 // without waiting for the result. | 365 // without waiting for the result. |
367 int64 download_urlcheck_timeout_ms_; | 366 int64 download_urlcheck_timeout_ms_; |
368 | 367 |
369 // Similar to |download_urlcheck_timeout_ms_|, but for download hash checks. | 368 // Similar to |download_urlcheck_timeout_ms_|, but for download hash checks. |
370 int64 download_hashcheck_timeout_ms_; | 369 int64 download_hashcheck_timeout_ms_; |
371 | 370 |
372 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingDatabaseManager); | 371 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingDatabaseManager); |
373 }; | 372 }; |
374 | 373 |
375 #endif // CHROME_BROWSER_SAFE_BROWSING_DATABASE_MANAGER_H_ | 374 #endif // CHROME_BROWSER_SAFE_BROWSING_DATABASE_MANAGER_H_ |
OLD | NEW |