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

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

Issue 2794723002: Create new pending item if UserAgentOverrideOption is not INHERIT. (Closed)
Patch Set: self review Created 3 years, 9 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/crw_session_controller.h
diff --git a/ios/web/navigation/crw_session_controller.h b/ios/web/navigation/crw_session_controller.h
index f053dd14e6f26c393f0064264bfacbe2292d0b56..0ce33281ae23d0bf7f8e1f831371bf92906d2b17 100644
--- a/ios/web/navigation/crw_session_controller.h
+++ b/ios/web/navigation/crw_session_controller.h
@@ -9,6 +9,7 @@
#include <vector>
#import "ios/web/navigation/navigation_item_impl_list.h"
+#import "ios/web/public/navigation_manager.h"
#include "ui/base/page_transition_types.h"
#include "url/gurl.h"
@@ -81,14 +82,17 @@ struct Referrer;
// Sets the corresponding BrowserState.
- (void)setBrowserState:(web::BrowserState*)browserState;
-// Add a new item with the given url, referrer, and navigation type, making it
-// the current item. If pending item is the same as current item, this does
-// nothing. |referrer| may be nil if there isn't one. The item starts out as
-// pending, and will be lost unless |-commitPendingItem| is called.
+// Add a new item with the given url, referrer, navigation type and user agent
+// override option, making it the current item. If pending item is the same as
+// current item, this does nothing. |referrer| may be nil if there isn't one.
+// The item starts out as pending, and will be lost unless |-commitPendingItem|
+// is called.
- (void)addPendingItem:(const GURL&)url
- referrer:(const web::Referrer&)referrer
- transition:(ui::PageTransition)type
- initiationType:(web::NavigationInitiationType)initiationType;
+ referrer:(const web::Referrer&)referrer
+ transition:(ui::PageTransition)type
+ initiationType:(web::NavigationInitiationType)initiationType
+ userAgentOverrideOption:(web::NavigationManager::UserAgentOverrideOption)
+ userAgentOverrideOption;
// Updates the URL of the yet to be committed pending item. Useful for page
// redirects. Does nothing if there is no pending item.
« no previous file with comments | « no previous file | ios/web/navigation/crw_session_controller.mm » ('j') | ios/web/navigation/crw_session_controller.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698