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

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

Issue 2742953003: created web::ReloadType (Closed)
Patch Set: Rebase 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
« no previous file with comments | « ios/web/navigation/navigation_manager_impl.mm ('k') | ios/web/public/reload_type.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
160 // TODO(crbug.com/700958): implement the logic for |check_for_repost|.
161 virtual void Reload(ReloadType reload_type, bool check_for_repost) = 0;
157 162
158 // Forces the pending item to be loaded using desktop user agent. Note that 163 // Forces the pending item to be loaded using desktop user agent. Note that
159 // the pending item may or may not already exist. 164 // the pending item may or may not already exist.
160 // TODO(crbug.com/692303): Remove this when overriding the user agent doesn't 165 // TODO(crbug.com/692303): Remove this when overriding the user agent doesn't
161 // create a new NavigationItem. 166 // create a new NavigationItem.
162 virtual void OverrideDesktopUserAgentForNextPendingItem() = 0; 167 virtual void OverrideDesktopUserAgentForNextPendingItem() = 0;
163 }; 168 };
164 169
165 } // namespace web 170 } // namespace web
166 171
167 #endif // IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_ 172 #endif // IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_
OLDNEW
« no previous file with comments | « ios/web/navigation/navigation_manager_impl.mm ('k') | ios/web/public/reload_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698