Index: ios/web/navigation/navigation_manager_impl.h |
diff --git a/ios/web/navigation/navigation_manager_impl.h b/ios/web/navigation/navigation_manager_impl.h |
index a7108ff2f9edabfd06dcf1828d5685838c4804f8..864f245d714bdb13a2c482ef304d1d42278f6bc7 100644 |
--- a/ios/web/navigation/navigation_manager_impl.h |
+++ b/ios/web/navigation/navigation_manager_impl.h |
@@ -180,6 +180,10 @@ class NavigationManagerImpl : public NavigationManager { |
// |index| has ui::PAGE_TRANSITION_IS_REDIRECT_MASK. |
bool IsRedirectItemAtIndex(int index) const; |
+ // Returns the most recent NavigationItem that does not have an app-specific |
+ // URL. |
+ NavigationItem* GetLastCommittedWebItem() const; |
+ |
// If true, override navigation item's useDesktopUserAgent flag and always |
// create the pending entry using the desktop user agent. |
// TODO(crbug.com/692303): Remove this when overriding the user agent doesn't |