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

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

Issue 2578173005: Add GetOriginalRequestURL() to NavigationItem interface. (Closed)
Patch Set: fix callers Created 3 years, 10 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
« no previous file with comments | « ios/web/navigation/crw_session_controller.mm ('k') | ios/web/navigation/crw_session_entry.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_ENTRY_H_ 5 #ifndef IOS_WEB_NAVIGATION_CRW_SESSION_ENTRY_H_
6 #define IOS_WEB_NAVIGATION_CRW_SESSION_ENTRY_H_ 6 #define IOS_WEB_NAVIGATION_CRW_SESSION_ENTRY_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 // A CRWSessionEntry is similar to a NavigationEntry object in desktop Chrome. 57 // A CRWSessionEntry is similar to a NavigationEntry object in desktop Chrome.
58 // It maintains the information needed to save/restore a single entry in session 58 // It maintains the information needed to save/restore a single entry in session
59 // history (i.e., one site) for a tab. A tab may have multiple of these objects 59 // history (i.e., one site) for a tab. A tab may have multiple of these objects
60 // comprising its entire session history. 60 // comprising its entire session history.
61 // DEPRECATED, do not use this class and do not add any methods to it. 61 // DEPRECATED, do not use this class and do not add any methods to it.
62 // Use web::NavigationItem instead. 62 // Use web::NavigationItem instead.
63 // TODO(crbug.com/454984): Remove this class. 63 // TODO(crbug.com/454984): Remove this class.
64 @interface CRWSessionEntry : NSObject<NSCoding, NSCopying> 64 @interface CRWSessionEntry : NSObject<NSCoding, NSCopying>
65 65
66 @property(nonatomic, readonly) const GURL& originalUrl;
67
68 // Pointer to the NavigationItem associated with this CRWSessionEntry. 66 // Pointer to the NavigationItem associated with this CRWSessionEntry.
69 // Eventually, this will replace CRWSessionEntry entirely. 67 // Eventually, this will replace CRWSessionEntry entirely.
70 @property(nonatomic, readonly) web::NavigationItem* navigationItem; 68 @property(nonatomic, readonly) web::NavigationItem* navigationItem;
71 69
72 // Pointer to the NavigationItemImpl associated with this CRWSessionEntry. 70 // Pointer to the NavigationItemImpl associated with this CRWSessionEntry.
73 @property(nonatomic, readonly) web::NavigationItemImpl* navigationItemImpl; 71 @property(nonatomic, readonly) web::NavigationItemImpl* navigationItemImpl;
74 72
75 // Initialize the session entry with the given NavigationItem. 73 // Initialize the session entry with the given NavigationItem.
76 - (instancetype)initWithNavigationItem: 74 - (instancetype)initWithNavigationItem:
77 (std::unique_ptr<web::NavigationItem>)item; 75 (std::unique_ptr<web::NavigationItem>)item;
78 76
79 @end 77 @end
80 78
81 #endif // IOS_WEB_NAVIGATION_CRW_SESSION_ENTRY_H_ 79 #endif // IOS_WEB_NAVIGATION_CRW_SESSION_ENTRY_H_
OLDNEW
« no previous file with comments | « ios/web/navigation/crw_session_controller.mm ('k') | ios/web/navigation/crw_session_entry.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698