| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Classes for managing the SafeBrowsing interstitial pages. | 5 // Classes for managing the SafeBrowsing interstitial pages. |
| 6 // | 6 // |
| 7 // When a user is about to visit a page the SafeBrowsing system has deemed to | 7 // When a user is about to visit a page the SafeBrowsing system has deemed to |
| 8 // be malicious, either as malware or a phishing page, we show an interstitial | 8 // be malicious, either as malware or a phishing page, we show an interstitial |
| 9 // page with some options (go back, continue) to give the user a chance to avoid | 9 // page with some options (go back, continue) to give the user a chance to avoid |
| 10 // the harmful page. | 10 // the harmful page. |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 // Time when the interstitial was show. This variable is set in | 207 // Time when the interstitial was show. This variable is set in |
| 208 // GetHTMLContents() which is called right before the interstitial | 208 // GetHTMLContents() which is called right before the interstitial |
| 209 // is shown to the user. Will return is_null() once we reported the | 209 // is shown to the user. Will return is_null() once we reported the |
| 210 // user action. | 210 // user action. |
| 211 base::TimeTicks interstitial_show_time_; | 211 base::TimeTicks interstitial_show_time_; |
| 212 | 212 |
| 213 // Whether the user has expanded the "see more" section of the page already | 213 // Whether the user has expanded the "see more" section of the page already |
| 214 // during this interstitial page. | 214 // during this interstitial page. |
| 215 bool has_expanded_see_more_section_; | 215 bool has_expanded_see_more_section_; |
| 216 | 216 |
| 217 // Whether the user has left the reporting checkbox checked. | |
| 218 bool reporting_checkbox_checked_; | |
| 219 | |
| 220 // Whether the interstitial should create a view. | 217 // Whether the interstitial should create a view. |
| 221 bool create_view_; | 218 bool create_view_; |
| 222 | 219 |
| 223 // Which type of interstitial this is. | 220 // Which type of interstitial this is. |
| 224 enum { | 221 enum { |
| 225 TYPE_MALWARE, | 222 TYPE_MALWARE, |
| 226 TYPE_PHISHING, | 223 TYPE_PHISHING, |
| 227 TYPE_MALWARE_AND_PHISHING, | 224 TYPE_MALWARE_AND_PHISHING, |
| 228 } interstitial_type_; | 225 } interstitial_type_; |
| 229 | 226 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 254 public: | 251 public: |
| 255 virtual ~SafeBrowsingBlockingPageFactory() { } | 252 virtual ~SafeBrowsingBlockingPageFactory() { } |
| 256 | 253 |
| 257 virtual SafeBrowsingBlockingPage* CreateSafeBrowsingPage( | 254 virtual SafeBrowsingBlockingPage* CreateSafeBrowsingPage( |
| 258 SafeBrowsingUIManager* ui_manager, | 255 SafeBrowsingUIManager* ui_manager, |
| 259 content::WebContents* web_contents, | 256 content::WebContents* web_contents, |
| 260 const SafeBrowsingBlockingPage::UnsafeResourceList& unsafe_resources) = 0; | 257 const SafeBrowsingBlockingPage::UnsafeResourceList& unsafe_resources) = 0; |
| 261 }; | 258 }; |
| 262 | 259 |
| 263 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_BLOCKING_PAGE_H_ | 260 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_BLOCKING_PAGE_H_ |
| OLD | NEW |