| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_CHROME_BROWSER_WEB_ERROR_PAGE_GENERATOR_H_ |
| 6 #define IOS_CHROME_BROWSER_WEB_ERROR_PAGE_GENERATOR_H_ |
| 7 |
| 8 #import <Foundation/Foundation.h> |
| 9 |
| 10 #import "ios/chrome/browser/ui/static_content/static_html_view_controller.h" |
| 11 |
| 12 // This class is needed because StaticHtmlViewController retains the |
| 13 // HtmlGenerator. |
| 14 @interface ErrorPageGenerator : NSObject<HtmlGenerator> |
| 15 - (instancetype)initWithError:(NSError*)error |
| 16 isPost:(BOOL)isPost |
| 17 isIncognito:(BOOL)isIncognito NS_DESIGNATED_INITIALIZER; |
| 18 |
| 19 - (instancetype)init NS_UNAVAILABLE; |
| 20 @end |
| 21 |
| 22 #endif // IOS_CHROME_BROWSER_WEB_ERROR_PAGE_GENERATOR_H_ |
| OLD | NEW |