| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 IOS_WEB_NAVIGATION_CRW_SESSION_CONTROLLER_H_ | 5 #ifndef IOS_WEB_NAVIGATION_CRW_SESSION_CONTROLLER_H_ |
| 6 #define IOS_WEB_NAVIGATION_CRW_SESSION_CONTROLLER_H_ | 6 #define IOS_WEB_NAVIGATION_CRW_SESSION_CONTROLLER_H_ |
| 7 | 7 |
| 8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 // been received. | 61 // been received. |
| 62 @property(nonatomic, readonly) web::NavigationItemImpl* pendingItem; | 62 @property(nonatomic, readonly) web::NavigationItemImpl* pendingItem; |
| 63 // Returns the transient NavigationItem, if any. The transient item will be | 63 // Returns the transient NavigationItem, if any. The transient item will be |
| 64 // discarded on any navigation, and is used to represent interstitials in the | 64 // discarded on any navigation, and is used to represent interstitials in the |
| 65 // session history. | 65 // session history. |
| 66 @property(nonatomic, readonly) web::NavigationItemImpl* transientItem; | 66 @property(nonatomic, readonly) web::NavigationItemImpl* transientItem; |
| 67 // Returns the NavigationItem corresponding with the last committed load. | 67 // Returns the NavigationItem corresponding with the last committed load. |
| 68 @property(nonatomic, readonly) web::NavigationItemImpl* lastCommittedItem; | 68 @property(nonatomic, readonly) web::NavigationItemImpl* lastCommittedItem; |
| 69 // Returns the NavigationItem corresponding with the previously loaded page. | 69 // Returns the NavigationItem corresponding with the previously loaded page. |
| 70 @property(nonatomic, readonly) web::NavigationItemImpl* previousItem; | 70 @property(nonatomic, readonly) web::NavigationItemImpl* previousItem; |
| 71 // Returns most recent NavigationItem that is not a redirect. Returns nil if | |
| 72 // |items| is empty. | |
| 73 @property(nonatomic, readonly) web::NavigationItemImpl* lastUserItem; | |
| 74 // Returns a list of all non-redirected NavigationItems whose index precedes | 71 // Returns a list of all non-redirected NavigationItems whose index precedes |
| 75 // |currentNavigationIndex|. | 72 // |currentNavigationIndex|. |
| 76 @property(nonatomic, readonly) web::NavigationItemList backwardItems; | 73 @property(nonatomic, readonly) web::NavigationItemList backwardItems; |
| 77 // Returns a list of all non-redirected NavigationItems whose index follow | 74 // Returns a list of all non-redirected NavigationItems whose index follow |
| 78 // |currentNavigationIndex|. | 75 // |currentNavigationIndex|. |
| 79 @property(nonatomic, readonly) web::NavigationItemList forwardItems; | 76 @property(nonatomic, readonly) web::NavigationItemList forwardItems; |
| 80 | 77 |
| 81 // CRWSessionController doesn't have public constructors. New | 78 // CRWSessionController doesn't have public constructors. New |
| 82 // CRWSessionControllers are created by deserialization, or via a | 79 // CRWSessionControllers are created by deserialization, or via a |
| 83 // NavigationManager. | 80 // NavigationManager. |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 | 151 |
| 155 // Returns the index of |item| in |items|. | 152 // Returns the index of |item| in |items|. |
| 156 - (NSInteger)indexOfItem:(const web::NavigationItem*)item; | 153 - (NSInteger)indexOfItem:(const web::NavigationItem*)item; |
| 157 | 154 |
| 158 // Returns the item at |index| in |items|. | 155 // Returns the item at |index| in |items|. |
| 159 - (web::NavigationItemImpl*)itemAtIndex:(NSInteger)index; | 156 - (web::NavigationItemImpl*)itemAtIndex:(NSInteger)index; |
| 160 | 157 |
| 161 @end | 158 @end |
| 162 | 159 |
| 163 #endif // IOS_WEB_NAVIGATION_CRW_SESSION_CONTROLLER_H_ | 160 #endif // IOS_WEB_NAVIGATION_CRW_SESSION_CONTROLLER_H_ |
| OLD | NEW |