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

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

Issue 22694006: Infobar system refactor. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_AUTO_LOGIN_INFOBAR_DELEGATE_ANDROID_H _ 5 #ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_AUTO_LOGIN_INFOBAR_DELEGATE_ANDROID_H _
6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_AUTO_LOGIN_INFOBAR_DELEGATE_ANDROID_H _ 6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_AUTO_LOGIN_INFOBAR_DELEGATE_ANDROID_H _
7 7
8 #include "base/android/jni_helper.h" 8 #include "base/android/jni_helper.h"
9 #include "base/android/scoped_java_ref.h" 9 #include "base/android/scoped_java_ref.h"
10 #include "chrome/browser/ui/auto_login_infobar_delegate.h" 10 #include "chrome/browser/ui/auto_login_infobar_delegate.h"
11 11
12 class AutoLoginInfoBarDelegateAndroid : public AutoLoginInfoBarDelegate { 12 class AutoLoginInfoBarDelegateAndroid : public AutoLoginInfoBarDelegate {
13 public: 13 public:
14 AutoLoginInfoBarDelegateAndroid(InfoBarService* owner, const Params& params); 14 explicit AutoLoginInfoBarDelegateAndroid(const Params& params);
15 virtual ~AutoLoginInfoBarDelegateAndroid(); 15 virtual ~AutoLoginInfoBarDelegateAndroid();
16 16
17 // AutoLoginInfoBarDelegate: 17 // AutoLoginInfoBarDelegate:
18 virtual bool Accept() OVERRIDE; 18 virtual bool Accept() OVERRIDE;
19 virtual bool Cancel() OVERRIDE; 19 virtual bool Cancel() OVERRIDE;
20 virtual string16 GetMessageText() const OVERRIDE; 20 virtual string16 GetMessageText() const OVERRIDE;
21 21
22 // These methods are defined in downstream code. 22 // These methods are defined in downstream code.
23 bool AttachAccount(JavaObjectWeakGlobalRef weak_java_translate_helper); 23 bool AttachAccount(JavaObjectWeakGlobalRef weak_java_translate_helper);
24 void LoginSuccess(JNIEnv* env, jobject obj, jstring result); 24 void LoginSuccess(JNIEnv* env, jobject obj, jstring result);
(...skipping 10 matching lines...) Expand all
35 35
36 JavaObjectWeakGlobalRef weak_java_auto_login_delegate_; 36 JavaObjectWeakGlobalRef weak_java_auto_login_delegate_;
37 std::string user_; 37 std::string user_;
38 const Params params_; 38 const Params params_;
39 39
40 DISALLOW_COPY_AND_ASSIGN(AutoLoginInfoBarDelegateAndroid); 40 DISALLOW_COPY_AND_ASSIGN(AutoLoginInfoBarDelegateAndroid);
41 }; 41 };
42 42
43 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_AUTO_LOGIN_INFOBAR_DELEGATE_ANDROI D_H_ 43 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_AUTO_LOGIN_INFOBAR_DELEGATE_ANDROI D_H_
44 44
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698