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 <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 | 284 |
285 // Reloads the current entry. If |check_for_repost| is true and the current | 285 // Reloads the current entry. If |check_for_repost| is true and the current |
286 // entry has POST data the user is prompted to see if they really want to | 286 // entry has POST data the user is prompted to see if they really want to |
287 // reload the page. In nearly all cases pass in true. If a transient entry | 287 // reload the page. In nearly all cases pass in true. If a transient entry |
288 // is showing, initiates a new navigation to its URL. | 288 // is showing, initiates a new navigation to its URL. |
289 virtual void Reload(bool check_for_repost) = 0; | 289 virtual void Reload(bool check_for_repost) = 0; |
290 | 290 |
291 // Like Reload(), but don't use caches (aka "shift-reload"). | 291 // Like Reload(), but don't use caches (aka "shift-reload"). |
292 virtual void ReloadIgnoringCache(bool check_for_repost) = 0; | 292 virtual void ReloadIgnoringCache(bool check_for_repost) = 0; |
293 | 293 |
| 294 // Reloads the current entry using the original URL used to create it. This |
| 295 // is used for cases where the user wants to refresh a page using a different |
| 296 // user agent after following a redirect. |
| 297 virtual void ReloadOriginalRequestURL(bool check_for_repost) = 0; |
| 298 |
294 // Removing of entries ------------------------------------------------------- | 299 // Removing of entries ------------------------------------------------------- |
295 | 300 |
296 // Removes the entry at the specified |index|. This call dicards any pending | 301 // Removes the entry at the specified |index|. This call dicards any pending |
297 // and transient entries. If the index is the last committed index, this does | 302 // and transient entries. If the index is the last committed index, this does |
298 // nothing and returns false. | 303 // nothing and returns false. |
299 virtual void RemoveEntryAtIndex(int index) = 0; | 304 virtual void RemoveEntryAtIndex(int index) = 0; |
300 | 305 |
301 // Random -------------------------------------------------------------------- | 306 // Random -------------------------------------------------------------------- |
302 | 307 |
303 // Returns all the SessionStorageNamespace objects that this | 308 // Returns all the SessionStorageNamespace objects that this |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 virtual void CopyStateFromAndPrune(NavigationController* source) = 0; | 355 virtual void CopyStateFromAndPrune(NavigationController* source) = 0; |
351 | 356 |
352 // Removes all the entries except the active entry. If there is a new pending | 357 // Removes all the entries except the active entry. If there is a new pending |
353 // navigation it is preserved. | 358 // navigation it is preserved. |
354 virtual void PruneAllButActive() = 0; | 359 virtual void PruneAllButActive() = 0; |
355 }; | 360 }; |
356 | 361 |
357 } // namespace content | 362 } // namespace content |
358 | 363 |
359 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ | 364 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ |
OLD | NEW |