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