| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PRIVATE_CONSTRUCTORS_H_ | 5 #ifndef IOS_WEB_NAVIGATION_CRW_SESSION_CONTROLLER_PRIVATE_CONSTRUCTORS_H_ |
| 6 #define IOS_WEB_NAVIGATION_CRW_SESSION_CONTROLLER_PRIVATE_CONSTRUCTORS_H_ | 6 #define IOS_WEB_NAVIGATION_CRW_SESSION_CONTROLLER_PRIVATE_CONSTRUCTORS_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #import "ios/web/navigation/crw_session_controller.h" | 11 #import "ios/web/navigation/crw_session_controller.h" |
| 12 #include "ios/web/public/navigation_item_list.h" | 12 #include "ios/web/public/navigation_item_list.h" |
| 13 | 13 |
| 14 namespace web { | 14 namespace web { |
| 15 class BrowserState; | 15 class BrowserState; |
| 16 class NavigationItem; | 16 class NavigationItem; |
| 17 } | 17 } |
| 18 | 18 |
| 19 // Temporary interface for NavigationManager and tests to create | 19 // Temporary interface for NavigationManager and tests to create |
| 20 // CRWSessionControllers. Once CRWSessionController has no users outside of | 20 // CRWSessionControllers. Once CRWSessionController has no users outside of |
| 21 // web/, these methods can go back into session_controller.h. crbug.com/318974 | 21 // web/, these methods can go back into session_controller.h. crbug.com/318974 |
| 22 @interface CRWSessionController (PrivateConstructors) | 22 @interface CRWSessionController (PrivateConstructors) |
| 23 // Initializes a session controller. | 23 // Initializes a session controller. |
| 24 - (instancetype)initWithBrowserState:(web::BrowserState*)browserState; | 24 - (instancetype)initWithBrowserState:(web::BrowserState*)browserState; |
| 25 | 25 |
| 26 // Initializes a session controller, supplying a list of NavigationItem objects | 26 // Initializes a session controller, supplying a list of NavigationItem objects |
| 27 // and the current index in the navigation history. | 27 // and the last committed item index in the navigation history. |
| 28 - (instancetype)initWithBrowserState:(web::BrowserState*)browserState | 28 - (instancetype)initWithBrowserState:(web::BrowserState*)browserState |
| 29 navigationItems:(web::ScopedNavigationItemList)items | 29 navigationItems:(web::ScopedNavigationItemList)items |
| 30 currentIndex:(NSUInteger)currentIndex; | 30 lastCommittedItemIndex:(NSUInteger)lastCommittedItemIndex; |
| 31 @end | 31 @end |
| 32 | 32 |
| 33 #endif // IOS_WEB_NAVIGATION_CRW_SESSION_CONTROLLER_PRIVATE_CONSTRUCTORS_H_ | 33 #endif // IOS_WEB_NAVIGATION_CRW_SESSION_CONTROLLER_PRIVATE_CONSTRUCTORS_H_ |
| OLD | NEW |