Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Unified Diff: ios/chrome/browser/web/error_page_content.h

Issue 2580333003: Upstream Chrome on iOS source code [10/11]. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/chrome/browser/web/early_page_script_perftest.mm ('k') | ios/chrome/browser/web/error_page_content.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/web/error_page_content.h
diff --git a/ios/chrome/browser/web/error_page_content.h b/ios/chrome/browser/web/error_page_content.h
new file mode 100644
index 0000000000000000000000000000000000000000..1717de54805c54f4088c6ddc500c3db06b1d33ac
--- /dev/null
+++ b/ios/chrome/browser/web/error_page_content.h
@@ -0,0 +1,36 @@
+// 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_
« no previous file with comments | « ios/chrome/browser/web/early_page_script_perftest.mm ('k') | ios/chrome/browser/web/error_page_content.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698