Chromium Code Reviews| Index: chrome/browser/ui/android/snackbars/auto_signin_snackbar_controller.h |
| diff --git a/chrome/browser/ui/android/snackbars/auto_signin_snackbar_controller.h b/chrome/browser/ui/android/snackbars/auto_signin_snackbar_controller.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..2807b8494ab07c8a9a1eaac04ec87f6f523aa180 |
| --- /dev/null |
| +++ b/chrome/browser/ui/android/snackbars/auto_signin_snackbar_controller.h |
| @@ -0,0 +1,35 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file |
| + |
| +#ifndef CHROME_BROWSER_UI_ANDROID_SNACKBARS_AUTO_SIGNIN_SNACKBAR_CONTROLLER_H_ |
| +#define CHROME_BROWSER_UI_ANDROID_SNACKBARS_AUTO_SIGNIN_SNACKBAR_CONTROLLER_H_ |
| + |
| +#include <jni.h> |
| + |
| +#include "base/android/scoped_java_ref.h" |
| +#include "base/strings/string16.h" |
| + |
| +namespace autofill { |
| +struct PasswordForm; |
| +} |
| + |
| +class TabAndroid; |
| + |
| +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.
|
| +public: |
| + explicit AutoSigninSnackbarController(TabAndroid *tab); |
| + ~AutoSigninSnackbarController(); |
| + |
| + void onShow(const base::string16 &username); |
| + |
| + void Destroy(JNIEnv *env, jobject obj); |
| + |
| +private: |
| + base::android::ScopedJavaGlobalRef<jobject> java_snackbar_controller_; |
| +}; |
| + |
| +// Registers native methods. |
| +bool RegisterAutoSigninSnackbarController(JNIEnv *env); |
| + |
| +#endif // CHROME_BROWSER_UI_ANDROID_SNACKBARS_AUTO_SIGNIN_SNACKBAR_CONTROLLER_H_ |