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

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

Issue 2794723002: Create new pending item if UserAgentOverrideOption is not INHERIT. (Closed)
Patch Set: Address comments Created 3 years, 8 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 26fb183a83a5096948898155ba15638f3b95bbc4..4ed7a98d0b56776511224473f27a4e43ca667bec 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"
@@ -77,14 +78,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