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

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

Issue 213823004: Calls FireRefreshTokenRevoked if an account is removed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 months 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // Called to notify observers when a refresh token is available. 99 // Called to notify observers when a refresh token is available.
100 virtual void FireRefreshTokenAvailable( 100 virtual void FireRefreshTokenAvailable(
101 const std::string& account_id) OVERRIDE; 101 const std::string& account_id) OVERRIDE;
102 // Called to notify observers when a refresh token has been revoked. 102 // Called to notify observers when a refresh token has been revoked.
103 virtual void FireRefreshTokenRevoked(const std::string& account_id) OVERRIDE; 103 virtual void FireRefreshTokenRevoked(const std::string& account_id) OVERRIDE;
104 // Called to notify observers when refresh tokans have been loaded. 104 // Called to notify observers when refresh tokans have been loaded.
105 virtual void FireRefreshTokensLoaded() OVERRIDE; 105 virtual void FireRefreshTokensLoaded() OVERRIDE;
106 106
107 private: 107 private:
108 base::android::ScopedJavaGlobalRef<jobject> java_ref_; 108 base::android::ScopedJavaGlobalRef<jobject> java_ref_;
109 std::vector<std::string> current_accounts_;
109 110
110 DISALLOW_COPY_AND_ASSIGN(AndroidProfileOAuth2TokenService); 111 DISALLOW_COPY_AND_ASSIGN(AndroidProfileOAuth2TokenService);
111 }; 112 };
112 113
113 #endif // CHROME_BROWSER_SIGNIN_ANDROID_PROFILE_OAUTH2_TOKEN_SERVICE_H_ 114 #endif // CHROME_BROWSER_SIGNIN_ANDROID_PROFILE_OAUTH2_TOKEN_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698