Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_ANDROID_SNACKBARS_AUTO_SIGNIN_SNACKBAR_CONTROLLER_H_ | |
| 6 #define CHROME_BROWSER_UI_ANDROID_SNACKBARS_AUTO_SIGNIN_SNACKBAR_CONTROLLER_H_ | |
| 7 | |
| 8 #include <jni.h> | |
| 9 | |
| 10 #include "base/android/scoped_java_ref.h" | |
| 11 #include "base/strings/string16.h" | |
| 12 | |
| 13 namespace autofill { | |
| 14 struct PasswordForm; | |
| 15 } | |
| 16 | |
| 17 class TabAndroid; | |
| 18 | |
| 19 class AutoSigninSnackbarController { | |
|
newt (away)
2015/08/21 05:40:39
It appears you don't actually need a native AutoSi
melandory
2015/08/21 09:41:15
Done.
| |
| 20 public: | |
| 21 explicit AutoSigninSnackbarController(TabAndroid *tab); | |
| 22 ~AutoSigninSnackbarController(); | |
| 23 | |
| 24 void onShow(const base::string16 &username); | |
| 25 | |
| 26 void Destroy(JNIEnv *env, jobject obj); | |
| 27 | |
| 28 private: | |
| 29 base::android::ScopedJavaGlobalRef<jobject> java_snackbar_controller_; | |
| 30 }; | |
| 31 | |
| 32 // Registers native methods. | |
| 33 bool RegisterAutoSigninSnackbarController(JNIEnv *env); | |
| 34 | |
| 35 #endif // CHROME_BROWSER_UI_ANDROID_SNACKBARS_AUTO_SIGNIN_SNACKBAR_CONTROLLER_H_ | |
| OLD | NEW |