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

Side by Side 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW
« 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