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

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

Issue 7863006: Add a whitelist for the new binary download protection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Matt's comment. Created 9 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 10 #pragma once
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 bool enabled_; 488 bool enabled_;
489 489
490 // Indicate if download_protection is enabled by command switch 490 // Indicate if download_protection is enabled by command switch
491 // so we allow this feature to be exersized. 491 // so we allow this feature to be exersized.
492 bool enable_download_protection_; 492 bool enable_download_protection_;
493 493
494 // Indicate if client-side phishing detection whitelist should be enabled 494 // Indicate if client-side phishing detection whitelist should be enabled
495 // or not. 495 // or not.
496 bool enable_csd_whitelist_; 496 bool enable_csd_whitelist_;
497 497
498 // Indicate if the download whitelist should be enabled or not.
499 bool enable_download_whitelist_;
500
498 // The SafeBrowsing thread that runs database operations. 501 // The SafeBrowsing thread that runs database operations.
499 // 502 //
500 // Note: Functions that run on this thread should run synchronously and return 503 // Note: Functions that run on this thread should run synchronously and return
501 // to the IO thread, not post additional tasks back to this thread, lest we 504 // to the IO thread, not post additional tasks back to this thread, lest we
502 // cause a race condition at shutdown time that leads to a database leak. 505 // cause a race condition at shutdown time that leads to a database leak.
503 scoped_ptr<base::Thread> safe_browsing_thread_; 506 scoped_ptr<base::Thread> safe_browsing_thread_;
504 507
505 // Indicates if we're currently in an update cycle. 508 // Indicates if we're currently in an update cycle.
506 bool update_in_progress_; 509 bool update_in_progress_;
507 510
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 class SafeBrowsingServiceFactory { 549 class SafeBrowsingServiceFactory {
547 public: 550 public:
548 SafeBrowsingServiceFactory() { } 551 SafeBrowsingServiceFactory() { }
549 virtual ~SafeBrowsingServiceFactory() { } 552 virtual ~SafeBrowsingServiceFactory() { }
550 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0; 553 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0;
551 private: 554 private:
552 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory); 555 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory);
553 }; 556 };
554 557
555 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ 558 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_database_unittest.cc ('k') | chrome/browser/safe_browsing/safe_browsing_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698