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

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

Issue 2777853005: Generalize the usage of referrer chain (Closed)
Patch Set: address lpz's comments Created 3 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
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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 base::CallbackList<void(void)> shutdown_callback_list_; 331 base::CallbackList<void(void)> shutdown_callback_list_;
332 332
333 // The UI manager handles showing interstitials. Accessed on both UI and IO 333 // The UI manager handles showing interstitials. Accessed on both UI and IO
334 // thread. 334 // thread.
335 scoped_refptr<SafeBrowsingUIManager> ui_manager_; 335 scoped_refptr<SafeBrowsingUIManager> ui_manager_;
336 336
337 // The database manager handles the database and download logic. Accessed on 337 // The database manager handles the database and download logic. Accessed on
338 // both UI and IO thread. 338 // both UI and IO thread.
339 scoped_refptr<SafeBrowsingDatabaseManager> database_manager_; 339 scoped_refptr<SafeBrowsingDatabaseManager> database_manager_;
340 340
341 // The navigation observer manager handles download attribution. 341 // The navigation observer manager handles attribution of safe browsing
342 // events.
342 scoped_refptr<SafeBrowsingNavigationObserverManager> 343 scoped_refptr<SafeBrowsingNavigationObserverManager>
343 navigation_observer_manager_; 344 navigation_observer_manager_;
344 345
345 // The password protection service detects and handles password related 346 // The password protection service detects and handles password related
346 // incidents. 347 // incidents.
347 std::unique_ptr<PasswordProtectionService> password_protection_service_; 348 std::unique_ptr<PasswordProtectionService> password_protection_service_;
348 349
349 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingService); 350 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingService);
350 }; 351 };
351 352
352 // Factory for creating SafeBrowsingService. Useful for tests. 353 // Factory for creating SafeBrowsingService. Useful for tests.
353 class SafeBrowsingServiceFactory { 354 class SafeBrowsingServiceFactory {
354 public: 355 public:
355 SafeBrowsingServiceFactory() { } 356 SafeBrowsingServiceFactory() { }
356 virtual ~SafeBrowsingServiceFactory() { } 357 virtual ~SafeBrowsingServiceFactory() { }
357 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0; 358 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0;
358 private: 359 private:
359 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory); 360 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory);
360 }; 361 };
361 362
362 } // namespace safe_browsing 363 } // namespace safe_browsing
363 364
364 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ 365 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_navigation_observer_manager.cc ('k') | components/safe_browsing/csd.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698