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

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

Issue 2578173005: Add GetOriginalRequestURL() to NavigationItem interface. (Closed)
Patch Set: Created 4 years 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_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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 extern NSString* const kSessionEntryUseDesktopUserAgentKey; 54 extern NSString* const kSessionEntryUseDesktopUserAgentKey;
55 } 55 }
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 // TODO(rohitrao): Fold CRWSessionEntry's logic into NavigationItem. 61 // TODO(rohitrao): Fold CRWSessionEntry's logic into NavigationItem.
62 @interface CRWSessionEntry : NSObject<NSCoding, NSCopying> 62 @interface CRWSessionEntry : NSObject<NSCoding, NSCopying>
63 63
64 @property(nonatomic, readonly) const GURL& originalUrl;
65
66 // Pointer to the NavigationItem associated with this CRWSessionEntry. 64 // Pointer to the NavigationItem associated with this CRWSessionEntry.
67 // Eventually, this will replace CRWSessionEntry entirely. 65 // Eventually, this will replace CRWSessionEntry entirely.
68 @property(nonatomic, readonly) web::NavigationItem* navigationItem; 66 @property(nonatomic, readonly) web::NavigationItem* navigationItem;
69 67
70 // Pointer to the NavigationItemImpl associated with this CRWSessionEntry. 68 // Pointer to the NavigationItemImpl associated with this CRWSessionEntry.
71 @property(nonatomic, readonly) web::NavigationItemImpl* navigationItemImpl; 69 @property(nonatomic, readonly) web::NavigationItemImpl* navigationItemImpl;
72 70
73 // Initialize the session entry with the given NavigationItem. 71 // Initialize the session entry with the given NavigationItem.
74 - (instancetype)initWithNavigationItem: 72 - (instancetype)initWithNavigationItem:
75 (std::unique_ptr<web::NavigationItem>)item; 73 (std::unique_ptr<web::NavigationItem>)item;
76 74
77 @end 75 @end
78 76
79 #endif // IOS_WEB_NAVIGATION_CRW_SESSION_ENTRY_H_ 77 #endif // IOS_WEB_NAVIGATION_CRW_SESSION_ENTRY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698