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

Side by Side Diff: components/safe_browsing/base_blocking_page.h

Issue 2863723002: WebView: create AwSafeBrowsingBlockingPage (Closed)
Patch Set: Fixing comment, fixing forward decl. Created 3 years, 7 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 | « android_webview/browser/aw_safe_browsing_ui_manager.cc ('k') | no next file » | 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 COMPONENTS_SAFE_BROWSING_BASE_BLOCKING_PAGE_H_ 5 #ifndef COMPONENTS_SAFE_BROWSING_BASE_BLOCKING_PAGE_H_
6 #define COMPONENTS_SAFE_BROWSING_BASE_BLOCKING_PAGE_H_ 6 #define COMPONENTS_SAFE_BROWSING_BASE_BLOCKING_PAGE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 static security_interstitials::MetricsHelper::ReportDetails GetReportingInfo( 104 static security_interstitials::MetricsHelper::ReportDetails GetReportingInfo(
105 const UnsafeResourceList& unsafe_resources); 105 const UnsafeResourceList& unsafe_resources);
106 106
107 // Called after OnProceed(). Does nothing in this class, but can be overridden 107 // Called after OnProceed(). Does nothing in this class, but can be overridden
108 // to handle malicious subresources. 108 // to handle malicious subresources.
109 virtual void HandleSubresourcesAfterProceed(); 109 virtual void HandleSubresourcesAfterProceed();
110 110
111 void SetThreatDetailsProceedDelayForTesting(int64_t delay); 111 void SetThreatDetailsProceedDelayForTesting(int64_t delay);
112 112
113 private:
114 static std::unique_ptr< 113 static std::unique_ptr<
115 security_interstitials::SecurityInterstitialControllerClient> 114 security_interstitials::SecurityInterstitialControllerClient>
116 CreateControllerClient(content::WebContents* web_contents, 115 CreateControllerClient(content::WebContents* web_contents,
117 const UnsafeResourceList& unsafe_resources, 116 const UnsafeResourceList& unsafe_resources,
118 BaseUIManager* ui_manager); 117 BaseUIManager* ui_manager);
119 118
119 private:
120 // For reporting back user actions. 120 // For reporting back user actions.
121 BaseUIManager* ui_manager_; 121 BaseUIManager* ui_manager_;
122 122
123 // The URL of the main frame that caused the warning. 123 // The URL of the main frame that caused the warning.
124 GURL main_frame_url_; 124 GURL main_frame_url_;
125 125
126 // The index of a navigation entry that should be removed when DontProceed() 126 // The index of a navigation entry that should be removed when DontProceed()
127 // is invoked, -1 if entry should not be removed. 127 // is invoked, -1 if entry should not be removed.
128 const int navigation_entry_index_to_remove_; 128 const int navigation_entry_index_to_remove_;
129 129
(...skipping 11 matching lines...) Expand all
141 // ThreatDetails::FinishCollection() by this much time (in 141 // ThreatDetails::FinishCollection() by this much time (in
142 // milliseconds), in order to get data from the blocked resource itself. 142 // milliseconds), in order to get data from the blocked resource itself.
143 int64_t threat_details_proceed_delay_ms_; 143 int64_t threat_details_proceed_delay_ms_;
144 144
145 DISALLOW_COPY_AND_ASSIGN(BaseBlockingPage); 145 DISALLOW_COPY_AND_ASSIGN(BaseBlockingPage);
146 }; 146 };
147 147
148 } // namespace safe_browsing 148 } // namespace safe_browsing
149 149
150 #endif // COMPONENTS_SAFE_BROWSING_BASE_BLOCKING_PAGE_H_ 150 #endif // COMPONENTS_SAFE_BROWSING_BASE_BLOCKING_PAGE_H_
OLDNEW
« no previous file with comments | « android_webview/browser/aw_safe_browsing_ui_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698