Chromium Code Reviews| 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 // Removes this method once crbug.com/692303 is fixed. | |
|
kkhorimoto
2017/02/15 23:02:06
Please reformat this comment as a todo:
TODO(crbu
liaoyuke
2017/02/16 01:49:05
Done.
| |
| 155 virtual void OverrideDesktopUserAgentForNextPendingItem() = 0; | |
| 151 }; | 156 }; |
| 152 | 157 |
| 153 } // namespace web | 158 } // namespace web |
| 154 | 159 |
| 155 #endif // IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_ | 160 #endif // IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_ |
| OLD | NEW |