Index: ios/web/navigation/crw_session_entry.h |
diff --git a/ios/web/navigation/crw_session_entry.h b/ios/web/navigation/crw_session_entry.h |
index 00d8ec830176aa0d47505913253df418007f42d6..6c5f625d63112fb5b6825ddd8428c9297d8c766e 100644 |
--- a/ios/web/navigation/crw_session_entry.h |
+++ b/ios/web/navigation/crw_session_entry.h |
@@ -15,6 +15,7 @@ |
namespace web { |
class NavigationItem; |
+class NavigationItemImpl; |
struct Referrer; |
} |
@@ -25,40 +26,22 @@ struct Referrer; |
// TODO(rohitrao): Fold CRWSessionEntry's logic into NavigationItem. |
@interface CRWSessionEntry : NSObject<NSCoding, NSCopying> |
-@property(nonatomic, assign) NSInteger index; |
@property(nonatomic, readonly) const GURL& originalUrl; |
-@property(nonatomic, assign) BOOL useDesktopUserAgent; |
-@property(nonatomic, assign) BOOL usedDataReductionProxy; |
-@property(nonatomic, retain) NSString* serializedStateObject; |
-@property(nonatomic, assign) BOOL createdFromPushState; |
-@property(nonatomic, retain) NSData* POSTData; |
-@property(nonatomic, readonly) NSDictionary* httpHeaders; |
-@property(nonatomic, assign) BOOL skipResubmitDataConfirmation; |
-// Initialize the session entry with the given url. |
-- (id)initWithUrl:(const GURL&)url |
- referrer:(const web::Referrer&)referrer |
- transition:(ui::PageTransition)transition |
- useDesktopUserAgent:(BOOL)useDesktopUserAgent |
- rendererInitiated:(BOOL)rendererInitiated; |
- |
-// Initialize the session entry with the given NavigationItem. |
-- (id)initWithNavigationItem:(scoped_ptr<web::NavigationItem>)item |
- index:(int)index; |
- |
-// Returns a pointer to the NavigationItem associated with this CRWSessionEntry. |
+// Pointer to the NavigationItem associated with this CRWSessionEntry. |
// Eventually, this will replace CRWSessionEntry entirely. |
-- (web::NavigationItem*)navigationItem; |
+@property(nonatomic, readonly) web::NavigationItem* navigationItem; |
-// Adds headers from |moreHTTPHeaders| to |httpHeaders|; existing headers with |
-// the same key will be overridden. |
-- (void)addHTTPHeaders:(NSDictionary*)moreHTTPHeaders; |
+// Pointer to the NavigationItemImpl associated with this CRWSessionEntry. |
+// TODO(kkhorimoto): This is a convenience property to avoid requiring static |
+// casts every time the web layer needs access to members only available in |
+// NavigationItemImpl. Remove once more navigation management moves into |
+// NavigationManager and CRWSessionEntry=>web::NavigationItemImpl conversions |
+// become less prominent. |
+@property(nonatomic, readonly) web::NavigationItemImpl* navigationItemImpl; |
-// Removes the header for the given key from |httpHeaders|. |
-- (void)removeHTTPHeaderForKey:(NSString*)key; |
- |
-// Resets |httpHeaders| to nil. |
-- (void)resetHTTPHeaders; |
+// Initialize the session entry with the given NavigationItem. |
+- (instancetype)initWithNavigationItem:(scoped_ptr<web::NavigationItem>)item; |
@end |