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

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

Issue 2648193002: SafeBrowsing: Move enabled_ to base class DB Manager (Closed)
Patch Set: Update comments Created 3 years, 10 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // 65 //
66 // RemoteSafeBrowsingDatabaseManager implementation 66 // RemoteSafeBrowsingDatabaseManager implementation
67 // 67 //
68 68
69 private: 69 private:
70 ~RemoteSafeBrowsingDatabaseManager() override; 70 ~RemoteSafeBrowsingDatabaseManager() override;
71 class ClientRequest; // Per-request tracker. 71 class ClientRequest; // Per-request tracker.
72 72
73 // Requests currently outstanding. This owns the ptrs. 73 // Requests currently outstanding. This owns the ptrs.
74 std::vector<ClientRequest*> current_requests_; 74 std::vector<ClientRequest*> current_requests_;
75 bool enabled_;
76 75
77 std::set<content::ResourceType> resource_types_to_check_; 76 std::set<content::ResourceType> resource_types_to_check_;
78 77
79 friend class base::RefCountedThreadSafe<RemoteSafeBrowsingDatabaseManager>; 78 friend class base::RefCountedThreadSafe<RemoteSafeBrowsingDatabaseManager>;
80 DISALLOW_COPY_AND_ASSIGN(RemoteSafeBrowsingDatabaseManager); 79 DISALLOW_COPY_AND_ASSIGN(RemoteSafeBrowsingDatabaseManager);
81 }; // class RemoteSafeBrowsingDatabaseManager 80 }; // class RemoteSafeBrowsingDatabaseManager
82 81
83 } // namespace safe_browsing 82 } // namespace safe_browsing
84 83
85 #endif // COMPONENTS_SAFE_BROWSING_DB_REMOTE_DATABASE_MANAGER_H_ 84 #endif // COMPONENTS_SAFE_BROWSING_DB_REMOTE_DATABASE_MANAGER_H_
OLDNEW
« no previous file with comments | « components/safe_browsing_db/database_manager.cc ('k') | components/safe_browsing_db/remote_database_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698