| Index: chrome/browser/safe_browsing/safe_browsing_blocking_page.h
|
| ===================================================================
|
| --- chrome/browser/safe_browsing/safe_browsing_blocking_page.h (revision 66642)
|
| +++ chrome/browser/safe_browsing/safe_browsing_blocking_page.h (working copy)
|
| @@ -39,6 +39,7 @@
|
| class DictionaryValue;
|
| class MessageLoop;
|
| class SafeBrowsingBlockingPageFactory;
|
| +class SafeBrowsingMalwareReport;
|
| class TabContents;
|
|
|
| class SafeBrowsingBlockingPage : public InterstitialPage {
|
| @@ -102,6 +103,15 @@
|
| // SBInterstitial[Phishing|Malware|Multiple][Show|Proceed|DontProceed].
|
| void RecordUserAction(BlockingPageEvent event);
|
|
|
| + // See if we should even show the malware report option. For example, we
|
| + // don't show it in incognito mode.
|
| + bool CanShowMalwareReportOption();
|
| +
|
| + // Called when the insterstitial is going away. If there is a pending malware
|
| + // report, we look at the user's preferences, and if enabled, the
|
| + // report is scheduled to be sent on the |sb_service_|.
|
| + void FinishMalwareReport();
|
| +
|
| // A list of SafeBrowsingService::UnsafeResource for a tab that the user
|
| // should be warned about. They are queued when displaying more than one
|
| // interstitial at a time.
|
| @@ -134,6 +144,11 @@
|
| // The list of unsafe resources this page is warning about.
|
| UnsafeResourceList unsafe_resources_;
|
|
|
| + // A malware report that we start generating when the blocking page is
|
| + // shown. The report will be sent when the warning is gone
|
| + // (if the user enables the feature).
|
| + scoped_refptr<SafeBrowsingMalwareReport> malware_report_;
|
| +
|
| // The factory used to instanciate SafeBrowsingBlockingPage objects.
|
| // Usefull for tests, so they can provide their own implementation of
|
| // SafeBrowsingBlockingPage.
|
|
|