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

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

Issue 2511973004: components: Cleanup class/struct fwd declarations (Closed)
Patch Set: Rebase on top of current master branch Created 4 years 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/rlz/rlz_tracker.h ('k') | components/safe_browsing_db/test_database_manager.h » ('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
11 #include <set> 11 #include <set>
12 #include <string> 12 #include <string>
13 #include <unordered_set> 13 #include <unordered_set>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/gtest_prod_util.h" 16 #include "base/gtest_prod_util.h"
17 #include "base/macros.h" 17 #include "base/macros.h"
18 #include "base/memory/ref_counted.h" 18 #include "base/memory/ref_counted.h"
19 #include "components/safe_browsing_db/hit_report.h" 19 #include "components/safe_browsing_db/hit_report.h"
20 #include "components/safe_browsing_db/util.h" 20 #include "components/safe_browsing_db/util.h"
21 #include "content/public/common/resource_type.h" 21 #include "content/public/common/resource_type.h"
22 #include "url/gurl.h" 22 #include "url/gurl.h"
23 23
24 namespace net { 24 namespace net {
25 class URLRequestContextGetter; 25 class URLRequestContextGetter;
26 } // namespace net 26 } // namespace net
27 27
28 namespace safe_browsing { 28 namespace safe_browsing {
29 29
30 struct ListIdentifier;
31 struct V4ProtocolConfig; 30 struct V4ProtocolConfig;
32 class V4GetHashProtocolManager; 31 class V4GetHashProtocolManager;
33 32
34 // Base class to either the locally-managed or a remotely-managed database. 33 // Base class to either the locally-managed or a remotely-managed database.
35 class SafeBrowsingDatabaseManager 34 class SafeBrowsingDatabaseManager
36 : public base::RefCountedThreadSafe<SafeBrowsingDatabaseManager> { 35 : public base::RefCountedThreadSafe<SafeBrowsingDatabaseManager> {
37 public: 36 public:
38 // Callers requesting a result should derive from this class. 37 // Callers requesting a result should derive from this class.
39 // The destructor should call db_manager->CancelCheck(client) if a 38 // The destructor should call db_manager->CancelCheck(client) if a
40 // request is still pending. 39 // request is still pending.
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 std::unique_ptr<V4GetHashProtocolManager> v4_get_hash_protocol_manager_; 266 std::unique_ptr<V4GetHashProtocolManager> v4_get_hash_protocol_manager_;
268 267
269 private: 268 private:
270 // Returns an iterator to the pending API check with the given |client|. 269 // Returns an iterator to the pending API check with the given |client|.
271 ApiCheckSet::iterator FindClientApiCheck(Client* client); 270 ApiCheckSet::iterator FindClientApiCheck(Client* client);
272 }; // class SafeBrowsingDatabaseManager 271 }; // class SafeBrowsingDatabaseManager
273 272
274 } // namespace safe_browsing 273 } // namespace safe_browsing
275 274
276 #endif // COMPONENTS_SAFE_BROWSING_DB_DATABASE_MANAGER_H_ 275 #endif // COMPONENTS_SAFE_BROWSING_DB_DATABASE_MANAGER_H_
OLDNEW
« no previous file with comments | « components/rlz/rlz_tracker.h ('k') | components/safe_browsing_db/test_database_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698