| 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 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 // Like Reload(), but don't use caches (aka "shift-reload"). | 328 // Like Reload(), but don't use caches (aka "shift-reload"). |
| 329 virtual void ReloadIgnoringCache(bool check_for_repost) = 0; | 329 virtual void ReloadIgnoringCache(bool check_for_repost) = 0; |
| 330 | 330 |
| 331 // Reloads the current entry using the original URL used to create it. This | 331 // Reloads the current entry using the original URL used to create it. This |
| 332 // is used for cases where the user wants to refresh a page using a different | 332 // is used for cases where the user wants to refresh a page using a different |
| 333 // user agent after following a redirect. | 333 // user agent after following a redirect. |
| 334 virtual void ReloadOriginalRequestURL(bool check_for_repost) = 0; | 334 virtual void ReloadOriginalRequestURL(bool check_for_repost) = 0; |
| 335 | 335 |
| 336 // Removing of entries ------------------------------------------------------- | 336 // Removing of entries ------------------------------------------------------- |
| 337 | 337 |
| 338 // Removes the entry at the specified |index|. This call dicards any pending | 338 // Removes the entry at the specified |index|. This call discards any |
| 339 // and transient entries. If the index is the last committed index, this does | 339 // transient entries. If the index is the last committed index or the pending |
| 340 // nothing and returns false. | 340 // entry, this does nothing and returns false. |
| 341 virtual void RemoveEntryAtIndex(int index) = 0; | 341 virtual bool RemoveEntryAtIndex(int index) = 0; |
| 342 | 342 |
| 343 // Random -------------------------------------------------------------------- | 343 // Random -------------------------------------------------------------------- |
| 344 | 344 |
| 345 // Session storage depends on dom_storage that depends on WebKit::WebString, | 345 // Session storage depends on dom_storage that depends on WebKit::WebString, |
| 346 // which cannot be used on iOS. | 346 // which cannot be used on iOS. |
| 347 #if !defined(OS_IOS) | 347 #if !defined(OS_IOS) |
| 348 // Returns all the SessionStorageNamespace objects that this | 348 // Returns all the SessionStorageNamespace objects that this |
| 349 // NavigationController knows about. | 349 // NavigationController knows about. |
| 350 virtual const SessionStorageNamespaceMap& | 350 virtual const SessionStorageNamespaceMap& |
| 351 GetSessionStorageNamespaceMap() const = 0; | 351 GetSessionStorageNamespaceMap() const = 0; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 | 426 |
| 427 private: | 427 private: |
| 428 // This interface should only be implemented inside content. | 428 // This interface should only be implemented inside content. |
| 429 friend class NavigationControllerImpl; | 429 friend class NavigationControllerImpl; |
| 430 NavigationController() {} | 430 NavigationController() {} |
| 431 }; | 431 }; |
| 432 | 432 |
| 433 } // namespace content | 433 } // namespace content |
| 434 | 434 |
| 435 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ | 435 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ |
| OLD | NEW |