OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ |
6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ | 6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 virtual void GoToOffset(int offset) = 0; | 212 virtual void GoToOffset(int offset) = 0; |
213 | 213 |
214 // Reloads the current entry. If |check_for_repost| is true and the current | 214 // Reloads the current entry. If |check_for_repost| is true and the current |
215 // entry has POST data the user is prompted to see if they really want to | 215 // entry has POST data the user is prompted to see if they really want to |
216 // reload the page. In nearly all cases pass in true. | 216 // reload the page. In nearly all cases pass in true. |
217 virtual void Reload(bool check_for_repost) = 0; | 217 virtual void Reload(bool check_for_repost) = 0; |
218 | 218 |
219 // Like Reload(), but don't use caches (aka "shift-reload"). | 219 // Like Reload(), but don't use caches (aka "shift-reload"). |
220 virtual void ReloadIgnoringCache(bool check_for_repost) = 0; | 220 virtual void ReloadIgnoringCache(bool check_for_repost) = 0; |
221 | 221 |
| 222 // Reloads the current entry using the original URL used to create it. This |
| 223 // is used for cases where the user wants to refresh a page using a different |
| 224 // user agent after following a redirect. |
| 225 virtual void ReloadOriginalRequestURL(bool check_for_repost) = 0; |
| 226 |
222 // Removing of entries ------------------------------------------------------- | 227 // Removing of entries ------------------------------------------------------- |
223 | 228 |
224 // Removes the entry at the specified |index|. This call dicards any pending | 229 // Removes the entry at the specified |index|. This call dicards any pending |
225 // and transient entries. If the index is the last committed index, this does | 230 // and transient entries. If the index is the last committed index, this does |
226 // nothing and returns false. | 231 // nothing and returns false. |
227 virtual void RemoveEntryAtIndex(int index) = 0; | 232 virtual void RemoveEntryAtIndex(int index) = 0; |
228 | 233 |
229 // Random -------------------------------------------------------------------- | 234 // Random -------------------------------------------------------------------- |
230 | 235 |
231 // The session storage namespace that all child render views should use. | 236 // The session storage namespace that all child render views should use. |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 virtual void CopyStateFromAndPrune(NavigationController* source) = 0; | 276 virtual void CopyStateFromAndPrune(NavigationController* source) = 0; |
272 | 277 |
273 // Removes all the entries except the active entry. If there is a new pending | 278 // Removes all the entries except the active entry. If there is a new pending |
274 // navigation it is preserved. | 279 // navigation it is preserved. |
275 virtual void PruneAllButActive() = 0; | 280 virtual void PruneAllButActive() = 0; |
276 }; | 281 }; |
277 | 282 |
278 } // namespace content | 283 } // namespace content |
279 | 284 |
280 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ | 285 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ |
OLD | NEW |