| 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 11455ff2dc72407d4f5efc361127975f7982e138..b7a584841ddc253bf572622ac41d72ee969e1b2e 100644
|
| --- a/chrome/browser/android/offline_pages/offline_page_utils.h
|
| +++ b/chrome/browser/android/offline_pages/offline_page_utils.h
|
| @@ -24,6 +24,17 @@ class OfflinePageUtils {
|
| // Returns true if |url| might point to an offline page.
|
| static bool MightBeOfflineURL(const GURL& url);
|
|
|
| + // Returns via callback an offline page saved for |online_url|, if any. The
|
| + // page is chosen based on creation date; a more recently created offline
|
| + // page will be preferred over an older one. The offline page captured from
|
| + // last visit in the tab will not be considered if its tab id does not match
|
| + // the provided |tab_id|.
|
| + static void SelectPageForOnlineURL(
|
| + content::BrowserContext* browser_context,
|
| + const GURL& online_url,
|
| + int tab_id,
|
| + const base::Callback<void(const OfflinePageItem*)>& callback);
|
| +
|
| // Gets an online URL of an offline page with |offline_url| if one exists.
|
| // Deprecated. Use |GetOnlineURLForOfflineURL|.
|
| static GURL MaybeGetOnlineURLForOfflineURL(
|
|
|