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

Side by Side Diff: chrome/browser/signin/android_profile_oauth2_token_service.h

Issue 63253003: Fix issues with token refresh in AccountReconcilor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wip 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
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_SIGNIN_ANDROID_PROFILE_OAUTH2_TOKEN_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SIGNIN_ANDROID_PROFILE_OAUTH2_TOKEN_SERVICE_H_
6 #define CHROME_BROWSER_SIGNIN_ANDROID_PROFILE_OAUTH2_TOKEN_SERVICE_H_ 6 #define CHROME_BROWSER_SIGNIN_ANDROID_PROFILE_OAUTH2_TOKEN_SERVICE_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 29 matching lines...) Expand all
40 const std::string& account_id) OVERRIDE; 40 const std::string& account_id) OVERRIDE;
41 41
42 // Lists account IDs of all accounts with a refresh token. 42 // Lists account IDs of all accounts with a refresh token.
43 virtual std::vector<std::string> GetAccounts() OVERRIDE; 43 virtual std::vector<std::string> GetAccounts() OVERRIDE;
44 44
45 void ValidateAccounts(JNIEnv* env, 45 void ValidateAccounts(JNIEnv* env,
46 jobject obj, 46 jobject obj,
47 jobjectArray accounts, 47 jobjectArray accounts,
48 jstring current_account); 48 jstring current_account);
49 49
50 // Takes a the signed in sync account as well as all the other
51 // android account ids and check the token status of each.
52 void ValidateAccounts(const std::string& signed_in_account,
53 const std::vector<std::string>& account_ids);
54
50 // Triggers a notification to all observers of the OAuth2TokenService that a 55 // Triggers a notification to all observers of the OAuth2TokenService that a
51 // refresh token is now available. This may cause observers to retry 56 // refresh token is now available. This may cause observers to retry
52 // operations that require authentication. 57 // operations that require authentication.
53 virtual void FireRefreshTokenAvailableFromJava(JNIEnv* env, 58 virtual void FireRefreshTokenAvailableFromJava(JNIEnv* env,
54 jobject obj, 59 jobject obj,
55 const jstring account_name); 60 const jstring account_name);
56 // Triggers a notification to all observers of the OAuth2TokenService that a 61 // Triggers a notification to all observers of the OAuth2TokenService that a
57 // refresh token is now available. 62 // refresh token is now available.
58 virtual void FireRefreshTokenRevokedFromJava(JNIEnv* env, 63 virtual void FireRefreshTokenRevokedFromJava(JNIEnv* env,
59 jobject obj, 64 jobject obj,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // Called to notify observers when refresh tokans have been loaded. 96 // Called to notify observers when refresh tokans have been loaded.
92 virtual void FireRefreshTokensLoaded() OVERRIDE; 97 virtual void FireRefreshTokensLoaded() OVERRIDE;
93 98
94 private: 99 private:
95 base::android::ScopedJavaGlobalRef<jobject> java_ref_; 100 base::android::ScopedJavaGlobalRef<jobject> java_ref_;
96 101
97 DISALLOW_COPY_AND_ASSIGN(AndroidProfileOAuth2TokenService); 102 DISALLOW_COPY_AND_ASSIGN(AndroidProfileOAuth2TokenService);
98 }; 103 };
99 104
100 #endif // CHROME_BROWSER_SIGNIN_ANDROID_PROFILE_OAUTH2_TOKEN_SERVICE_H_ 105 #endif // CHROME_BROWSER_SIGNIN_ANDROID_PROFILE_OAUTH2_TOKEN_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/signin/account_reconcilor.cc ('k') | chrome/browser/signin/android_profile_oauth2_token_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698