| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 IOS_WEB_PUBLIC_INTERSTITIALS_WEB_INTERSTITIAL_H_ | 5 #ifndef IOS_WEB_PUBLIC_INTERSTITIALS_WEB_INTERSTITIAL_H_ |
| 6 #define IOS_WEB_PUBLIC_INTERSTITIALS_WEB_INTERSTITIAL_H_ | 6 #define IOS_WEB_PUBLIC_INTERSTITIALS_WEB_INTERSTITIAL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 class GURL; | 10 class GURL; |
| 11 | 11 |
| 12 namespace gfx { | |
| 13 class Size; | |
| 14 } | |
| 15 | |
| 16 namespace web { | 12 namespace web { |
| 17 | 13 |
| 18 class HtmlWebInterstitialDelegate; | 14 class HtmlWebInterstitialDelegate; |
| 19 class NativeWebInterstitialDelegate; | 15 class NativeWebInterstitialDelegate; |
| 20 class WebState; | 16 class WebState; |
| 21 | 17 |
| 22 // This class is used for showing interstitial pages, pages that show some | 18 // This class is used for showing interstitial pages, pages that show some |
| 23 // informative message asking for user validation before reaching the target | 19 // informative message asking for user validation before reaching the target |
| 24 // page. (Navigating to a page served over bad HTTPS or a page containing | 20 // page. (Navigating to a page served over bad HTTPS or a page containing |
| 25 // malware are typical cases where an interstitial is required.) | 21 // malware are typical cases where an interstitial is required.) |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 59 |
| 64 // Delegates should call this method when the user has chosen to proceed to | 60 // Delegates should call this method when the user has chosen to proceed to |
| 65 // the target URL. | 61 // the target URL. |
| 66 // Warning: 'this' has been deleted when this method returns. | 62 // Warning: 'this' has been deleted when this method returns. |
| 67 virtual void Proceed() = 0; | 63 virtual void Proceed() = 0; |
| 68 }; | 64 }; |
| 69 | 65 |
| 70 } // namespace web | 66 } // namespace web |
| 71 | 67 |
| 72 #endif // IOS_WEB_PUBLIC_INTERSTITIALS_WEB_INTERSTITIAL_H_ | 68 #endif // IOS_WEB_PUBLIC_INTERSTITIALS_WEB_INTERSTITIAL_H_ |
| OLD | NEW |