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

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

Issue 2755823002: Moved |openedByDOM| to WebState's CreateParams and public interface. (Closed)
Patch Set: . Created 3 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
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 17 matching lines...) Expand all
28 // DEPRECATED, do not use this class and do not add any methods to it. 28 // DEPRECATED, do not use this class and do not add any methods to it.
29 // Use web::NavigationManager instead. 29 // Use web::NavigationManager instead.
30 // TODO(crbug.com/454984): Remove this class. 30 // TODO(crbug.com/454984): Remove this class.
31 @interface CRWSessionController : NSObject 31 @interface CRWSessionController : NSObject
32 32
33 @property(nonatomic, readonly, assign) NSInteger currentNavigationIndex; 33 @property(nonatomic, readonly, assign) NSInteger currentNavigationIndex;
34 @property(nonatomic, readonly, assign) NSInteger previousNavigationIndex; 34 @property(nonatomic, readonly, assign) NSInteger previousNavigationIndex;
35 // The index of the pending item if it is in |items|, or -1 if |pendingItem| 35 // The index of the pending item if it is in |items|, or -1 if |pendingItem|
36 // corresponds with a new navigation (created by addPendingItem:). 36 // corresponds with a new navigation (created by addPendingItem:).
37 @property(nonatomic, readwrite, assign) NSInteger pendingItemIndex; 37 @property(nonatomic, readwrite, assign) NSInteger pendingItemIndex;
38 // Indicates whether the page was opened by DOM (e.g. with |window.open|
39 // JavaScript call or by clicking a link with |_blank| target).
40 @property(nonatomic, readonly, getter=isOpenedByDOM) BOOL openedByDOM;
41 @property(nonatomic, readonly, strong) 38 @property(nonatomic, readonly, strong)
42 CRWSessionCertificatePolicyManager* sessionCertificatePolicyManager; 39 CRWSessionCertificatePolicyManager* sessionCertificatePolicyManager;
43 40
44 // Whether the CRWSessionController can prune all but the last committed item. 41 // Whether the CRWSessionController can prune all but the last committed item.
45 // This is true when all the following conditions are met: 42 // This is true when all the following conditions are met:
46 // - There is a last committed NavigationItem 43 // - There is a last committed NavigationItem
47 // - There is not currently a pending history navigation 44 // - There is not currently a pending history navigation
48 // - There is no transient NavigationItem. 45 // - There is no transient NavigationItem.
49 @property(nonatomic, readonly) BOOL canPruneAllButLastCommittedItem; 46 @property(nonatomic, readonly) BOOL canPruneAllButLastCommittedItem;
50 47
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 148
152 // Returns the index of |item| in |items|. 149 // Returns the index of |item| in |items|.
153 - (NSInteger)indexOfItem:(const web::NavigationItem*)item; 150 - (NSInteger)indexOfItem:(const web::NavigationItem*)item;
154 151
155 // Returns the item at |index| in |items|. 152 // Returns the item at |index| in |items|.
156 - (web::NavigationItemImpl*)itemAtIndex:(NSInteger)index; 153 - (web::NavigationItemImpl*)itemAtIndex:(NSInteger)index;
157 154
158 @end 155 @end
159 156
160 #endif // IOS_WEB_NAVIGATION_CRW_SESSION_CONTROLLER_H_ 157 #endif // IOS_WEB_NAVIGATION_CRW_SESSION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/browser_view_controller_unittest.mm ('k') | ios/web/navigation/crw_session_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698