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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 | 129 |
130 void SetWindowSessionID(SessionID::id_type window_id); | 130 void SetWindowSessionID(SessionID::id_type window_id); |
131 void SetSyncId(int sync_id); | 131 void SetSyncId(int sync_id); |
132 | 132 |
133 void HandlePopupNavigation(chrome::NavigateParams* params); | 133 void HandlePopupNavigation(chrome::NavigateParams* params); |
134 | 134 |
135 bool HasPrerenderedUrl(GURL gurl); | 135 bool HasPrerenderedUrl(GURL gurl); |
136 | 136 |
137 void ShowOfflinePages(); | 137 void ShowOfflinePages(); |
138 | 138 |
139 // Notifies this TabAndroid that a Lo-Fi response has been received. The | |
140 // TabAndroid then handles showing Lo-Fi UI if this is the first Lo-Fi | |
141 // response for a page load. |is_preview| indicates whether the response was a | |
142 // Lo-Fi preview response. | |
143 void OnLoFiResponseReceived(bool is_preview); | |
144 | |
145 // Overridden from CoreTabHelperDelegate: | 139 // Overridden from CoreTabHelperDelegate: |
146 void SwapTabContents(content::WebContents* old_contents, | 140 void SwapTabContents(content::WebContents* old_contents, |
147 content::WebContents* new_contents, | 141 content::WebContents* new_contents, |
148 bool did_start_load, | 142 bool did_start_load, |
149 bool did_finish_load) override; | 143 bool did_finish_load) override; |
150 | 144 |
151 // Overridden from InstantServiceObserver: | 145 // Overridden from InstantServiceObserver: |
152 void DefaultSearchProviderChanged( | 146 void DefaultSearchProviderChanged( |
153 bool google_base_url_domain_changed) override; | 147 bool google_base_url_domain_changed) override; |
154 | 148 |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 web_contents_delegate_; | 296 web_contents_delegate_; |
303 | 297 |
304 std::unique_ptr<blimp::client::BlimpContents> blimp_contents_; | 298 std::unique_ptr<blimp::client::BlimpContents> blimp_contents_; |
305 | 299 |
306 std::unique_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; | 300 std::unique_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; |
307 | 301 |
308 DISALLOW_COPY_AND_ASSIGN(TabAndroid); | 302 DISALLOW_COPY_AND_ASSIGN(TabAndroid); |
309 }; | 303 }; |
310 | 304 |
311 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ | 305 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ |
OLD | NEW |