| OLD | NEW |
| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 virtual void GoForward() = 0; | 141 virtual void GoForward() = 0; |
| 142 | 142 |
| 143 // Navigates to the specified absolute index. | 143 // Navigates to the specified absolute index. |
| 144 virtual void GoToIndex(int index) = 0; | 144 virtual void GoToIndex(int index) = 0; |
| 145 | 145 |
| 146 // Reloads the current item. If |check_for_repost| is true and the current | 146 // Reloads the current item. If |check_for_repost| is true and the current |
| 147 // item has POST data the user is prompted to see if they really want to | 147 // item has POST data the user is prompted to see if they really want to |
| 148 // reload the page. In nearly all cases pass in true. If a transient item is | 148 // reload the page. In nearly all cases pass in true. If a transient item is |
| 149 // showing, initiates a new navigation to its URL. | 149 // showing, initiates a new navigation to its URL. |
| 150 virtual void Reload(bool check_for_repost) = 0; | 150 virtual void Reload(bool check_for_repost) = 0; |
| 151 |
| 152 // Forces the pending item to be loaded using desktop user agent. Note that |
| 153 // the pending item may or may not already exist. |
| 154 // TODO(crbug.com/692303): Remove this when overriding the user agent doesn't |
| 155 // create a new NavigationItem. |
| 156 virtual void OverrideDesktopUserAgentForNextPendingItem() = 0; |
| 151 }; | 157 }; |
| 152 | 158 |
| 153 } // namespace web | 159 } // namespace web |
| 154 | 160 |
| 155 #endif // IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_ | 161 #endif // IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_ |
| OLD | NEW |