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

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

Issue 1132563002: CRWSessionEntry: Replaced hardcoded strings with constants. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated comments Created 5 years, 7 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 | « no previous file | 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 6c5f625d63112fb5b6825ddd8428c9297d8c766e..01ff6c19a950c8f2a7eeaeb2baf138bf3c5b3c3f 100644
--- a/ios/web/navigation/crw_session_entry.h
+++ b/ios/web/navigation/crw_session_entry.h
@@ -17,6 +17,40 @@ namespace web {
class NavigationItem;
class NavigationItemImpl;
struct Referrer;
+
+// Keys used to serialize web::PageScrollState properties.
+extern NSString* const kSessionEntryPageScrollStateKey;
+extern NSString* const kSessionEntryScrollOffsetXKey;
+extern NSString* const kSessionEntryScrollOffsetYKey;
+extern NSString* const kSessionEntryMinimumZoomScaleKey;
+extern NSString* const kSessionEntryMaximumZoomScaleKey;
+extern NSString* const kSessionEntryZoomScaleKey;
+
+// Keys used to serialize navigation properties.
+
+// Current URL (std::string).
+extern NSString* const kSessionEntryURLKey;
+// Current URL. Deprecated, used for backward compatibility (NSURL).
+extern NSString* const kSessionEntryURLDeperecatedKey;
+// Page referrer URL (std::string).
+extern NSString* const kSessionEntryReferrerURLKey;
+// Page referrer URL (NSURL). Deprecated, used for backward compatibility.
+extern NSString* const kSessionEntryReferrerURLDeprecatedKey;
+// Page referrer policy (int).
+extern NSString* const kSessionEntryReferrerPolicyKey;
+// The time at which the last known local navigation has completed (int64_t).
+extern NSString* const kSessionEntryTimestampKey;
+// Page title (NSString).
+extern NSString* const kSessionEntryTitleKey;
+// POST request data (NSData).
+extern NSString* const kSessionEntryPOSTDataKey;
+// HTTP request headers (NSDictionary).
+extern NSString* const kSessionEntryHTTPRequestHeadersKey;
+// Whether or not to bypass showing the resubmit data confirmation when loading
+// a POST request (BOOL).
+extern NSString* const kSessionEntrySkipResubmitConfirmationKey;
+// Should desktop user agent be used (BOOL)?
+extern NSString* const kSessionEntryUseDesktopUserAgentKey;
}
// A CRWSessionEntry is similar to a NavigationEntry object in desktop Chrome.
« no previous file with comments | « no previous file | ios/web/navigation/crw_session_entry.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698