Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: components/safe_browsing_db/remote_database_manager.h

Issue 1865763002: Rename download_protection_enabled to IsDownloadProtectionEnabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 // Implementation of the SafeBrowsingDatabaseManager that sends URLs 5 // Implementation of the SafeBrowsingDatabaseManager that sends URLs
6 // via IPC to a database that chromium doesn't manage locally. 6 // via IPC to a database that chromium doesn't manage locally.
7 7
8 #ifndef COMPONENTS_SAFE_BROWSING_DB_REMOTE_DATABASE_MANAGER_H_ 8 #ifndef COMPONENTS_SAFE_BROWSING_DB_REMOTE_DATABASE_MANAGER_H_
9 #define COMPONENTS_SAFE_BROWSING_DB_REMOTE_DATABASE_MANAGER_H_ 9 #define COMPONENTS_SAFE_BROWSING_DB_REMOTE_DATABASE_MANAGER_H_
10 10
(...skipping 25 matching lines...) Expand all
36 36
37 // 37 //
38 // SafeBrowsingDatabaseManager implementation 38 // SafeBrowsingDatabaseManager implementation
39 // 39 //
40 40
41 bool IsSupported() const override; 41 bool IsSupported() const override;
42 safe_browsing::ThreatSource GetThreatSource() const override; 42 safe_browsing::ThreatSource GetThreatSource() const override;
43 bool ChecksAreAlwaysAsync() const override; 43 bool ChecksAreAlwaysAsync() const override;
44 bool CanCheckResourceType(content::ResourceType resource_type) const override; 44 bool CanCheckResourceType(content::ResourceType resource_type) const override;
45 bool CanCheckUrl(const GURL& url) const override; 45 bool CanCheckUrl(const GURL& url) const override;
46 bool download_protection_enabled() const override; 46 bool IsDownloadProtectionEnabled() const override;
47 bool CheckBrowseUrl(const GURL& url, Client* client) override; 47 bool CheckBrowseUrl(const GURL& url, Client* client) override;
48 void CancelCheck(Client* client) override; 48 void CancelCheck(Client* client) override;
49 void StartOnIOThread( 49 void StartOnIOThread(
50 net::URLRequestContextGetter* request_context_getter, 50 net::URLRequestContextGetter* request_context_getter,
51 const V4ProtocolConfig& config) override; 51 const V4ProtocolConfig& config) override;
52 void StopOnIOThread(bool shutdown) override; 52 void StopOnIOThread(bool shutdown) override;
53 53
54 // These will fail with DCHECK() since their functionality isn't implemented. 54 // These will fail with DCHECK() since their functionality isn't implemented.
55 // We may later add support for a subset of them. 55 // We may later add support for a subset of them.
56 bool CheckDownloadUrl(const std::vector<GURL>& url_chain, 56 bool CheckDownloadUrl(const std::vector<GURL>& url_chain,
(...skipping 24 matching lines...) Expand all
81 81
82 std::set<content::ResourceType> resource_types_to_check_; 82 std::set<content::ResourceType> resource_types_to_check_;
83 83
84 friend class base::RefCountedThreadSafe<RemoteSafeBrowsingDatabaseManager>; 84 friend class base::RefCountedThreadSafe<RemoteSafeBrowsingDatabaseManager>;
85 DISALLOW_COPY_AND_ASSIGN(RemoteSafeBrowsingDatabaseManager); 85 DISALLOW_COPY_AND_ASSIGN(RemoteSafeBrowsingDatabaseManager);
86 }; // class RemoteSafeBrowsingDatabaseManager 86 }; // class RemoteSafeBrowsingDatabaseManager
87 87
88 } // namespace safe_browsing 88 } // namespace safe_browsing
89 89
90 #endif // COMPONENTS_SAFE_BROWSING_DB_REMOTE_DATABASE_MANAGER_H_ 90 #endif // COMPONENTS_SAFE_BROWSING_DB_REMOTE_DATABASE_MANAGER_H_
OLDNEW
« no previous file with comments | « components/safe_browsing_db/database_manager.h ('k') | components/safe_browsing_db/remote_database_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698