Index: ios/web/public/navigation_manager.h |
diff --git a/ios/web/public/navigation_manager.h b/ios/web/public/navigation_manager.h |
index 2950c3be94c967a906e5cbc8873b4c1ee509d2d9..6816af6fa5697cd96ecf500637dc3ac1505096c4 100644 |
--- a/ios/web/public/navigation_manager.h |
+++ b/ios/web/public/navigation_manager.h |
@@ -130,6 +130,9 @@ class NavigationManager { |
// Returns the committed NavigationItem at |index|. |
virtual NavigationItem* GetItemAtIndex(size_t index) const = 0; |
+ // Returns the index of |item| in the committed session history. |
+ virtual int GetIndexOfItem(const NavigationItem* item) const = 0; |
+ |
// Returns the index of the last committed item or -1 if the last |
// committed item correspond to a new navigation. |
// TODO(crbug.com/533848): Update to return size_t. |