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

Side by Side Diff: chrome/browser/net/net_error_tab_helper.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: Update button color for "Show all saved pages" per UI review 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/android/tab_android.cc ('k') | chrome/browser/net/net_error_tab_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_NET_NET_ERROR_TAB_HELPER_H_ 5 #ifndef CHROME_BROWSER_NET_NET_ERROR_TAB_HELPER_H_
6 #define CHROME_BROWSER_NET_NET_ERROR_TAB_HELPER_H_ 6 #define CHROME_BROWSER_NET_NET_ERROR_TAB_HELPER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 // Sanitizes |url| and shows a dialog for it. 98 // Sanitizes |url| and shows a dialog for it.
99 void RunNetworkDiagnostics(const GURL& url); 99 void RunNetworkDiagnostics(const GURL& url);
100 100
101 // Shows the diagnostics dialog after its been sanitized, virtual for 101 // Shows the diagnostics dialog after its been sanitized, virtual for
102 // testing. 102 // testing.
103 virtual void RunNetworkDiagnosticsHelper(const std::string& sanitized_url); 103 virtual void RunNetworkDiagnosticsHelper(const std::string& sanitized_url);
104 104
105 // Relates to offline pages handling. 105 // Relates to offline pages handling.
106 #if defined(OS_ANDROID) 106 #if defined(OS_ANDROID)
107 void SetHasOfflinePages(content::RenderFrameHost* render_frame_host); 107 void SetOfflinePageInfo(content::RenderFrameHost* render_frame_host,
108 const GURL& url);
108 void ShowOfflinePages(); 109 void ShowOfflinePages();
109 #endif 110 void LoadOfflineCopy(const GURL& url);
111 bool IsFromErrorPage() const;
112 #endif // defined(OS_ANDROID)
110 113
111 // True if the last provisional load that started was for an error page. 114 // True if the last provisional load that started was for an error page.
112 bool is_error_page_; 115 bool is_error_page_;
113 116
114 // True if the helper has seen a main frame page load fail with a DNS error, 117 // True if the helper has seen a main frame page load fail with a DNS error,
115 // but has not yet seen a new page commit successfully afterwards. 118 // but has not yet seen a new page commit successfully afterwards.
116 bool dns_error_active_; 119 bool dns_error_active_;
117 120
118 // True if the helper has seen an error page commit while |dns_error_active_| 121 // True if the helper has seen an error page commit while |dns_error_active_|
119 // is true. (This should never be true if |dns_error_active_| is false.) 122 // is true. (This should never be true if |dns_error_active_| is false.)
(...skipping 12 matching lines...) Expand all
132 BooleanPrefMember resolve_errors_with_web_service_; 135 BooleanPrefMember resolve_errors_with_web_service_;
133 136
134 base::WeakPtrFactory<NetErrorTabHelper> weak_factory_; 137 base::WeakPtrFactory<NetErrorTabHelper> weak_factory_;
135 138
136 DISALLOW_COPY_AND_ASSIGN(NetErrorTabHelper); 139 DISALLOW_COPY_AND_ASSIGN(NetErrorTabHelper);
137 }; 140 };
138 141
139 } // namespace chrome_browser_net 142 } // namespace chrome_browser_net
140 143
141 #endif // CHROME_BROWSER_NET_NET_ERROR_TAB_HELPER_H_ 144 #endif // CHROME_BROWSER_NET_NET_ERROR_TAB_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/tab_android.cc ('k') | chrome/browser/net/net_error_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698