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

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

Issue 2713013002: Track original URL when downloading a redirected page (Closed)
Patch Set: A little update 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..08a4fcfeb64290d7f62efe73cbd1835293a4d833 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 the original of the given web contents. Empty URL is returned if
fgorski 2017/02/27 17:34:36 nit: original URL
jianli 2017/02/27 23:20:06 Done.
+ // no redirect occurs.
fgorski 2017/02/27 17:34:36 nit: occurred.
jianli 2017/02/27 23:20:06 Done.
+ static GURL GetOriginalURLFromWebContents(content::WebContents* web_contents);
};
} // namespace offline_pages

Powered by Google App Engine
This is Rietveld 408576698