| Index: ios/chrome/browser/web/error_page_generator.h
|
| diff --git a/ios/chrome/browser/web/error_page_generator.h b/ios/chrome/browser/web/error_page_generator.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b644e1ee222175a72c84d53400386e5c084b9479
|
| --- /dev/null
|
| +++ b/ios/chrome/browser/web/error_page_generator.h
|
| @@ -0,0 +1,22 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef IOS_CHROME_BROWSER_WEB_ERROR_PAGE_GENERATOR_H_
|
| +#define IOS_CHROME_BROWSER_WEB_ERROR_PAGE_GENERATOR_H_
|
| +
|
| +#import <Foundation/Foundation.h>
|
| +
|
| +#import "ios/chrome/browser/ui/static_content/static_html_view_controller.h"
|
| +
|
| +// This class is needed because StaticHtmlViewController retains the
|
| +// HtmlGenerator.
|
| +@interface ErrorPageGenerator : NSObject<HtmlGenerator>
|
| +- (instancetype)initWithError:(NSError*)error
|
| + isPost:(BOOL)isPost
|
| + isIncognito:(BOOL)isIncognito NS_DESIGNATED_INITIALIZER;
|
| +
|
| +- (instancetype)init NS_UNAVAILABLE;
|
| +@end
|
| +
|
| +#endif // IOS_CHROME_BROWSER_WEB_ERROR_PAGE_GENERATOR_H_
|
|
|