| 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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 // Like Reload(), but don't use caches (aka "shift-reload"). | 333 // Like Reload(), but don't use caches (aka "shift-reload"). |
| 334 virtual void ReloadIgnoringCache(bool check_for_repost) = 0; | 334 virtual void ReloadIgnoringCache(bool check_for_repost) = 0; |
| 335 | 335 |
| 336 // Reloads the current entry using the original URL used to create it. This | 336 // Reloads the current entry using the original URL used to create it. This |
| 337 // is used for cases where the user wants to refresh a page using a different | 337 // is used for cases where the user wants to refresh a page using a different |
| 338 // user agent after following a redirect. | 338 // user agent after following a redirect. |
| 339 virtual void ReloadOriginalRequestURL(bool check_for_repost) = 0; | 339 virtual void ReloadOriginalRequestURL(bool check_for_repost) = 0; |
| 340 | 340 |
| 341 // Removing of entries ------------------------------------------------------- | 341 // Removing of entries ------------------------------------------------------- |
| 342 | 342 |
| 343 // Removes the entry at the specified |index|. This call discards any | 343 // Removes the entry at the specified |index|. If the index is the last |
| 344 // transient entries. If the index is the last committed index or the pending | 344 // committed index or the pending entry, this does nothing and returns false. |
| 345 // entry, this does nothing and returns false. | 345 // Otherwise this call discards any transient or pending entries. |
| 346 virtual bool RemoveEntryAtIndex(int index) = 0; | 346 virtual bool RemoveEntryAtIndex(int index) = 0; |
| 347 | 347 |
| 348 // Random -------------------------------------------------------------------- | 348 // Random -------------------------------------------------------------------- |
| 349 | 349 |
| 350 // Session storage depends on dom_storage that depends on blink::WebString, | 350 // Session storage depends on dom_storage that depends on blink::WebString, |
| 351 // which cannot be used on iOS. | 351 // which cannot be used on iOS. |
| 352 #if !defined(OS_IOS) | 352 #if !defined(OS_IOS) |
| 353 // Returns all the SessionStorageNamespace objects that this | 353 // Returns all the SessionStorageNamespace objects that this |
| 354 // NavigationController knows about, the map key is a StoragePartition id. | 354 // NavigationController knows about, the map key is a StoragePartition id. |
| 355 virtual const SessionStorageNamespaceMap& | 355 virtual const SessionStorageNamespaceMap& |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 | 441 |
| 442 private: | 442 private: |
| 443 // This interface should only be implemented inside content. | 443 // This interface should only be implemented inside content. |
| 444 friend class NavigationControllerImpl; | 444 friend class NavigationControllerImpl; |
| 445 NavigationController() {} | 445 NavigationController() {} |
| 446 }; | 446 }; |
| 447 | 447 |
| 448 } // namespace content | 448 } // namespace content |
| 449 | 449 |
| 450 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ | 450 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ |
| OLD | NEW |