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

Side by Side Diff: ios/web/public/navigation_manager.h

Issue 2745873002: Created NavigationManager::CopyStateFromAndPrune(). (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_ 5 #ifndef IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_
6 #define IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_ 6 #define IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #import "base/mac/scoped_nsobject.h" 10 #import "base/mac/scoped_nsobject.h"
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 // or follows the current index. 154 // or follows the current index.
155 virtual NavigationItemList GetBackwardItems() const = 0; 155 virtual NavigationItemList GetBackwardItems() const = 0;
156 virtual NavigationItemList GetForwardItems() const = 0; 156 virtual NavigationItemList GetForwardItems() const = 0;
157 157
158 // Reloads the current item. If |check_for_repost| is true and the current 158 // Reloads the current item. If |check_for_repost| is true and the current
159 // item has POST data the user is prompted to see if they really want to 159 // item has POST data the user is prompted to see if they really want to
160 // reload the page. In nearly all cases pass in true. If a transient item is 160 // reload the page. In nearly all cases pass in true. If a transient item is
161 // showing, initiates a new navigation to its URL. 161 // showing, initiates a new navigation to its URL.
162 virtual void Reload(bool check_for_repost) = 0; 162 virtual void Reload(bool check_for_repost) = 0;
163 163
164 // Inserts copies of |other_controller|'s NavigationItems to the front of this
165 // session history.
166 virtual void InsertStateFromManager(const NavigationManager* manager) = 0;
Eugene But (OOO till 7-30) 2017/03/11 00:27:47 Per my previous comments can we mirror content? Ma
167
164 // Forces the pending item to be loaded using desktop user agent. Note that 168 // Forces the pending item to be loaded using desktop user agent. Note that
165 // the pending item may or may not already exist. 169 // the pending item may or may not already exist.
166 // TODO(crbug.com/692303): Remove this when overriding the user agent doesn't 170 // TODO(crbug.com/692303): Remove this when overriding the user agent doesn't
167 // create a new NavigationItem. 171 // create a new NavigationItem.
168 virtual void OverrideDesktopUserAgentForNextPendingItem() = 0; 172 virtual void OverrideDesktopUserAgentForNextPendingItem() = 0;
169 }; 173 };
170 174
171 } // namespace web 175 } // namespace web
172 176
173 #endif // IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_ 177 #endif // IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_
OLDNEW
« no previous file with comments | « ios/web/navigation/navigation_manager_impl.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