OLD | NEW |
(Empty) | |
| 1 // Copyright 2012 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_CONTENT_H_ |
| 6 #define IOS_CHROME_BROWSER_WEB_ERROR_PAGE_CONTENT_H_ |
| 7 |
| 8 #import <UIKit/UIKit.h> |
| 9 |
| 10 #include "base/mac/scoped_nsobject.h" |
| 11 #import "ios/chrome/browser/ui/static_content/static_html_native_content.h" |
| 12 #import "ios/chrome/browser/ui/static_content/static_html_view_controller.h" |
| 13 |
| 14 namespace web { |
| 15 class BrowserState; |
| 16 } |
| 17 |
| 18 @interface ErrorPageContent : StaticHtmlNativeContent<HtmlGenerator> { |
| 19 // Stores the HTML generated from the NSError in the initializer. |
| 20 base::scoped_nsobject<NSString> html_; |
| 21 } |
| 22 |
| 23 // Initialization. |loader| and |url| are passed up to StaticHtmlNativeContent; |
| 24 // |loader| cannot be nil. |
| 25 // |browserState| is the user browser state and must not be null. |
| 26 // |error| (in conjunction with |isPost| and |isIncognito|) is used to generate |
| 27 // an HTML page that will be stored in the HTML generator object. |
| 28 - (id)initWithLoader:(id<UrlLoader>)loader |
| 29 browserState:(web::BrowserState*)browserState |
| 30 url:(const GURL&)url |
| 31 error:(NSError*)error |
| 32 isPost:(BOOL)isPost |
| 33 isIncognito:(BOOL)isIncognito; |
| 34 @end |
| 35 |
| 36 #endif // IOS_CHROME_BROWSER_WEB_ERROR_PAGE_CONTENT_H_ |
OLD | NEW |