Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Side by Side Diff: chrome/browser/ui/android/infobars/account_chooser_infobar.h

Issue 1150193004: Straighten up life cycle of native InfoBar pointers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed unrelated file Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 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_UI_ANDROID_INFOBARS_ACCOUNT_CHOOSER_INFOBAR_H_ 5 #ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_ACCOUNT_CHOOSER_INFOBAR_H_
6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_ACCOUNT_CHOOSER_INFOBAR_H_ 6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_ACCOUNT_CHOOSER_INFOBAR_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 15 matching lines...) Expand all
26 jobject obj, 26 jobject obj,
27 jint credential_item, 27 jint credential_item,
28 jint credential_type); 28 jint credential_type);
29 29
30 private: 30 private:
31 // InfoBarAndroid: 31 // InfoBarAndroid:
32 base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar( 32 base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar(
33 JNIEnv* env) override; 33 JNIEnv* env) override;
34 void ProcessButton(int action, const std::string& action_value) override; 34 void ProcessButton(int action, const std::string& action_value) override;
35 AccountChooserInfoBarDelegateAndroid* GetDelegate(); 35 AccountChooserInfoBarDelegateAndroid* GetDelegate();
36 void SetJavaInfoBar(
37 const base::android::JavaRef<jobject>& java_info_bar) override;
36 38
37 DISALLOW_COPY_AND_ASSIGN(AccountChooserInfoBar); 39 DISALLOW_COPY_AND_ASSIGN(AccountChooserInfoBar);
38 }; 40 };
39 41
40 // Registers native methods. 42 // Registers native methods.
41 bool RegisterAccountChooserInfoBar(JNIEnv* env); 43 bool RegisterAccountChooserInfoBar(JNIEnv* env);
42 44
43 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_ACCOUNT_CHOOSER_INFOBAR_H_ 45 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_ACCOUNT_CHOOSER_INFOBAR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698