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

Unified Diff: ios/web/public/navigation_item.h

Issue 2578173005: Add GetOriginalRequestURL() to NavigationItem interface. (Closed)
Patch Set: fix callers Created 3 years, 11 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/navigation_item_impl_unittest.mm ('k') | ios/web/web_state/ui/crw_web_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/navigation_item.h
diff --git a/ios/web/public/navigation_item.h b/ios/web/public/navigation_item.h
index 48a62f7f1670d9851490510c0d8ed11d37207e52..305d80cbe3cda8c87320066c03df0de9b22b890f 100644
--- a/ios/web/public/navigation_item.h
+++ b/ios/web/public/navigation_item.h
@@ -38,6 +38,11 @@ class NavigationItem : public base::SupportsUserData {
// the pending entry's ID must be copied).
virtual int GetUniqueID() const = 0;
+ // The original URL for the navigation request. This may differ from GetURL()
+ // if a redirect occurs after attempting to load this original URL.
+ virtual void SetOriginalRequestURL(const GURL& url) = 0;
+ virtual const GURL& GetOriginalRequestURL() const = 0;
+
// The actual URL of the page. For some about pages, this may be a scary
// data: URL or something like that. Use GetVirtualURL() below for showing to
// the user.
« no previous file with comments | « ios/web/navigation/navigation_item_impl_unittest.mm ('k') | ios/web/web_state/ui/crw_web_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698