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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 jobject obj, | 209 jobject obj, |
210 jobject jcontent_view_core, | 210 jobject jcontent_view_core, |
211 jboolean visible); | 211 jboolean visible); |
212 | 212 |
213 void DetachOverlayContentViewCore(JNIEnv* env, | 213 void DetachOverlayContentViewCore(JNIEnv* env, |
214 jobject obj, | 214 jobject obj, |
215 jobject jcontent_view_core); | 215 jobject jcontent_view_core); |
216 | 216 |
217 bool HasPrerenderedUrl(JNIEnv* env, jobject obj, jstring url); | 217 bool HasPrerenderedUrl(JNIEnv* env, jobject obj, jstring url); |
218 | 218 |
| 219 // Called when Credential Manager API requested to show the snackbar for the |
| 220 // |credential|. |
| 221 void ShowAutoSigninSnackbar(jobject credential); |
| 222 |
219 // Register the Tab's native methods through JNI. | 223 // Register the Tab's native methods through JNI. |
220 static bool RegisterTabAndroid(JNIEnv* env); | 224 static bool RegisterTabAndroid(JNIEnv* env); |
221 | 225 |
222 private: | 226 private: |
223 prerender::PrerenderManager* GetPrerenderManager() const; | 227 prerender::PrerenderManager* GetPrerenderManager() const; |
224 | 228 |
225 JavaObjectWeakGlobalRef weak_java_tab_; | 229 JavaObjectWeakGlobalRef weak_java_tab_; |
226 | 230 |
227 // The identifier used by session restore for this tab. | 231 // The identifier used by session restore for this tab. |
228 SessionID session_tab_id_; | 232 SessionID session_tab_id_; |
229 | 233 |
230 // Identifier of the window the tab is in. | 234 // Identifier of the window the tab is in. |
231 SessionID session_window_id_; | 235 SessionID session_window_id_; |
232 | 236 |
233 content::NotificationRegistrar notification_registrar_; | 237 content::NotificationRegistrar notification_registrar_; |
234 | 238 |
235 scoped_refptr<cc::Layer> content_layer_; | 239 scoped_refptr<cc::Layer> content_layer_; |
236 chrome::android::TabContentManager* tab_content_manager_; | 240 chrome::android::TabContentManager* tab_content_manager_; |
237 | 241 |
238 scoped_ptr<content::WebContents> web_contents_; | 242 scoped_ptr<content::WebContents> web_contents_; |
239 scoped_ptr<chrome::android::ChromeWebContentsDelegateAndroid> | 243 scoped_ptr<chrome::android::ChromeWebContentsDelegateAndroid> |
240 web_contents_delegate_; | 244 web_contents_delegate_; |
241 | 245 |
242 scoped_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; | 246 scoped_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; |
243 | 247 |
244 DISALLOW_COPY_AND_ASSIGN(TabAndroid); | 248 DISALLOW_COPY_AND_ASSIGN(TabAndroid); |
245 }; | 249 }; |
246 | 250 |
247 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ | 251 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ |
OLD | NEW |