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

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: Resolved Stuart's review 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..508780cefa6adb8319e12c6b5914b5b30eb318d2 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).
stuartmorgan 2015/05/10 21:46:16 s/Int/int/
Eugene But (OOO till 7-30) 2015/05/11 16:54:15 Changed to 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