Revert of Add button to add new FSP services to Files app. (patchset #8 id:140001...
[chromium-blink-merge.git] / chrome / browser / ui / android / infobars / account_chooser_infobar.h
blob07b5abb3c4c2a34611f184881d49a7933b6caa73
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.
5 #ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_ACCOUNT_CHOOSER_INFOBAR_H_
6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_ACCOUNT_CHOOSER_INFOBAR_H_
8 #include <jni.h>
10 #include <string>
12 #include "base/android/scoped_java_ref.h"
13 #include "base/macros.h"
14 #include "chrome/browser/ui/android/infobars/infobar_android.h"
16 class AccountChooserInfoBarDelegateAndroid;
18 // The Android infobar that allows user to choose credentials for login.
19 class AccountChooserInfoBar : public InfoBarAndroid {
20 public:
21 explicit AccountChooserInfoBar(
22 scoped_ptr<AccountChooserInfoBarDelegateAndroid> delegate);
23 ~AccountChooserInfoBar() override;
25 void OnCredentialClicked(JNIEnv* env,
26 jobject obj,
27 jint credential_item,
28 jint credential_type);
30 private:
31 // InfoBarAndroid:
32 base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar(
33 JNIEnv* env) override;
34 void ProcessButton(int action, const std::string& action_value) override;
35 AccountChooserInfoBarDelegateAndroid* GetDelegate();
37 DISALLOW_COPY_AND_ASSIGN(AccountChooserInfoBar);
40 // Registers native methods.
41 bool RegisterAccountChooserInfoBar(JNIEnv* env);
43 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_ACCOUNT_CHOOSER_INFOBAR_H_