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 // Safe Browsing Database Manager implementation that manages a local | 5 // Safe Browsing Database Manager implementation that manages a local |
6 // database. This is used by Desktop Chromium. | 6 // database. This is used by Desktop Chromium. |
7 | 7 |
8 #ifndef CHROME_BROWSER_SAFE_BROWSING_LOCAL_DATABASE_MANAGER_H_ | 8 #ifndef CHROME_BROWSER_SAFE_BROWSING_LOCAL_DATABASE_MANAGER_H_ |
9 #define CHROME_BROWSER_SAFE_BROWSING_LOCAL_DATABASE_MANAGER_H_ | 9 #define CHROME_BROWSER_SAFE_BROWSING_LOCAL_DATABASE_MANAGER_H_ |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... |
27 #include "base/time/time.h" | 27 #include "base/time/time.h" |
28 #include "chrome/browser/safe_browsing/protocol_manager.h" | 28 #include "chrome/browser/safe_browsing/protocol_manager.h" |
29 #include "chrome/browser/safe_browsing/safe_browsing_util.h" | 29 #include "chrome/browser/safe_browsing/safe_browsing_util.h" |
30 #include "components/safe_browsing_db/database_manager.h" | 30 #include "components/safe_browsing_db/database_manager.h" |
31 #include "components/safe_browsing_db/safe_browsing_prefs.h" | 31 #include "components/safe_browsing_db/safe_browsing_prefs.h" |
32 #include "components/safe_browsing_db/safebrowsing.pb.h" | 32 #include "components/safe_browsing_db/safebrowsing.pb.h" |
33 #include "components/safe_browsing_db/util.h" | 33 #include "components/safe_browsing_db/util.h" |
34 #include "url/gurl.h" | 34 #include "url/gurl.h" |
35 | 35 |
36 namespace net { | 36 namespace net { |
37 class URLRequestContext; | |
38 class URLRequestContextGetter; | 37 class URLRequestContextGetter; |
39 } | 38 } |
40 | 39 |
41 namespace safe_browsing { | 40 namespace safe_browsing { |
42 | 41 |
43 class SafeBrowsingService; | 42 class SafeBrowsingService; |
44 class SafeBrowsingDatabase; | 43 class SafeBrowsingDatabase; |
45 class ClientSideDetectionService; | |
46 class DownloadProtectionService; | |
47 struct V4ProtocolConfig; | 44 struct V4ProtocolConfig; |
48 | 45 |
49 // Implementation that manages a local database on disk. | 46 // Implementation that manages a local database on disk. |
50 // | 47 // |
51 // Construction needs to happen on the main thread. | 48 // Construction needs to happen on the main thread. |
52 class LocalSafeBrowsingDatabaseManager | 49 class LocalSafeBrowsingDatabaseManager |
53 : public SafeBrowsingDatabaseManager, | 50 : public SafeBrowsingDatabaseManager, |
54 public SafeBrowsingProtocolManagerDelegate { | 51 public SafeBrowsingProtocolManagerDelegate { |
55 public: | 52 public: |
56 // Bundle of SafeBrowsing state while performing a URL or hash prefix check. | 53 // Bundle of SafeBrowsing state while performing a URL or hash prefix check. |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 | 375 |
379 // Timeout to use for safe browsing checks. | 376 // Timeout to use for safe browsing checks. |
380 base::TimeDelta check_timeout_; | 377 base::TimeDelta check_timeout_; |
381 | 378 |
382 DISALLOW_COPY_AND_ASSIGN(LocalSafeBrowsingDatabaseManager); | 379 DISALLOW_COPY_AND_ASSIGN(LocalSafeBrowsingDatabaseManager); |
383 }; // class LocalSafeBrowsingDatabaseManager | 380 }; // class LocalSafeBrowsingDatabaseManager |
384 | 381 |
385 } // namespace safe_browsing | 382 } // namespace safe_browsing |
386 | 383 |
387 #endif // CHROME_BROWSER_SAFE_BROWSING_LOCAL_DATABASE_MANAGER_H_ | 384 #endif // CHROME_BROWSER_SAFE_BROWSING_LOCAL_DATABASE_MANAGER_H_ |
OLD | NEW |