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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 }; | 94 }; |
95 | 95 |
96 // Creates the safe browsing service. Need to initialize before using. | 96 // Creates the safe browsing service. Need to initialize before using. |
97 explicit LocalSafeBrowsingDatabaseManager( | 97 explicit LocalSafeBrowsingDatabaseManager( |
98 const scoped_refptr<SafeBrowsingService>& service); | 98 const scoped_refptr<SafeBrowsingService>& service); |
99 | 99 |
100 // | 100 // |
101 // SafeBrowsingDatabaseManager overrides | 101 // SafeBrowsingDatabaseManager overrides |
102 // | 102 // |
103 | 103 |
| 104 bool IsSupported() const override; |
104 bool CanCheckUrl(const GURL& url) const override; | 105 bool CanCheckUrl(const GURL& url) const override; |
105 | 106 |
106 bool CheckBrowseUrl(const GURL& url, Client* client) override; | 107 bool CheckBrowseUrl(const GURL& url, Client* client) override; |
107 bool CheckDownloadUrl(const std::vector<GURL>& url_chain, | 108 bool CheckDownloadUrl(const std::vector<GURL>& url_chain, |
108 Client* client) override; | 109 Client* client) override; |
109 bool CheckExtensionIDs(const std::set<std::string>& extension_ids, | 110 bool CheckExtensionIDs(const std::set<std::string>& extension_ids, |
110 Client* client) override; | 111 Client* client) override; |
111 bool MatchCsdWhitelistUrl(const GURL& url) override; | 112 bool MatchCsdWhitelistUrl(const GURL& url) override; |
112 bool MatchMalwareIP(const std::string& ip_address) override; | 113 bool MatchMalwareIP(const std::string& ip_address) override; |
113 bool MatchDownloadWhitelistUrl(const GURL& url) override; | 114 bool MatchDownloadWhitelistUrl(const GURL& url) override; |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 | 353 |
353 std::deque<QueuedCheck> queued_checks_; | 354 std::deque<QueuedCheck> queued_checks_; |
354 | 355 |
355 // Timeout to use for safe browsing checks. | 356 // Timeout to use for safe browsing checks. |
356 base::TimeDelta check_timeout_; | 357 base::TimeDelta check_timeout_; |
357 | 358 |
358 DISALLOW_COPY_AND_ASSIGN(LocalSafeBrowsingDatabaseManager); | 359 DISALLOW_COPY_AND_ASSIGN(LocalSafeBrowsingDatabaseManager); |
359 }; // class LocalSafeBrowsingDatabaseManager | 360 }; // class LocalSafeBrowsingDatabaseManager |
360 | 361 |
361 #endif // CHROME_BROWSER_SAFE_BROWSING_LOCAL_DATABASE_MANAGER_H_ | 362 #endif // CHROME_BROWSER_SAFE_BROWSING_LOCAL_DATABASE_MANAGER_H_ |
OLD | NEW |