| OLD | NEW |
| 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_ANDROID_SIGNIN_SIGNIN_MANAGER_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_SIGNIN_SIGNIN_MANAGER_ANDROID_H_ |
| 6 #define CHROME_BROWSER_ANDROID_SIGNIN_SIGNIN_MANAGER_ANDROID_H_ | 6 #define CHROME_BROWSER_ANDROID_SIGNIN_SIGNIN_MANAGER_ANDROID_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 // Registers the SigninManagerAndroid's native methods through JNI. | 36 // Registers the SigninManagerAndroid's native methods through JNI. |
| 37 static bool Register(JNIEnv* env); | 37 static bool Register(JNIEnv* env); |
| 38 | 38 |
| 39 void CheckPolicyBeforeSignIn(JNIEnv* env, jobject obj, jstring username); | 39 void CheckPolicyBeforeSignIn(JNIEnv* env, jobject obj, jstring username); |
| 40 | 40 |
| 41 void FetchPolicyBeforeSignIn(JNIEnv* env, jobject obj); | 41 void FetchPolicyBeforeSignIn(JNIEnv* env, jobject obj); |
| 42 | 42 |
| 43 // Indicates that the user has made the choice to sign-in. |username| | 43 // Indicates that the user has made the choice to sign-in. |username| |
| 44 // contains the email address of the account to use as primary. | 44 // contains the email address of the account to use as primary. |
| 45 // |accountIds| and |accoundNames| are two arrays of equal length: one | 45 void OnSignInCompleted(JNIEnv* env, jobject obj, jstring username); |
| 46 // containing strings of stable account ids and the other containing | |
| 47 // strings of account names (or emails). An account id corresponds | |
| 48 // with the account name at the same position in the array. | |
| 49 void OnSignInCompleted(JNIEnv* env, jobject obj, jstring username, | |
| 50 jobjectArray accountIds, jobjectArray accountNames); | |
| 51 | 46 |
| 52 void SignOut(JNIEnv* env, jobject obj); | 47 void SignOut(JNIEnv* env, jobject obj); |
| 53 | 48 |
| 54 base::android::ScopedJavaLocalRef<jstring> GetManagementDomain(JNIEnv* env, | 49 base::android::ScopedJavaLocalRef<jstring> GetManagementDomain(JNIEnv* env, |
| 55 jobject obj); | 50 jobject obj); |
| 56 | 51 |
| 57 void WipeProfileData(JNIEnv* env, jobject obj); | 52 void WipeProfileData(JNIEnv* env, jobject obj); |
| 58 | 53 |
| 59 void LogInSignedInUser(JNIEnv* env, jobject obj); | 54 void LogInSignedInUser(JNIEnv* env, jobject obj); |
| 60 | 55 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 #endif | 91 #endif |
| 97 | 92 |
| 98 PrefChangeRegistrar pref_change_registrar_; | 93 PrefChangeRegistrar pref_change_registrar_; |
| 99 | 94 |
| 100 base::WeakPtrFactory<SigninManagerAndroid> weak_factory_; | 95 base::WeakPtrFactory<SigninManagerAndroid> weak_factory_; |
| 101 | 96 |
| 102 DISALLOW_COPY_AND_ASSIGN(SigninManagerAndroid); | 97 DISALLOW_COPY_AND_ASSIGN(SigninManagerAndroid); |
| 103 }; | 98 }; |
| 104 | 99 |
| 105 #endif // CHROME_BROWSER_ANDROID_SIGNIN_SIGNIN_MANAGER_ANDROID_H_ | 100 #endif // CHROME_BROWSER_ANDROID_SIGNIN_SIGNIN_MANAGER_ANDROID_H_ |
| OLD | NEW |