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

Unified Diff: ios/web/web_state/ui/crw_web_controller.h

Issue 2578973002: Reload offline version on load failure (Closed)
Patch Set: clean 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
Index: ios/web/web_state/ui/crw_web_controller.h
diff --git a/ios/web/web_state/ui/crw_web_controller.h b/ios/web/web_state/ui/crw_web_controller.h
index 1e0c82fcf89041eda3732e32552aba9de70a3e6d..12b3273006deac21a6aa2a44e86681536bc91040 100644
--- a/ios/web/web_state/ui/crw_web_controller.h
+++ b/ios/web/web_state/ui/crw_web_controller.h
@@ -174,6 +174,10 @@ class WebStateImpl;
// is guaranteed to be some derived representation of the original content.
- (void)loadHTMLForCurrentURL:(NSString*)HTML;
+// Loads the offline version of |URL| as the loading of the online version
+// failed.
+- (void)displayOfflineVersionForURL:(const GURL&)URL;
Eugene But (OOO till 7-30) 2016/12/15 19:10:03 Who will call this method? Please note that ios/ch
+
// Stops loading the page.
- (void)stopLoading;

Powered by Google App Engine
This is Rietveld 408576698