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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/navigation/crw_session_controller+private_constructors.h
diff --git a/ios/web/navigation/crw_session_controller+private_constructors.h b/ios/web/navigation/crw_session_controller+private_constructors.h
new file mode 100644
index 0000000000000000000000000000000000000000..dd7a119fdbf323b69bdfdff487e9a77042d1a92f
--- /dev/null
+++ b/ios/web/navigation/crw_session_controller+private_constructors.h
@@ -0,0 +1,37 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_WEB_NAVIGATION_CRW_SESSION_CONTROLLER_PRIVATE_CONSTRUCTORS_H_
+#define IOS_WEB_NAVIGATION_CRW_SESSION_CONTROLLER_PRIVATE_CONSTRUCTORS_H_
+
+#import "ios/web/navigation/crw_session_controller.h"
+
+#include "base/memory/scoped_vector.h"
+
+namespace web {
+class BrowserState;
+class NavigationItem;
+}
+
+// Temporary interface for NavigationManager and tests to create
+// CRWSessionControllers. Once CRWSessionController has no users outside of
+// web/, these methods can go back into session_controller.h. crbug.com/318974
+@interface CRWSessionController (PrivateConstructors)
+// Initializes a session controller, supplying a unique textual identifier for
+// the window, or nil. |opener| is the tab id of the parent tab. It may be
+// nil or empty if there is no parent.
+- (id)initWithWindowName:(NSString*)windowName
+ openerId:(NSString*)opener
+ openedByDOM:(BOOL)openedByDOM
+ openerNavigationIndex:(NSInteger)openerIndex
+ browserState:(web::BrowserState*)browserState;
+
+// Initializes a session controller, supplying a list of NavigationItem objects
+// and the current index in the navigation history.
+- (id)initWithNavigationItems:(ScopedVector<web::NavigationItem>)scoped_items
+ currentIndex:(NSUInteger)currentIndex
+ browserState:(web::BrowserState*)browserState;
+@end
+
+#endif // IOS_WEB_NAVIGATION_CRW_SESSION_CONTROLLER_PRIVATE_CONSTRUCTORS_H_
« 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