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

Unified Diff: ios/web/navigation/crw_session_controller.h

Issue 2482983003: Reland: [ios] Refactored back-forward navigation in CRWSessionController. (Closed)
Patch Set: Fix Created 4 years, 1 month 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/navigation/crw_session_controller.h
diff --git a/ios/web/navigation/crw_session_controller.h b/ios/web/navigation/crw_session_controller.h
index 3e6b98a1edf1649af7029e26d7419729b4fe325e..50adc7a020e55cf4d18b8f37b5a837f6a19d72ac 100644
--- a/ios/web/navigation/crw_session_controller.h
+++ b/ios/web/navigation/crw_session_controller.h
@@ -114,6 +114,7 @@ struct SSLStatus;
// current entry.
- (BOOL)canGoBack;
- (BOOL)canGoForward;
+- (BOOL)canGoDelta:(int)delta;
// Adjusts the current entry to reflect the navigation in the corresponding
// direction in history.
- (void)goBack;
@@ -154,6 +155,11 @@ struct SSLStatus;
// entry, otherwise set |useDesktopUserAgent| in the pending entry.
- (void)useDesktopUserAgentForNextPendingEntry;
+// Returns the navigation index that differs from the current entry by the
+// specified |delta|, skipping redirect navigation items. The index returned is
+// not guaranteed to be valid.
+- (NSInteger)indexOfEntryForDelta:(int)delta;
+
@end
#endif // IOS_WEB_NAVIGATION_CRW_SESSION_CONTROLLER_H_
« no previous file with comments | « no previous file | ios/web/navigation/crw_session_controller.mm » ('j') | ios/web/navigation/crw_session_controller.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698