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 // safe_browsing_resource_handler.cc). | 96 // safe_browsing_resource_handler.cc). |
97 scoped_ptr<base::WeakPtrFactory<LocalSafeBrowsingDatabaseManager>> | 97 scoped_ptr<base::WeakPtrFactory<LocalSafeBrowsingDatabaseManager>> |
98 weak_ptr_factory_; | 98 weak_ptr_factory_; |
99 | 99 |
100 private: | 100 private: |
101 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingCheck); | 101 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingCheck); |
102 }; | 102 }; |
103 | 103 |
104 // Creates the safe browsing service. Need to initialize before using. | 104 // Creates the safe browsing service. Need to initialize before using. |
105 LocalSafeBrowsingDatabaseManager( | 105 LocalSafeBrowsingDatabaseManager( |
106 const scoped_refptr<SafeBrowsingService>& service, | 106 const scoped_refptr<SafeBrowsingService>& service); |
107 net::URLRequestContextGetter* request_context_getter, | |
108 const V4ProtocolConfig& config); | |
109 | 107 |
110 // | 108 // |
111 // SafeBrowsingDatabaseManager overrides | 109 // SafeBrowsingDatabaseManager overrides |
112 // | 110 // |
113 | 111 |
114 bool IsSupported() const override; | 112 bool IsSupported() const override; |
115 safe_browsing::ThreatSource GetThreatSource() const override; | 113 safe_browsing::ThreatSource GetThreatSource() const override; |
116 bool ChecksAreAlwaysAsync() const override; | 114 bool ChecksAreAlwaysAsync() const override; |
117 bool CanCheckResourceType(content::ResourceType resource_type) const override; | 115 bool CanCheckResourceType(content::ResourceType resource_type) const override; |
118 bool CanCheckUrl(const GURL& url) const override; | 116 bool CanCheckUrl(const GURL& url) const override; |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 | 377 |
380 // Timeout to use for safe browsing checks. | 378 // Timeout to use for safe browsing checks. |
381 base::TimeDelta check_timeout_; | 379 base::TimeDelta check_timeout_; |
382 | 380 |
383 DISALLOW_COPY_AND_ASSIGN(LocalSafeBrowsingDatabaseManager); | 381 DISALLOW_COPY_AND_ASSIGN(LocalSafeBrowsingDatabaseManager); |
384 }; // class LocalSafeBrowsingDatabaseManager | 382 }; // class LocalSafeBrowsingDatabaseManager |
385 | 383 |
386 } // namespace safe_browsing | 384 } // namespace safe_browsing |
387 | 385 |
388 #endif // CHROME_BROWSER_SAFE_BROWSING_LOCAL_DATABASE_MANAGER_H_ | 386 #endif // CHROME_BROWSER_SAFE_BROWSING_LOCAL_DATABASE_MANAGER_H_ |
OLD | NEW |