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

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

Issue 2724073005: Remove NavigationManager::GetPreviousItem(). (Closed)
Patch Set: Address comments. Created 3 years, 10 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/tabs/tab_model.mm ('k') | ios/web/navigation/crw_session_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c54ec7a62d7497f51c7bab8a359e83dc5422ac65..1554fd638a726182cb83818b03a09b4f1c32dd0c 100644
--- a/ios/web/navigation/crw_session_controller.h
+++ b/ios/web/navigation/crw_session_controller.h
@@ -44,6 +44,8 @@ struct Referrer;
// The list of CRWSessionEntries in |_entries|'s NavigationItemImpls.
@property(nonatomic, readonly) web::NavigationItemList items;
+// The number of elements in |self.items|.
+@property(nonatomic, readonly) NSUInteger itemCount;
// The current NavigationItem. During a pending navigation, returns the
// NavigationItem for that navigation. If a transient NavigationItem exists,
// this NavigationItem will be returned.
@@ -152,6 +154,9 @@ struct Referrer;
// Returns the index of |item| in |items|.
- (NSInteger)indexOfItem:(const web::NavigationItem*)item;
+// Returns the item at |index| in |items|.
+- (web::NavigationItemImpl*)itemAtIndex:(NSInteger)index;
+
@end
#endif // IOS_WEB_NAVIGATION_CRW_SESSION_CONTROLLER_H_
« no previous file with comments | « ios/chrome/browser/tabs/tab_model.mm ('k') | ios/web/navigation/crw_session_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698