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

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

Issue 1848973004: Makes V4UpdateProtocolManager auto-schedule update fetching (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v4_01_
Patch Set: git fetch && git pull && gclient sync 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
« no previous file with comments | « components/safe_browsing_db/BUILD.gn ('k') | components/safe_browsing_db/database_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // The Safe Browsing service is responsible for downloading anti-phishing and 5 // The Safe Browsing service is responsible for downloading anti-phishing and
6 // anti-malware tables and checking urls against them. 6 // anti-malware tables and checking urls against them.
7 7
8 #ifndef COMPONENTS_SAFE_BROWSING_DB_DATABASE_MANAGER_H_ 8 #ifndef COMPONENTS_SAFE_BROWSING_DB_DATABASE_MANAGER_H_
9 #define COMPONENTS_SAFE_BROWSING_DB_DATABASE_MANAGER_H_ 9 #define COMPONENTS_SAFE_BROWSING_DB_DATABASE_MANAGER_H_
10 10
(...skipping 10 matching lines...) Expand all
21 #include "url/gurl.h" 21 #include "url/gurl.h"
22 22
23 namespace net { 23 namespace net {
24 class URLRequestContextGetter; 24 class URLRequestContextGetter;
25 } // namespace net 25 } // namespace net
26 26
27 namespace safe_browsing { 27 namespace safe_browsing {
28 28
29 struct V4ProtocolConfig; 29 struct V4ProtocolConfig;
30 class V4GetHashProtocolManager; 30 class V4GetHashProtocolManager;
31 class V4UpdateProtocolManager;
32 31
33 // Base class to either the locally-managed or a remotely-managed database. 32 // Base class to either the locally-managed or a remotely-managed database.
34 class SafeBrowsingDatabaseManager 33 class SafeBrowsingDatabaseManager
35 : public base::RefCountedThreadSafe<SafeBrowsingDatabaseManager> { 34 : public base::RefCountedThreadSafe<SafeBrowsingDatabaseManager> {
36 public: 35 public:
37 // Callers requesting a result should derive from this class. 36 // Callers requesting a result should derive from this class.
38 // The destructor should call db_manager->CancelCheck(client) if a 37 // The destructor should call db_manager->CancelCheck(client) if a
39 // request is still pending. 38 // request is still pending.
40 class Client { 39 class Client {
41 public: 40 public:
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 170
172 protected: 171 protected:
173 SafeBrowsingDatabaseManager(); 172 SafeBrowsingDatabaseManager();
174 173
175 virtual ~SafeBrowsingDatabaseManager(); 174 virtual ~SafeBrowsingDatabaseManager();
176 175
177 friend class base::RefCountedThreadSafe<SafeBrowsingDatabaseManager>; 176 friend class base::RefCountedThreadSafe<SafeBrowsingDatabaseManager>;
178 177
179 // Created and destroyed via StartonIOThread/StopOnIOThread. 178 // Created and destroyed via StartonIOThread/StopOnIOThread.
180 V4GetHashProtocolManager* v4_get_hash_protocol_manager_; 179 V4GetHashProtocolManager* v4_get_hash_protocol_manager_;
181 V4UpdateProtocolManager* v4_update_protocol_manager_;
182 }; // class SafeBrowsingDatabaseManager 180 }; // class SafeBrowsingDatabaseManager
183 181
184 } // namespace safe_browsing 182 } // namespace safe_browsing
185 183
186 #endif // COMPONENTS_SAFE_BROWSING_DB_DATABASE_MANAGER_H_ 184 #endif // COMPONENTS_SAFE_BROWSING_DB_DATABASE_MANAGER_H_
OLDNEW
« no previous file with comments | « components/safe_browsing_db/BUILD.gn ('k') | components/safe_browsing_db/database_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698