OLD | NEW |
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_ANDROID_TAB_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ |
6 #define CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ | 6 #define CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 bool HasPrerenderedUrl(GURL gurl); | 121 bool HasPrerenderedUrl(GURL gurl); |
122 | 122 |
123 void MakeLoadURLParams( | 123 void MakeLoadURLParams( |
124 chrome::NavigateParams* params, | 124 chrome::NavigateParams* params, |
125 content::NavigationController::LoadURLParams* load_url_params); | 125 content::NavigationController::LoadURLParams* load_url_params); |
126 | 126 |
127 bool HasOfflinePages() const; | 127 bool HasOfflinePages() const; |
128 void ShowOfflinePages(); | 128 void ShowOfflinePages(); |
129 void LoadOfflineCopy(const GURL& url); | 129 void LoadOfflineCopy(const GURL& url); |
130 | 130 |
131 void OnLoFiResponseReceived(); | 131 // Notifies this TabAndroid that a Lo-Fi response has been received. The |
| 132 // TabAndroid then handles showing Lo-Fi UI if this is the first Lo-Fi |
| 133 // response for a page load. |is_preview| indicates whether the response was a |
| 134 // Lo-Fi preview response. |
| 135 void OnLoFiResponseReceived(bool is_preview); |
132 | 136 |
133 // Overridden from CoreTabHelperDelegate: | 137 // Overridden from CoreTabHelperDelegate: |
134 void SwapTabContents(content::WebContents* old_contents, | 138 void SwapTabContents(content::WebContents* old_contents, |
135 content::WebContents* new_contents, | 139 content::WebContents* new_contents, |
136 bool did_start_load, | 140 bool did_start_load, |
137 bool did_finish_load) override; | 141 bool did_finish_load) override; |
138 | 142 |
139 // Overridden from InstantServiceObserver: | 143 // Overridden from InstantServiceObserver: |
140 void DefaultSearchProviderChanged( | 144 void DefaultSearchProviderChanged( |
141 bool google_base_url_domain_changed) override; | 145 bool google_base_url_domain_changed) override; |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 scoped_ptr<content::WebContents> web_contents_; | 284 scoped_ptr<content::WebContents> web_contents_; |
281 scoped_ptr<chrome::android::TabWebContentsDelegateAndroid> | 285 scoped_ptr<chrome::android::TabWebContentsDelegateAndroid> |
282 web_contents_delegate_; | 286 web_contents_delegate_; |
283 | 287 |
284 scoped_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; | 288 scoped_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; |
285 | 289 |
286 DISALLOW_COPY_AND_ASSIGN(TabAndroid); | 290 DISALLOW_COPY_AND_ASSIGN(TabAndroid); |
287 }; | 291 }; |
288 | 292 |
289 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ | 293 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ |
OLD | NEW |