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

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

Issue 1360993002: Moved NavigationManagerImpl serialization out of CRWSessionController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Eugene's comments Created 5 years, 3 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
11 #include "ui/base/page_transition_types.h" 11 #include "ui/base/page_transition_types.h"
12 #include "url/gurl.h" 12 #include "url/gurl.h"
13 13
14 @class CRWSessionEntry; 14 @class CRWSessionEntry;
15 @class CRWSessionCertificatePolicyManager; 15 @class CRWSessionCertificatePolicyManager;
16 @class XCallbackParameters; 16 @class XCallbackParameters;
17 17
18 namespace web { 18 namespace web {
19 class NavigationManagerImpl; 19 class NavigationManagerImpl;
20 struct Referrer; 20 struct Referrer;
21 struct SSLStatus; 21 struct SSLStatus;
22 } 22 }
23 23
24 // A CRWSessionController is similar to a NavigationController object in desktop 24 // A CRWSessionController is similar to a NavigationController object in desktop
25 // Chrome. It maintains information needed to save/restore a tab with its 25 // Chrome. It maintains information needed to save/restore a tab with its
26 // complete session history. There is one of these for each tab. 26 // complete session history. There is one of these for each tab.
27 // TODO(stuartmorgan): Move under NavigationManager, and consider merging into 27 // TODO(stuartmorgan): Move under NavigationManager, and consider merging into
28 // NavigationManager. 28 // NavigationManager.
29 @interface CRWSessionController : NSObject<NSCoding, NSCopying> 29 @interface CRWSessionController : NSObject<NSCopying>
30 30
31 @property(nonatomic, readonly, retain) NSString* tabId; 31 @property(nonatomic, readonly, retain) NSString* tabId;
32 @property(nonatomic, readonly, assign) NSInteger currentNavigationIndex; 32 @property(nonatomic, readonly, assign) NSInteger currentNavigationIndex;
33 @property(nonatomic, readonly, assign) NSInteger previousNavigationIndex; 33 @property(nonatomic, readonly, assign) NSInteger previousNavigationIndex;
34 @property(nonatomic, readonly, retain) NSArray* entries; 34 @property(nonatomic, readonly, retain) NSArray* entries;
35 @property(nonatomic, copy) NSString* windowName; 35 @property(nonatomic, copy) NSString* windowName;
36 // Indicates whether the page was opened by DOM (e.g. with |window.open| 36 // Indicates whether the page was opened by DOM (e.g. with |window.open|
37 // JavaScript call or by clicking a link with |_blank| target). 37 // JavaScript call or by clicking a link with |_blank| target).
38 @property(nonatomic, readonly, getter=isOpenedByDOM) BOOL openedByDOM; 38 @property(nonatomic, readonly, getter=isOpenedByDOM) BOOL openedByDOM;
39 @property(nonatomic, readonly, retain) 39 @property(nonatomic, readonly, retain)
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 // |entries_| is empty. 153 // |entries_| is empty.
154 - (CRWSessionEntry*)lastUserEntry; 154 - (CRWSessionEntry*)lastUserEntry;
155 155
156 // Set |useDesktopUserAgentForNextPendingEntry_| to YES if there is no pending 156 // Set |useDesktopUserAgentForNextPendingEntry_| 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)useDesktopUserAgentForNextPendingEntry; 158 - (void)useDesktopUserAgentForNextPendingEntry;
159 159
160 @end 160 @end
161 161
162 #endif // IOS_WEB_NAVIGATION_CRW_SESSION_CONTROLLER_H_ 162 #endif // IOS_WEB_NAVIGATION_CRW_SESSION_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698