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

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

Issue 2742953003: created web::ReloadType (Closed)
Patch Set: Add TODO for ORIGINAL_REQUEST_URL 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"
11 #include "ios/web/public/browser_url_rewriter.h" 11 #include "ios/web/public/browser_url_rewriter.h"
12 #include "ios/web/public/referrer.h" 12 #include "ios/web/public/referrer.h"
13 #include "ios/web/public/reload_type.h"
13 #include "ui/base/page_transition_types.h" 14 #include "ui/base/page_transition_types.h"
14 15
15 @class NSDictionary; 16 @class NSDictionary;
16 @class NSData; 17 @class NSData;
17 18
18 namespace web { 19 namespace web {
19 20
20 class BrowserState; 21 class BrowserState;
21 class NavigationItem; 22 class NavigationItem;
22 class WebState; 23 class WebState;
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 virtual bool CanGoBack() const = 0; 143 virtual bool CanGoBack() const = 0;
143 virtual bool CanGoForward() const = 0; 144 virtual bool CanGoForward() const = 0;
144 virtual bool CanGoToOffset(int offset) const = 0; 145 virtual bool CanGoToOffset(int offset) const = 0;
145 virtual void GoBack() = 0; 146 virtual void GoBack() = 0;
146 virtual void GoForward() = 0; 147 virtual void GoForward() = 0;
147 148
148 // Navigates to the specified absolute index. 149 // Navigates to the specified absolute index.
149 // TODO(crbug.com/533848): Update to use size_t. 150 // TODO(crbug.com/533848): Update to use size_t.
150 virtual void GoToIndex(int index) = 0; 151 virtual void GoToIndex(int index) = 0;
151 152
152 // Reloads the current item. If |check_for_repost| is true and the current 153 // Reloads the visible item under the specified ReloadType. If
153 // item has POST data the user is prompted to see if they really want to 154 // |check_for_repost| is true and the current item has POST data the user is
154 // reload the page. In nearly all cases pass in true. If a transient item is 155 // prompted to see if they really want to reload the page. In nearly all cases
155 // showing, initiates a new navigation to its URL. 156 // pass in true. If a transient item is showing, initiates a new navigation
156 virtual void Reload(bool check_for_repost) = 0; 157 // to its URL.
158 // TODO(crbug.com/700571): implement the logic for when |reload_type| is
159 // ORIGINAL_REQUEST_URL.
Eugene But (OOO till 7-30) 2017/03/11 00:33:36 Since you touching this, could you please add a bu
liaoyuke 2017/03/13 16:40:06 Done.
160 virtual void Reload(ReloadType reload_type, bool check_for_repost) = 0;
157 161
158 // Forces the pending item to be loaded using desktop user agent. Note that 162 // Forces the pending item to be loaded using desktop user agent. Note that
159 // the pending item may or may not already exist. 163 // the pending item may or may not already exist.
160 // TODO(crbug.com/692303): Remove this when overriding the user agent doesn't 164 // TODO(crbug.com/692303): Remove this when overriding the user agent doesn't
161 // create a new NavigationItem. 165 // create a new NavigationItem.
162 virtual void OverrideDesktopUserAgentForNextPendingItem() = 0; 166 virtual void OverrideDesktopUserAgentForNextPendingItem() = 0;
163 }; 167 };
164 168
165 } // namespace web 169 } // namespace web
166 170
167 #endif // IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_ 171 #endif // IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698