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

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

Issue 2698773002: [iOS] Refactoring web CRWSessionController user agent code. (Closed)
Patch Set: Fix unit tests and rebase 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/web/net/crw_ssl_status_updater_unittest.mm ('k') | ios/web/public/test/fakes/test_navigation_manager.h » ('j') | 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 f3e106dcba6f44cfdc9a75fd19ffc1dd53c25696..bec6c696e9d91976aa8beacb7be49e8835d33c52 100644
--- a/ios/web/public/navigation_manager.h
+++ b/ios/web/public/navigation_manager.h
@@ -148,6 +148,12 @@ class NavigationManager {
// reload the page. In nearly all cases pass in true. If a transient item is
// showing, initiates a new navigation to its URL.
virtual void Reload(bool check_for_repost) = 0;
+
+ // Forces the pending item to be loaded using desktop user agent. Note that
+ // the pending item may or may not already exist.
+ // TODO(crbug.com/692303): Remove this when overriding the user agent doesn't
+ // create a new NavigationItem.
+ virtual void OverrideDesktopUserAgentForNextPendingItem() = 0;
};
} // namespace web
« no previous file with comments | « ios/web/net/crw_ssl_status_updater_unittest.mm ('k') | ios/web/public/test/fakes/test_navigation_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698