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

Side by Side Diff: chrome/browser/safe_browsing/local_database_manager.h

Issue 1719883003: Ignore: v4_update_protocol_manager: Basic implementation with TODOs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v4_01_prot_mgr
Patch Set: rebase again (and more branching funkiness) Created 4 years, 9 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 | « no previous file | chrome/browser/safe_browsing/local_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 // 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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/local_database_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698