blob: 1717de54805c54f4088c6ddc500c3db06b1d33ac [file] [log] [blame]
// Copyright 2012 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_CONTENT_H_
#define IOS_CHROME_BROWSER_WEB_ERROR_PAGE_CONTENT_H_
#import <UIKit/UIKit.h>
#include "base/mac/scoped_nsobject.h"
#import "ios/chrome/browser/ui/static_content/static_html_native_content.h"
#import "ios/chrome/browser/ui/static_content/static_html_view_controller.h"
namespace web {
class BrowserState;
}
@interface ErrorPageContent : StaticHtmlNativeContent<HtmlGenerator> {
// Stores the HTML generated from the NSError in the initializer.
base::scoped_nsobject<NSString> html_;
}
// Initialization. |loader| and |url| are passed up to StaticHtmlNativeContent;
// |loader| cannot be nil.
// |browserState| is the user browser state and must not be null.
// |error| (in conjunction with |isPost| and |isIncognito|) is used to generate
// an HTML page that will be stored in the HTML generator object.
- (id)initWithLoader:(id<UrlLoader>)loader
browserState:(web::BrowserState*)browserState
url:(const GURL&)url
error:(NSError*)error
isPost:(BOOL)isPost
isIncognito:(BOOL)isIncognito;
@end
#endif // IOS_CHROME_BROWSER_WEB_ERROR_PAGE_CONTENT_H_