| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 | 388 |
| 389 // Removing of entries ------------------------------------------------------- | 389 // Removing of entries ------------------------------------------------------- |
| 390 | 390 |
| 391 // Removes the entry at the specified |index|. If the index is the last | 391 // Removes the entry at the specified |index|. If the index is the last |
| 392 // committed index or the pending entry, this does nothing and returns false. | 392 // committed index or the pending entry, this does nothing and returns false. |
| 393 // Otherwise this call discards any transient or pending entries. | 393 // Otherwise this call discards any transient or pending entries. |
| 394 virtual bool RemoveEntryAtIndex(int index) = 0; | 394 virtual bool RemoveEntryAtIndex(int index) = 0; |
| 395 | 395 |
| 396 // Random -------------------------------------------------------------------- | 396 // Random -------------------------------------------------------------------- |
| 397 | 397 |
| 398 // Session storage depends on dom_storage that depends on blink::WebString, | 398 // Session storage depends on dom_storage that depends on blink::WebString. |
| 399 // which cannot be used on iOS. | |
| 400 #if !defined(OS_IOS) | |
| 401 // Returns all the SessionStorageNamespace objects that this | 399 // Returns all the SessionStorageNamespace objects that this |
| 402 // NavigationController knows about, the map key is a StoragePartition id. | 400 // NavigationController knows about, the map key is a StoragePartition id. |
| 403 virtual const SessionStorageNamespaceMap& | 401 virtual const SessionStorageNamespaceMap& |
| 404 GetSessionStorageNamespaceMap() const = 0; | 402 GetSessionStorageNamespaceMap() const = 0; |
| 405 | 403 |
| 406 // TODO(ajwong): Remove this once prerendering, instant, and session restore | 404 // TODO(ajwong): Remove this once prerendering, instant, and session restore |
| 407 // are migrated. | 405 // are migrated. |
| 408 virtual SessionStorageNamespace* GetDefaultSessionStorageNamespace() = 0; | 406 virtual SessionStorageNamespace* GetDefaultSessionStorageNamespace() = 0; |
| 409 #endif | |
| 410 | 407 |
| 411 // Sets the max restored page ID this NavigationController has seen, if it | 408 // Sets the max restored page ID this NavigationController has seen, if it |
| 412 // was restored from a previous session. | 409 // was restored from a previous session. |
| 413 virtual void SetMaxRestoredPageID(int32_t max_id) = 0; | 410 virtual void SetMaxRestoredPageID(int32_t max_id) = 0; |
| 414 | 411 |
| 415 // Returns the largest restored page ID seen in this navigation controller, | 412 // Returns the largest restored page ID seen in this navigation controller, |
| 416 // if it was restored from a previous session. (-1 otherwise) | 413 // if it was restored from a previous session. (-1 otherwise) |
| 417 virtual int32_t GetMaxRestoredPageID() const = 0; | 414 virtual int32_t GetMaxRestoredPageID() const = 0; |
| 418 | 415 |
| 419 // Returns true if a reload happens when activated (SetActive(true) is | 416 // Returns true if a reload happens when activated (SetActive(true) is |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 | 490 |
| 494 private: | 491 private: |
| 495 // This interface should only be implemented inside content. | 492 // This interface should only be implemented inside content. |
| 496 friend class NavigationControllerImpl; | 493 friend class NavigationControllerImpl; |
| 497 NavigationController() {} | 494 NavigationController() {} |
| 498 }; | 495 }; |
| 499 | 496 |
| 500 } // namespace content | 497 } // namespace content |
| 501 | 498 |
| 502 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ | 499 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ |
| OLD | NEW |