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

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

Issue 2040573002: [Offlining] Updates the tab helper to use the async OfflinePageModel API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address jianli's nits. Created 4 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/android/offline_pages/offline_page_tab_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/offline_pages/offline_page_tab_helper.h
diff --git a/chrome/browser/android/offline_pages/offline_page_tab_helper.h b/chrome/browser/android/offline_pages/offline_page_tab_helper.h
index f14aec4ab0de02dd793c51f67dfe293c9f2788cf..b63505107fe6f63bfd09cec8fcb4f18ddc09fc8c 100644
--- a/chrome/browser/android/offline_pages/offline_page_tab_helper.h
+++ b/chrome/browser/android/offline_pages/offline_page_tab_helper.h
@@ -27,6 +27,8 @@ class OfflinePageTabHelper :
private:
friend class content::WebContentsUserData<OfflinePageTabHelper>;
friend class OfflinePageTabHelperTest;
+ FRIEND_TEST_ALL_PREFIXES(OfflinePageTabHelperTest,
+ NewNavigationCancelsPendingRedirects);
explicit OfflinePageTabHelper(content::WebContents* web_contents);
@@ -36,6 +38,12 @@ class OfflinePageTabHelper :
void DidFinishNavigation(
content::NavigationHandle* navigation_handle) override;
+ void GotRedirectURLForSupportedErrorCode(ui::PageTransition transition,
+ const GURL& from_url,
+ const GURL& redirect_url);
+ void GotRedirectURLForStartedNavigation(const GURL& from_url,
+ const GURL& redirect_url);
+
void Redirect(const GURL& from_url, const GURL& to_url);
base::WeakPtrFactory<OfflinePageTabHelper> weak_ptr_factory_;
« no previous file with comments | « no previous file | chrome/browser/android/offline_pages/offline_page_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698