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

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

Issue 2470913007: [ios] Refactored back-forward navigation in CRWSessionController. (Closed)
Patch Set: Self review 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..7b2e829ae9bc1d8297ba1dbd55bec87a5e4effda 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
kkhorimoto 2016/11/03 22:12:18 NIT: comma after |delta|
Eugene But (OOO till 7-30) 2016/11/03 22:50:21 Done.
+// 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