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 package org.chromium.chrome.browser.signin; | 5 package org.chromium.chrome.browser.signin; |
6 | 6 |
7 import android.accounts.Account; | 7 import android.accounts.Account; |
8 import android.app.Activity; | 8 import android.app.Activity; |
9 import android.content.Context; | 9 import android.content.Context; |
10 import android.os.Handler; | 10 import android.os.Handler; |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 public final Account account; | 138 public final Account account; |
139 public final Activity activity; | 139 public final Activity activity; |
140 public final SignInCallback callback; | 140 public final SignInCallback callback; |
141 | 141 |
142 /** | 142 /** |
143 * If the system accounts need to be seeded, the sign in flow will block
for that to occur. | 143 * If the system accounts need to be seeded, the sign in flow will block
for that to occur. |
144 * This boolean should be set to true during that time and then reset ba
ck to false | 144 * This boolean should be set to true during that time and then reset ba
ck to false |
145 * afterwards. This allows the manager to know if it should progress the
flow when the | 145 * afterwards. This allows the manager to know if it should progress the
flow when the |
146 * account tracker broadcasts updates. | 146 * account tracker broadcasts updates. |
147 */ | 147 */ |
148 public boolean blockedOnAccountSeeding = false; | 148 public boolean blockedOnAccountSeeding; |
149 | 149 |
150 /** | 150 /** |
151 * @param account The account to sign in to. | 151 * @param account The account to sign in to. |
152 * @param activity Reference to the UI to use for dialogs. Null means fo
rced signin. | 152 * @param activity Reference to the UI to use for dialogs. Null means fo
rced signin. |
153 * @param callback Called when the sign-in process finishes or is cancel
led. Can be null. | 153 * @param callback Called when the sign-in process finishes or is cancel
led. Can be null. |
154 */ | 154 */ |
155 public SignInState( | 155 public SignInState( |
156 Account account, @Nullable Activity activity, @Nullable SignInCa
llback callback) { | 156 Account account, @Nullable Activity activity, @Nullable SignInCa
llback callback) { |
157 this.account = account; | 157 this.account = account; |
158 this.activity = activity; | 158 this.activity = activity; |
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
671 private native void nativeFetchPolicyBeforeSignIn(long nativeSigninManagerAn
droid); | 671 private native void nativeFetchPolicyBeforeSignIn(long nativeSigninManagerAn
droid); |
672 private native void nativeAbortSignIn(long nativeSigninManagerAndroid); | 672 private native void nativeAbortSignIn(long nativeSigninManagerAndroid); |
673 private native void nativeOnSignInCompleted(long nativeSigninManagerAndroid,
String username); | 673 private native void nativeOnSignInCompleted(long nativeSigninManagerAndroid,
String username); |
674 private native void nativeSignOut(long nativeSigninManagerAndroid); | 674 private native void nativeSignOut(long nativeSigninManagerAndroid); |
675 private native String nativeGetManagementDomain(long nativeSigninManagerAndr
oid); | 675 private native String nativeGetManagementDomain(long nativeSigninManagerAndr
oid); |
676 private native void nativeWipeProfileData(long nativeSigninManagerAndroid, W
ipeDataHooks hooks); | 676 private native void nativeWipeProfileData(long nativeSigninManagerAndroid, W
ipeDataHooks hooks); |
677 private native void nativeClearLastSignedInUser(long nativeSigninManagerAndr
oid); | 677 private native void nativeClearLastSignedInUser(long nativeSigninManagerAndr
oid); |
678 private native void nativeLogInSignedInUser(long nativeSigninManagerAndroid)
; | 678 private native void nativeLogInSignedInUser(long nativeSigninManagerAndroid)
; |
679 private native boolean nativeIsSignedInOnNative(long nativeSigninManagerAndr
oid); | 679 private native boolean nativeIsSignedInOnNative(long nativeSigninManagerAndr
oid); |
680 } | 680 } |
OLD | NEW |