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

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

Issue 2705293014: Created web::UserAgentType. (Closed)
Patch Set: self review 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
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

Powered by Google App Engine
This is Rietveld 408576698