| 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 // Removes the item at |index| after discarding any noncomitted entries. | 140 // Removes the item at |index| after discarding any noncomitted entries. |
| 141 // |index| must not be the index of the last committed item, or a noncomitted | 141 // |index| must not be the index of the last committed item, or a noncomitted |
| 142 // item. | 142 // item. |
| 143 - (void)removeItemAtIndex:(NSInteger)index; | 143 - (void)removeItemAtIndex:(NSInteger)index; |
| 144 | 144 |
| 145 // Determines whether a navigation between |firstEntry| and |secondEntry| is a | 145 // Determines whether a navigation between |firstEntry| and |secondEntry| is a |
| 146 // same-document navigation. Entries can be passed in any order. | 146 // same-document navigation. Entries can be passed in any order. |
| 147 - (BOOL)isSameDocumentNavigationBetweenItem:(web::NavigationItem*)firstItem | 147 - (BOOL)isSameDocumentNavigationBetweenItem:(web::NavigationItem*)firstItem |
| 148 andItem:(web::NavigationItem*)secondItem; | 148 andItem:(web::NavigationItem*)secondItem; |
| 149 | 149 |
| 150 // Returns the index of |item| in |items|. | 150 // Returns the index of |item| in |items|, or -1 if it is not present. |
| 151 - (NSInteger)indexOfItem:(const web::NavigationItem*)item; | 151 - (int)indexOfItem:(const web::NavigationItem*)item; |
| 152 | 152 |
| 153 // Returns the item at |index| in |items|. | 153 // Returns the item at |index| in |items|. |
| 154 - (web::NavigationItemImpl*)itemAtIndex:(NSInteger)index; | 154 - (web::NavigationItemImpl*)itemAtIndex:(NSInteger)index; |
| 155 | 155 |
| 156 @end | 156 @end |
| 157 | 157 |
| 158 #endif // IOS_WEB_NAVIGATION_CRW_SESSION_CONTROLLER_H_ | 158 #endif // IOS_WEB_NAVIGATION_CRW_SESSION_CONTROLLER_H_ |
| OLD | NEW |