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

Unified Diff: chrome/browser/android/offline_pages/offline_page_utils.h

Issue 2713013002: Track original URL when downloading a redirected page (Closed)
Patch Set: Update BUILD.gn to fix DEP check in analyze Created 3 years, 10 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
Index: chrome/browser/android/offline_pages/offline_page_utils.h
diff --git a/chrome/browser/android/offline_pages/offline_page_utils.h b/chrome/browser/android/offline_pages/offline_page_utils.h
index 85f61b60c5a7acc47e4c42aedf73f8134e9c1531..f2231957ff4e586567fd3d95dbdf2f5eeb0dc424 100644
--- a/chrome/browser/android/offline_pages/offline_page_utils.h
+++ b/chrome/browser/android/offline_pages/offline_page_utils.h
@@ -9,8 +9,7 @@
#include "base/callback.h"
#include "components/offline_pages/core/offline_page_model.h"
-
-class GURL;
+#include "url/gurl.h"
namespace base {
class Time;
@@ -95,6 +94,10 @@ class OfflinePageUtils {
static void StartOfflinePageDownload(content::BrowserContext* context,
const GURL& url);
+
+ // Returns original URL of the given web contents. Empty URL is returned if
+ // no redirect occurred.
+ static GURL GetOriginalURLFromWebContents(content::WebContents* web_contents);
};
} // namespace offline_pages

Powered by Google App Engine
This is Rietveld 408576698