| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef COMPONENTS_SAFE_BROWSING_DB_V4_LOCAL_DATABASE_MANAGER_H_ | 5 #ifndef COMPONENTS_SAFE_BROWSING_DB_V4_LOCAL_DATABASE_MANAGER_H_ |
| 6 #define COMPONENTS_SAFE_BROWSING_DB_V4_LOCAL_DATABASE_MANAGER_H_ | 6 #define COMPONENTS_SAFE_BROWSING_DB_V4_LOCAL_DATABASE_MANAGER_H_ |
| 7 | 7 |
| 8 // A class that provides the interface between the SafeBrowsing protocol manager | 8 // A class that provides the interface between the SafeBrowsing protocol manager |
| 9 // and database that holds the downloaded updates. | 9 // and database that holds the downloaded updates. |
| 10 | 10 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // std::strings but the overriding method in this class accepts a set of | 49 // std::strings but the overriding method in this class accepts a set of |
| 50 // FullHash objects. Since FullHash is currently std::string, it compiles, | 50 // FullHash objects. Since FullHash is currently std::string, it compiles, |
| 51 // but this difference should be eliminated. | 51 // but this difference should be eliminated. |
| 52 bool CheckExtensionIDs(const std::set<FullHash>& extension_ids, | 52 bool CheckExtensionIDs(const std::set<FullHash>& extension_ids, |
| 53 Client* client) override; | 53 Client* client) override; |
| 54 bool CheckResourceUrl(const GURL& url, Client* client) override; | 54 bool CheckResourceUrl(const GURL& url, Client* client) override; |
| 55 bool MatchCsdWhitelistUrl(const GURL& url) override; | 55 bool MatchCsdWhitelistUrl(const GURL& url) override; |
| 56 bool MatchDownloadWhitelistString(const std::string& str) override; | 56 bool MatchDownloadWhitelistString(const std::string& str) override; |
| 57 bool MatchDownloadWhitelistUrl(const GURL& url) override; | 57 bool MatchDownloadWhitelistUrl(const GURL& url) override; |
| 58 bool MatchMalwareIP(const std::string& ip_address) override; | 58 bool MatchMalwareIP(const std::string& ip_address) override; |
| 59 bool MatchModuleWhitelistString(const std::string& str) override; | 59 bool MatchModuleWhitelistString(const std::string& module_filename) override; |
| 60 safe_browsing::ThreatSource GetThreatSource() const override; | 60 safe_browsing::ThreatSource GetThreatSource() const override; |
| 61 bool IsCsdWhitelistKillSwitchOn() override; | 61 bool IsCsdWhitelistKillSwitchOn() override; |
| 62 bool IsDownloadProtectionEnabled() const override; | 62 bool IsDownloadProtectionEnabled() const override; |
| 63 bool IsMalwareKillSwitchOn() override; | 63 bool IsMalwareKillSwitchOn() override; |
| 64 bool IsSupported() const override; | 64 bool IsSupported() const override; |
| 65 void StartOnIOThread(net::URLRequestContextGetter* request_context_getter, | 65 void StartOnIOThread(net::URLRequestContextGetter* request_context_getter, |
| 66 const V4ProtocolConfig& config) override; | 66 const V4ProtocolConfig& config) override; |
| 67 void StopOnIOThread(bool shutdown) override; | 67 void StopOnIOThread(bool shutdown) override; |
| 68 | 68 |
| 69 // | 69 // |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 | 287 |
| 288 base::WeakPtrFactory<V4LocalDatabaseManager> weak_factory_; | 288 base::WeakPtrFactory<V4LocalDatabaseManager> weak_factory_; |
| 289 | 289 |
| 290 friend class base::RefCountedThreadSafe<V4LocalDatabaseManager>; | 290 friend class base::RefCountedThreadSafe<V4LocalDatabaseManager>; |
| 291 DISALLOW_COPY_AND_ASSIGN(V4LocalDatabaseManager); | 291 DISALLOW_COPY_AND_ASSIGN(V4LocalDatabaseManager); |
| 292 }; // class V4LocalDatabaseManager | 292 }; // class V4LocalDatabaseManager |
| 293 | 293 |
| 294 } // namespace safe_browsing | 294 } // namespace safe_browsing |
| 295 | 295 |
| 296 #endif // COMPONENTS_SAFE_BROWSING_DB_V4_LOCAL_DATABASE_MANAGER_H_ | 296 #endif // COMPONENTS_SAFE_BROWSING_DB_V4_LOCAL_DATABASE_MANAGER_H_ |
| OLD | NEW |