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

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

Issue 2742953003: created web::ReloadType (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 side-by-side diff with in-line comments
Download patch
Index: ios/web/public/navigation_manager.h
diff --git a/ios/web/public/navigation_manager.h b/ios/web/public/navigation_manager.h
index 3cd75e3613e268ed9c5396ae3eb51473a30cde7d..c08f96b91903019e3d2a7ee1ac4092db72f5f9df 100644
--- a/ios/web/public/navigation_manager.h
+++ b/ios/web/public/navigation_manager.h
@@ -20,6 +20,7 @@ namespace web {
class BrowserState;
class NavigationItem;
class WebState;
+enum class ReloadType : short;
kkhorimoto 2017/03/10 21:26:45 same comment about includes
liaoyuke 2017/03/10 21:42:35 Done.
// A NavigationManager maintains the back-forward list for a WebState and
// manages all navigation within that list.
@@ -149,11 +150,12 @@ class NavigationManager {
// TODO(crbug.com/533848): Update to use size_t.
virtual void GoToIndex(int index) = 0;
- // Reloads the current item. If |check_for_repost| is true and the current
- // item has POST data the user is prompted to see if they really want to
- // 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;
+ // Reloads the visible item under the specified ReloadType. If
+ // |check_for_repost| is true and the current item has POST data the user is
+ // prompted to see if they really want to 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(ReloadType reload_type, bool check_for_repost) = 0;
Eugene But (OOO till 7-30) 2017/03/10 18:37:32 Content reload does not have this argument. Can we
kkhorimoto 2017/03/10 18:47:46 This is because content// stores the ReloadType in
Eugene But (OOO till 7-30) 2017/03/10 18:58:04 Sorry, I did not realize that proposed approach di
liaoyuke 2017/03/10 21:16:23 Acknowledged.
// Forces the pending item to be loaded using desktop user agent. Note that
// the pending item may or may not already exist.

Powered by Google App Engine
This is Rietveld 408576698