Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(528)

Side by Side Diff: ios/web/navigation/crw_session_controller+private_constructors.h

Issue 1028603004: Upstream ios/web/navigation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ios-testing
Patch Set: Rebase and resync Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef IOS_WEB_NAVIGATION_CRW_SESSION_CONTROLLER_PRIVATE_CONSTRUCTORS_H_
6 #define IOS_WEB_NAVIGATION_CRW_SESSION_CONTROLLER_PRIVATE_CONSTRUCTORS_H_
7
8 #import "ios/web/navigation/crw_session_controller.h"
9
10 #include "base/memory/scoped_vector.h"
11
12 namespace web {
13 class BrowserState;
14 class NavigationItem;
15 }
16
17 // Temporary interface for NavigationManager and tests to create
18 // CRWSessionControllers. Once CRWSessionController has no users outside of
19 // web/, these methods can go back into session_controller.h. crbug.com/318974
20 @interface CRWSessionController (PrivateConstructors)
21 // Initializes a session controller, supplying a unique textual identifier for
22 // the window, or nil. |opener| is the tab id of the parent tab. It may be
23 // nil or empty if there is no parent.
24 - (id)initWithWindowName:(NSString*)windowName
25 openerId:(NSString*)opener
26 openedByDOM:(BOOL)openedByDOM
27 openerNavigationIndex:(NSInteger)openerIndex
28 browserState:(web::BrowserState*)browserState;
29
30 // Initializes a session controller, supplying a list of NavigationItem objects
31 // and the current index in the navigation history.
32 - (id)initWithNavigationItems:(ScopedVector<web::NavigationItem>)scoped_items
33 currentIndex:(NSUInteger)currentIndex
34 browserState:(web::BrowserState*)browserState;
35 @end
36
37 #endif // IOS_WEB_NAVIGATION_CRW_SESSION_CONTROLLER_PRIVATE_CONSTRUCTORS_H_
OLDNEW
« no previous file with comments | « ios/web/navigation/crw_session_controller.mm ('k') | ios/web/navigation/crw_session_controller_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698