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 | 9 |
10 #include "base/android/jni_weak_ref.h" | 10 #include "base/android/jni_weak_ref.h" |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 Profile* GetProfile() const; | 115 Profile* GetProfile() const; |
116 browser_sync::SyncedTabDelegate* GetSyncedTabDelegate() const; | 116 browser_sync::SyncedTabDelegate* GetSyncedTabDelegate() const; |
117 | 117 |
118 void SetWindowSessionID(SessionID::id_type window_id); | 118 void SetWindowSessionID(SessionID::id_type window_id); |
119 void SetSyncId(int sync_id); | 119 void SetSyncId(int sync_id); |
120 | 120 |
121 void HandlePopupNavigation(chrome::NavigateParams* params); | 121 void HandlePopupNavigation(chrome::NavigateParams* params); |
122 | 122 |
123 bool HasPrerenderedUrl(GURL gurl); | 123 bool HasPrerenderedUrl(GURL gurl); |
124 | 124 |
125 void OnRendererUnresponsive(JNIEnv* env, jobject obj); | |
126 void OnRendererResponsive(JNIEnv* env, jobject obj); | |
127 | |
128 void MakeLoadURLParams( | 125 void MakeLoadURLParams( |
129 chrome::NavigateParams* params, | 126 chrome::NavigateParams* params, |
130 content::NavigationController::LoadURLParams* load_url_params); | 127 content::NavigationController::LoadURLParams* load_url_params); |
131 | 128 |
132 // Overridden from CoreTabHelperDelegate: | 129 // Overridden from CoreTabHelperDelegate: |
133 void SwapTabContents(content::WebContents* old_contents, | 130 void SwapTabContents(content::WebContents* old_contents, |
134 content::WebContents* new_contents, | 131 content::WebContents* new_contents, |
135 bool did_start_load, | 132 bool did_start_load, |
136 bool did_finish_load) override; | 133 bool did_finish_load) override; |
137 | 134 |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 scoped_ptr<content::WebContents> web_contents_; | 257 scoped_ptr<content::WebContents> web_contents_; |
261 scoped_ptr<chrome::android::ChromeWebContentsDelegateAndroid> | 258 scoped_ptr<chrome::android::ChromeWebContentsDelegateAndroid> |
262 web_contents_delegate_; | 259 web_contents_delegate_; |
263 | 260 |
264 scoped_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; | 261 scoped_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; |
265 | 262 |
266 DISALLOW_COPY_AND_ASSIGN(TabAndroid); | 263 DISALLOW_COPY_AND_ASSIGN(TabAndroid); |
267 }; | 264 }; |
268 | 265 |
269 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ | 266 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ |
OLD | NEW |