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

Unified Diff: ios/chrome/browser/ui/preload_controller.h

Issue 2629073003: Ensure PreloadController is deallocated. (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « ios/chrome/browser/ui/browser_view_controller.mm ('k') | ios/chrome/browser/ui/preload_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/preload_controller.h
diff --git a/ios/chrome/browser/ui/preload_controller.h b/ios/chrome/browser/ui/preload_controller.h
index 6d8494534bb954f446a972757a188e4f04ee615d..ec6f4a37ed95dc0c25ceb0968ba52ba7168dc89a 100644
--- a/ios/chrome/browser/ui/preload_controller.h
+++ b/ios/chrome/browser/ui/preload_controller.h
@@ -110,6 +110,10 @@ extern const int kPreloadControllerURLFetcherID;
// Designated initializer.
- (instancetype)initWithBrowserState:(ios::ChromeBrowserState*)browserState;
+// Called when the browser state this object was initialized with is being
+// destroyed.
+- (void)browserStateDestroyed;
+
// Returns the currently prerendered Tab, or nil if none exists. The caller
// must retain the returned Tab if needed. After this method is called, the
// PrerenderController reverts to a non-prerendering state.
« no previous file with comments | « ios/chrome/browser/ui/browser_view_controller.mm ('k') | ios/chrome/browser/ui/preload_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698