OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 #ifndef ANDROID_WEBVIEW_BROWSER_AW_SAFE_BROWSING_BLOCKING_PAGE_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_SAFE_BROWSING_BLOCKING_PAGE_H_ |
6 #define ANDROID_WEBVIEW_BROWSER_AW_SAFE_BROWSING_BLOCKING_PAGE_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_AW_SAFE_BROWSING_BLOCKING_PAGE_H_ |
7 | 7 |
8 #include "components/safe_browsing/base_blocking_page.h" | 8 #include "components/safe_browsing/base_blocking_page.h" |
9 #include "components/security_interstitials/core/base_safe_browsing_error_ui.h" | 9 #include "components/security_interstitials/core/base_safe_browsing_error_ui.h" |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 AwSafeBrowsingBlockingPage( | 33 AwSafeBrowsingBlockingPage( |
34 AwSafeBrowsingUIManager* ui_manager, | 34 AwSafeBrowsingUIManager* ui_manager, |
35 content::WebContents* web_contents, | 35 content::WebContents* web_contents, |
36 const GURL& main_frame_url, | 36 const GURL& main_frame_url, |
37 const UnsafeResourceList& unsafe_resources, | 37 const UnsafeResourceList& unsafe_resources, |
38 std::unique_ptr< | 38 std::unique_ptr< |
39 security_interstitials::SecurityInterstitialControllerClient> | 39 security_interstitials::SecurityInterstitialControllerClient> |
40 controller_client, | 40 controller_client, |
41 const BaseSafeBrowsingErrorUI::SBErrorDisplayOptions& display_options, | 41 const BaseSafeBrowsingErrorUI::SBErrorDisplayOptions& display_options, |
42 ErrorUiType errorUiType); | 42 ErrorUiType errorUiType); |
| 43 |
| 44 // Called when the interstitial is going away. If there is a |
| 45 // pending threat details object, we look at the user's |
| 46 // preferences, and if the option to send threat details is |
| 47 // enabled, the report is scheduled to be sent on the |ui_manager_|. |
| 48 void FinishThreatDetails(const base::TimeDelta& delay, |
| 49 bool did_proceed, |
| 50 int num_visits) override; |
| 51 |
| 52 // Whether ThreatDetails collection is in progress as part of this |
| 53 // interstitial. |
| 54 bool threat_details_in_progress_; |
43 }; | 55 }; |
44 | 56 |
45 } // namespace android_webview | 57 } // namespace android_webview |
46 | 58 |
47 #endif // ANDROID_WEBVIEW_BROWSER_AW_SAFE_BROWSING_BLOCKING_PAGE_H_ | 59 #endif // ANDROID_WEBVIEW_BROWSER_AW_SAFE_BROWSING_BLOCKING_PAGE_H_ |
OLD | NEW |