OLD | NEW |
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 package org.chromium.blimp.auth; | 5 package org.chromium.blimp.app.auth; |
6 | 6 |
7 import android.content.Intent; | 7 import android.content.Intent; |
8 | 8 |
9 import com.google.android.gms.common.ConnectionResult; | 9 import com.google.android.gms.common.ConnectionResult; |
10 | 10 |
11 /** | 11 /** |
12 * Interface for an object that can asynchronously retrieve and invalidate user
authentication | 12 * Interface for an object that can asynchronously retrieve and invalidate user
authentication |
13 * tokens. | 13 * tokens. |
14 */ | 14 */ |
15 public interface TokenSource { | 15 public interface TokenSource { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 int tokenIsInvalid(String token); | 80 int tokenIsInvalid(String token); |
81 | 81 |
82 /** | 82 /** |
83 * Notifies this {@link TokenSource} of a response from the {@link Intent} s
ent through | 83 * Notifies this {@link TokenSource} of a response from the {@link Intent} s
ent through |
84 * {@link Callback#onNeedsAccountToBeSelected(Intent)}. The selected accoun
t will be parsed and | 84 * {@link Callback#onNeedsAccountToBeSelected(Intent)}. The selected accoun
t will be parsed and |
85 * saved. This won't automatically trigger another {@link #getToken()} atte
mpt. | 85 * saved. This won't automatically trigger another {@link #getToken()} atte
mpt. |
86 * @param data The response {@link Intent} data. | 86 * @param data The response {@link Intent} data. |
87 */ | 87 */ |
88 void onAccountSelected(Intent data); | 88 void onAccountSelected(Intent data); |
89 } | 89 } |
OLD | NEW |