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

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

Issue 1979153002: Use FileTypePolicies for is_archive and is_supported classifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@split_by_platform
Patch Set: rebase Created 4 years, 7 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 (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 CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ 8 #ifndef CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_
9 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ 9 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_
10 10
(...skipping 27 matching lines...) Expand all
38 class DownloadManager; 38 class DownloadManager;
39 } 39 }
40 40
41 namespace net { 41 namespace net {
42 class URLRequest; 42 class URLRequest;
43 class URLRequestContextGetter; 43 class URLRequestContextGetter;
44 } 44 }
45 45
46 namespace safe_browsing { 46 namespace safe_browsing {
47 class ClientSideDetectionService; 47 class ClientSideDetectionService;
48 class FileTypePoliciesManager;
48 class DownloadProtectionService; 49 class DownloadProtectionService;
49 struct ResourceRequestInfo; 50 struct ResourceRequestInfo;
50 struct SafeBrowsingProtocolConfig; 51 struct SafeBrowsingProtocolConfig;
51 class SafeBrowsingDatabaseManager; 52 class SafeBrowsingDatabaseManager;
52 class SafeBrowsingPingManager; 53 class SafeBrowsingPingManager;
53 class SafeBrowsingProtocolManager; 54 class SafeBrowsingProtocolManager;
54 class SafeBrowsingProtocolManagerDelegate; 55 class SafeBrowsingProtocolManagerDelegate;
55 class SafeBrowsingServiceFactory; 56 class SafeBrowsingServiceFactory;
56 class SafeBrowsingUIManager; 57 class SafeBrowsingUIManager;
57 class SafeBrowsingURLRequestContextGetter; 58 class SafeBrowsingURLRequestContextGetter;
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 virtual SafeBrowsingUIManager* CreateUIManager(); 175 virtual SafeBrowsingUIManager* CreateUIManager();
175 176
176 // Registers all the delayed analysis with the incident reporting service. 177 // Registers all the delayed analysis with the incident reporting service.
177 // This is where you register your process-wide, profile-independent analysis. 178 // This is where you register your process-wide, profile-independent analysis.
178 virtual void RegisterAllDelayedAnalysis(); 179 virtual void RegisterAllDelayedAnalysis();
179 180
180 // Return a ptr to DatabaseManager's delegate, or NULL if it doesn't have one. 181 // Return a ptr to DatabaseManager's delegate, or NULL if it doesn't have one.
181 virtual SafeBrowsingProtocolManagerDelegate* GetProtocolManagerDelegate(); 182 virtual SafeBrowsingProtocolManagerDelegate* GetProtocolManagerDelegate();
182 183
183 std::unique_ptr<ServicesDelegate> services_delegate_; 184 std::unique_ptr<ServicesDelegate> services_delegate_;
185 std::unique_ptr<FileTypePoliciesManager> file_type_policies_manager_;
184 186
185 private: 187 private:
186 friend class SafeBrowsingServiceFactoryImpl; 188 friend class SafeBrowsingServiceFactoryImpl;
187 friend struct content::BrowserThread::DeleteOnThread< 189 friend struct content::BrowserThread::DeleteOnThread<
188 content::BrowserThread::UI>; 190 content::BrowserThread::UI>;
189 friend class base::DeleteHelper<SafeBrowsingService>; 191 friend class base::DeleteHelper<SafeBrowsingService>;
190 friend class SafeBrowsingServerTest; 192 friend class SafeBrowsingServerTest;
191 friend class SafeBrowsingServiceTest; 193 friend class SafeBrowsingServiceTest;
192 friend class SafeBrowsingURLRequestContextGetter; 194 friend class SafeBrowsingURLRequestContextGetter;
193 195
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 SafeBrowsingServiceFactory() { } 288 SafeBrowsingServiceFactory() { }
287 virtual ~SafeBrowsingServiceFactory() { } 289 virtual ~SafeBrowsingServiceFactory() { }
288 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0; 290 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0;
289 private: 291 private:
290 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory); 292 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory);
291 }; 293 };
292 294
293 } // namespace safe_browsing 295 } // namespace safe_browsing
294 296
295 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ 297 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698