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

Unified Diff: ios/chrome/browser/web/error_page_generator.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 side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/web/error_page_generator.h
diff --git a/ios/chrome/browser/web/error_page_generator.h b/ios/chrome/browser/web/error_page_generator.h
new file mode 100644
index 0000000000000000000000000000000000000000..b644e1ee222175a72c84d53400386e5c084b9479
--- /dev/null
+++ b/ios/chrome/browser/web/error_page_generator.h
@@ -0,0 +1,22 @@
+// Copyright 2017 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_GENERATOR_H_
+#define IOS_CHROME_BROWSER_WEB_ERROR_PAGE_GENERATOR_H_
+
+#import <Foundation/Foundation.h>
+
+#import "ios/chrome/browser/ui/static_content/static_html_view_controller.h"
+
+// This class is needed because StaticHtmlViewController retains the
+// HtmlGenerator.
+@interface ErrorPageGenerator : NSObject<HtmlGenerator>
+- (instancetype)initWithError:(NSError*)error
+ isPost:(BOOL)isPost
+ isIncognito:(BOOL)isIncognito NS_DESIGNATED_INITIALIZER;
+
+- (instancetype)init NS_UNAVAILABLE;
+@end
+
+#endif // IOS_CHROME_BROWSER_WEB_ERROR_PAGE_GENERATOR_H_
« no previous file with comments | « ios/chrome/browser/web/error_page_content_unittest.mm ('k') | ios/chrome/browser/web/error_page_generator.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698