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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 // Determines whether a navigation between |firstEntry| and |secondEntry| is a | 151 // Determines whether a navigation between |firstEntry| and |secondEntry| is a |
152 // same-document navigation. Entries can be passed in any order. | 152 // same-document navigation. Entries can be passed in any order. |
153 - (BOOL)isSameDocumentNavigationBetweenItem:(web::NavigationItem*)firstItem | 153 - (BOOL)isSameDocumentNavigationBetweenItem:(web::NavigationItem*)firstItem |
154 andItem:(web::NavigationItem*)secondItem; | 154 andItem:(web::NavigationItem*)secondItem; |
155 | 155 |
156 // Set |useDesktopUserAgentForNextPendingItem_| to YES if there is no pending | 156 // Set |useDesktopUserAgentForNextPendingItem_| to YES if there is no pending |
157 // entry, otherwise set |useDesktopUserAgent| in the pending entry. | 157 // entry, otherwise set |useDesktopUserAgent| in the pending entry. |
158 - (void)useDesktopUserAgentForNextPendingItem; | 158 - (void)useDesktopUserAgentForNextPendingItem; |
159 | 159 |
160 // Returns the index of |item| in |items|. | 160 // Returns the index of |item| in |items|. |
161 - (NSInteger)indexOfItem:(web::NavigationItem*)item; | 161 - (NSInteger)indexOfItem:(const web::NavigationItem*)item; |
162 | 162 |
163 @end | 163 @end |
164 | 164 |
165 #endif // IOS_WEB_NAVIGATION_CRW_SESSION_CONTROLLER_H_ | 165 #endif // IOS_WEB_NAVIGATION_CRW_SESSION_CONTROLLER_H_ |
OLD | NEW |