| 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.
|
|
|