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

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

Issue 1643573002: Add a ModuleLoadAnalyzer which checks modules against a whitelist (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix incorrect and misleading unit tests in for blacklist_load and suspicious_module incidents Created 4 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 (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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 // incident reporting service for validation failures. Returns NULL if the 141 // incident reporting service for validation failures. Returns NULL if the
142 // service is not applicable for the given profile. 142 // service is not applicable for the given profile.
143 scoped_ptr<TrackedPreferenceValidationDelegate> 143 scoped_ptr<TrackedPreferenceValidationDelegate>
144 CreatePreferenceValidationDelegate(Profile* profile) const; 144 CreatePreferenceValidationDelegate(Profile* profile) const;
145 145
146 #if defined(FULL_SAFE_BROWSING) 146 #if defined(FULL_SAFE_BROWSING)
147 // Registers |callback| to be run after some delay following process launch. 147 // Registers |callback| to be run after some delay following process launch.
148 // |callback| will be dropped if the service is not applicable for the 148 // |callback| will be dropped if the service is not applicable for the
149 // process. 149 // process.
150 void RegisterDelayedAnalysisCallback(const DelayedAnalysisCallback& callback); 150 void RegisterDelayedAnalysisCallback(const DelayedAnalysisCallback& callback);
151 void RegisterExtendedReportingOnlyDelayedAnalysisCallback(
Nathan Parker 2016/02/22 19:58:01 I'm wondering if it'd be simpler to add a method t
proberge 2016/02/22 20:09:42 I believe we expose AddDownloadManager instead of
152 const DelayedAnalysisCallback& callback);
151 #endif 153 #endif
152 154
153 // Adds |download_manager| to the set monitored by safe browsing. 155 // Adds |download_manager| to the set monitored by safe browsing.
154 void AddDownloadManager(content::DownloadManager* download_manager); 156 void AddDownloadManager(content::DownloadManager* download_manager);
155 157
156 // Observes resource requests made by the renderer and reports suspicious 158 // Observes resource requests made by the renderer and reports suspicious
157 // activity. 159 // activity.
158 void OnResourceRequest(const net::URLRequest* request); 160 void OnResourceRequest(const net::URLRequest* request);
159 161
160 // Type for subscriptions to SafeBrowsing service state. 162 // Type for subscriptions to SafeBrowsing service state.
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 SafeBrowsingServiceFactory() { } 311 SafeBrowsingServiceFactory() { }
310 virtual ~SafeBrowsingServiceFactory() { } 312 virtual ~SafeBrowsingServiceFactory() { }
311 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0; 313 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0;
312 private: 314 private:
313 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory); 315 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory);
314 }; 316 };
315 317
316 } // namespace safe_browsing 318 } // namespace safe_browsing
317 319
318 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ 320 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698