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

Unified Diff: ios/web/public/navigation_manager.h

Issue 1342953002: Added some public methods to web::NavigationController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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/web/navigation/navigation_manager_impl.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/navigation_manager.h
diff --git a/ios/web/public/navigation_manager.h b/ios/web/public/navigation_manager.h
index 2c46cc6ccefe11a8a761c61e6319336325165a55..57125e8825667bef6d55601ca201077b236675b3 100644
--- a/ios/web/public/navigation_manager.h
+++ b/ios/web/public/navigation_manager.h
@@ -51,6 +51,16 @@ class NavigationManager {
// attempted page load. |rewriter| must not be null.
virtual void AddTransientURLRewriter(
BrowserURLRewriter::URLRewriter rewriter) = 0;
+
+ // Returns the number of items in the NavigationManager, excluding
+ // pending and transient entries.
+ virtual int GetEntryCount() const = 0;
+
+ // Returns the committed NavigationItem at |index|.
+ virtual NavigationItem* GetItemAtIndex(size_t index) const = 0;
+
+ // Returns the index from which web would go back/forward or reload.
+ virtual int GetCurrentEntryIndex() const = 0;
};
} // namespace web
« no previous file with comments | « ios/web/navigation/navigation_manager_impl.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698