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

Unified Diff: ios/web/navigation/crw_session_entry.h

Issue 1106963003: Re-sync ios/web with downstream version (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add forgotten file Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/web/navigation/crw_session_controller_unittest.mm ('k') | ios/web/navigation/crw_session_entry.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ios/web/navigation/crw_session_controller_unittest.mm ('k') | ios/web/navigation/crw_session_entry.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698