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

Side by Side Diff: ios/chrome/browser/web/error_page_content.h

Issue 2704383003: Error pages: Break retain cycle NativeContent/StaticHTMLViewController (Closed)
Patch Set: Created 3 years, 10 months 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
« no previous file with comments | « ios/chrome/browser/web/DEPS ('k') | ios/chrome/browser/web/error_page_content.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_CHROME_BROWSER_WEB_ERROR_PAGE_CONTENT_H_ 5 #ifndef IOS_CHROME_BROWSER_WEB_ERROR_PAGE_CONTENT_H_
6 #define IOS_CHROME_BROWSER_WEB_ERROR_PAGE_CONTENT_H_ 6 #define IOS_CHROME_BROWSER_WEB_ERROR_PAGE_CONTENT_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 #include "base/mac/scoped_nsobject.h"
11 #import "ios/chrome/browser/ui/static_content/static_html_native_content.h" 10 #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 11
14 namespace web { 12 namespace web {
15 class BrowserState; 13 class BrowserState;
16 } 14 }
17 15
18 @interface ErrorPageContent : StaticHtmlNativeContent<HtmlGenerator> { 16 @interface ErrorPageContent : StaticHtmlNativeContent
19 // Stores the HTML generated from the NSError in the initializer.
20 base::scoped_nsobject<NSString> html_;
21 }
22 17
23 // Initialization. |loader| and |url| are passed up to StaticHtmlNativeContent; 18 // Initialization. |loader| and |url| are passed up to StaticHtmlNativeContent;
24 // |loader| cannot be nil. 19 // |loader| cannot be nil.
25 // |browserState| is the user browser state and must not be null. 20 // |browserState| is the user browser state and must not be null.
26 // |error| (in conjunction with |isPost| and |isIncognito|) is used to generate 21 // |error| (in conjunction with |isPost| and |isIncognito|) is used to generate
27 // an HTML page that will be stored in the HTML generator object. 22 // an HTML page that will be stored in the HTML generator object.
28 - (id)initWithLoader:(id<UrlLoader>)loader 23 - (id)initWithLoader:(id<UrlLoader>)loader
29 browserState:(web::BrowserState*)browserState 24 browserState:(web::BrowserState*)browserState
30 url:(const GURL&)url 25 url:(const GURL&)url
31 error:(NSError*)error 26 error:(NSError*)error
32 isPost:(BOOL)isPost 27 isPost:(BOOL)isPost
33 isIncognito:(BOOL)isIncognito; 28 isIncognito:(BOOL)isIncognito;
34 @end 29 @end
35 30
36 #endif // IOS_CHROME_BROWSER_WEB_ERROR_PAGE_CONTENT_H_ 31 #endif // IOS_CHROME_BROWSER_WEB_ERROR_PAGE_CONTENT_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/web/DEPS ('k') | ios/chrome/browser/web/error_page_content.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698