Chromium Code Reviews| Index: chrome/browser/ui/android/snackbars/auto_signin_snackbar_controller_helper.h |
| diff --git a/chrome/browser/ui/android/snackbars/auto_signin_snackbar_controller_helper.h b/chrome/browser/ui/android/snackbars/auto_signin_snackbar_controller_helper.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f6f00eb1a668ea408f767b5e95356575482c1b51 |
| --- /dev/null |
| +++ b/chrome/browser/ui/android/snackbars/auto_signin_snackbar_controller_helper.h |
| @@ -0,0 +1,23 @@ |
| +// 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_HELPER_H_ |
|
newt (away)
2015/08/21 16:47:32
How about naming this auto_signin_snackbar.h or au
melandory
2015/08/21 19:04:10
Done.
|
| +#define CHROME_BROWSER_UI_ANDROID_SNACKBARS_AUTO_SIGNIN_SNACKBAR_CONTROLLER_HELPER_H_ |
| + |
| +#include <jni.h> |
| + |
| +#include "base/strings/string16.h" |
| + |
| +class TabAndroid; |
| + |
| +// Shows an auto sign-in snackbar in order to inform the users that they were |
| +// automatically signed in to the website. |username| is the username used by |
| +// the user in order to login to the web site, it can be email, telephone number |
| +// or any string. |
| +void ShowAutoSigninSnackbar(TabAndroid *tab, const base::string16& username); |
| + |
| +// Register native method. |
| +bool RegisterAutoSigninSnackbarControllerHelper(JNIEnv* env); |
| + |
| +#endif // CHROME_BROWSER_UI_ANDROID_SNACKBARS_AUTO_SIGNIN_SNACKBAR_CONTROLLER_HELPER_H_ |