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..838c4429f349d9c1428c13ba6f9f261269cda5d4 100644 |
--- a/chrome/browser/android/offline_pages/offline_page_tab_helper.h |
+++ b/chrome/browser/android/offline_pages/offline_page_tab_helper.h |
@@ -9,6 +9,7 @@ |
#include "base/memory/weak_ptr.h" |
#include "content/public/browser/web_contents_observer.h" |
#include "content/public/browser/web_contents_user_data.h" |
+#include "net/base/net_errors.h" |
jianli
2016/06/04 00:27:20
Why is this needed?
dewittj
2016/06/06 16:53:15
Done.
|
#include "url/gurl.h" |
namespace content { |
@@ -27,6 +28,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 +39,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_; |