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

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

Issue 2337363002: Load live version when reloading an offline page on connected network (Closed)
Patch Set: Rebase again Created 4 years, 3 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 5e74803cb26fae1be1b8cfe8b4312c1d3c0864b7..fb69cbf920025baad3560fc4526498e1ad435ad8 100644
--- a/chrome/browser/android/offline_pages/offline_page_utils.h
+++ b/chrome/browser/android/offline_pages/offline_page_utils.h
@@ -17,6 +17,7 @@ class WebContents;
}
namespace offline_pages {
+struct OfflinePageHeader;
struct OfflinePageItem;
class OfflinePageUtils {
@@ -61,6 +62,11 @@ class OfflinePageUtils {
static const OfflinePageItem* GetOfflinePageFromWebContents(
content::WebContents* web_contents);
+ // Gets the offline header provided when loading the offline page for the
+ // given web contents.
+ static const OfflinePageHeader* GetOfflineHeaderFromWebContents(
+ content::WebContents* web_contents);
+
// Gets an Android Tab ID from a tab containing |web_contents|. Returns false,
// when tab is not available. Returns true otherwise and sets |tab_id| to the
// ID of the tab.

Powered by Google App Engine
This is Rietveld 408576698