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

Side by Side Diff: android_webview/browser/aw_safe_browsing_blocking_page.h

Issue 2950863002: Implement code for Start/Finish threat details collection in WebView. (Closed)
Patch Set: fix comment Created 3 years, 5 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
« no previous file with comments | « no previous file | android_webview/browser/aw_safe_browsing_blocking_page.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/aw_safe_browsing_blocking_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698