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

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

Issue 2821173002: Handle correctly start and commit of non-latest navigations. (Closed)
Patch Set: Fixed eg tests Created 3 years, 8 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/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 4ed7a98d0b56776511224473f27a4e43ca667bec..301f3e3dd6decf7e139e0f0f75ff00fb1e94427e 100644
--- a/ios/web/navigation/crw_session_controller.h
+++ b/ios/web/navigation/crw_session_controller.h
@@ -134,7 +134,8 @@ struct Referrer;
- (void)copyStateFromSessionControllerAndPrune:(CRWSessionController*)source;
// Sets |lastCommittedItemIndex| to the |index| if it's in the entries bounds.
-- (void)goToItemAtIndex:(NSInteger)index;
+// Discards pending and transient entries if |discard| is YES.
+- (void)goToItemAtIndex:(NSInteger)index discardNonCommittedItems:(BOOL)discard;
// Removes the item at |index| after discarding any noncomitted entries.
// |index| must not be the index of the last committed item, or a noncomitted

Powered by Google App Engine
This is Rietveld 408576698