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

Unified Diff: chrome/browser/android/tab_android.h

Issue 1442433003: Add "Show saved copy" button in dino page when there's offline copy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix trybots Created 5 years, 1 month 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/tab_android.h
diff --git a/chrome/browser/android/tab_android.h b/chrome/browser/android/tab_android.h
index ccf65d0149b942fb22eb1518e3c650dfafd018c8..34cf5e298cadc247960adae61159e35f040d2a41 100644
--- a/chrome/browser/android/tab_android.h
+++ b/chrome/browser/android/tab_android.h
@@ -127,7 +127,9 @@ class TabAndroid : public CoreTabHelperDelegate,
content::NavigationController::LoadURLParams* load_url_params);
bool HasOfflinePages() const;
+ bool HasOfflineCopyForCurrentPage() const;
void ShowOfflinePages();
+ void LoadOfflineCopy(const GURL& url);
// Overridden from CoreTabHelperDelegate:
void SwapTabContents(content::WebContents* old_contents,
@@ -240,8 +242,12 @@ class TabAndroid : public CoreTabHelperDelegate,
private:
prerender::PrerenderManager* GetPrerenderManager() const;
+ int64_t GetBookmarkIdHelper(bool only_editable) const;
+
const offline_pages::OfflinePageItem* GetOfflinePage(const GURL& url) const;
+ bool IsFromErrorPage() const;
+
JavaObjectWeakGlobalRef weak_java_tab_;
// The identifier used by session restore for this tab.

Powered by Google App Engine
This is Rietveld 408576698