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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_UTILS_H_ 5 #ifndef CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_UTILS_H_
6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_UTILS_H_ 6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_UTILS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "components/offline_pages/core/offline_page_model.h" 11 #include "components/offline_pages/core/offline_page_model.h"
12 12 #include "url/gurl.h"
13 class GURL;
14 13
15 namespace base { 14 namespace base {
16 class Time; 15 class Time;
17 } 16 }
18 17
19 namespace content { 18 namespace content {
20 class BrowserContext; 19 class BrowserContext;
21 class WebContents; 20 class WebContents;
22 } 21 }
23 22
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 static void CheckExistenceOfRequestsWithURL( 87 static void CheckExistenceOfRequestsWithURL(
89 content::BrowserContext* browser_context, 88 content::BrowserContext* browser_context,
90 const std::string name_space, 89 const std::string name_space,
91 const GURL& url, 90 const GURL& url,
92 const PagesExistCallback& callback); 91 const PagesExistCallback& callback);
93 92
94 static bool EqualsIgnoringFragment(const GURL& lhs, const GURL& rhs); 93 static bool EqualsIgnoringFragment(const GURL& lhs, const GURL& rhs);
95 94
96 static void StartOfflinePageDownload(content::BrowserContext* context, 95 static void StartOfflinePageDownload(content::BrowserContext* context,
97 const GURL& url); 96 const GURL& url);
97
98 // 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.
99 // no redirect occurs.
fgorski 2017/02/27 17:34:36 nit: occurred.
jianli 2017/02/27 23:20:06 Done.
100 static GURL GetOriginalURLFromWebContents(content::WebContents* web_contents);
98 }; 101 };
99 102
100 } // namespace offline_pages 103 } // namespace offline_pages
101 104
102 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_UTILS_H_ 105 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698