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_SIGNIN_PROFILE_OAUTH2_TOKEN_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SIGNIN_PROFILE_OAUTH2_TOKEN_SERVICE_H_ |
6 #define CHROME_BROWSER_SIGNIN_PROFILE_OAUTH2_TOKEN_SERVICE_H_ | 6 #define CHROME_BROWSER_SIGNIN_PROFILE_OAUTH2_TOKEN_SERVICE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 | 144 |
145 private: | 145 private: |
146 FRIEND_TEST_ALL_PREFIXES(MutableProfileOAuth2TokenServiceTest, | 146 FRIEND_TEST_ALL_PREFIXES(MutableProfileOAuth2TokenServiceTest, |
147 TokenServiceUpdateClearsCache); | 147 TokenServiceUpdateClearsCache); |
148 FRIEND_TEST_ALL_PREFIXES(MutableProfileOAuth2TokenServiceTest, | 148 FRIEND_TEST_ALL_PREFIXES(MutableProfileOAuth2TokenServiceTest, |
149 PersistenceDBUpgrade); | 149 PersistenceDBUpgrade); |
150 FRIEND_TEST_ALL_PREFIXES(MutableProfileOAuth2TokenServiceTest, | 150 FRIEND_TEST_ALL_PREFIXES(MutableProfileOAuth2TokenServiceTest, |
151 PersistenceLoadCredentials); | 151 PersistenceLoadCredentials); |
152 | 152 |
153 // Revokes the refresh token on the server. | 153 // Revokes the refresh token on the server. |
| 154 // |
| 155 // Note: Empty implementation as all credentials logic is being migrated to |
| 156 // MutableProfileOAuth2TokenService. |
154 virtual void RevokeCredentialsOnServer(const std::string& refresh_token); | 157 virtual void RevokeCredentialsOnServer(const std::string& refresh_token); |
155 | 158 |
156 // The profile with which this instance was initialized, or NULL. | 159 // The profile with which this instance was initialized, or NULL. |
157 Profile* profile_; | 160 Profile* profile_; |
158 | 161 |
159 // In memory refresh token store mapping account_id to refresh_token. | 162 // In memory refresh token store mapping account_id to refresh_token. |
160 AccountInfoMap refresh_tokens_; | 163 AccountInfoMap refresh_tokens_; |
161 | 164 |
162 // Used to show auth errors in the wrench menu. The SigninGlobalError is | 165 // Used to show auth errors in the wrench menu. The SigninGlobalError is |
163 // different than most GlobalErrors in that its lifetime is controlled by | 166 // different than most GlobalErrors in that its lifetime is controlled by |
164 // ProfileOAuth2TokenService (so we can expose a reference for use in the | 167 // ProfileOAuth2TokenService (so we can expose a reference for use in the |
165 // wrench menu). | 168 // wrench menu). |
166 scoped_ptr<SigninGlobalError> signin_global_error_; | 169 scoped_ptr<SigninGlobalError> signin_global_error_; |
167 | 170 |
168 DISALLOW_COPY_AND_ASSIGN(ProfileOAuth2TokenService); | 171 DISALLOW_COPY_AND_ASSIGN(ProfileOAuth2TokenService); |
169 }; | 172 }; |
170 | 173 |
171 #endif // CHROME_BROWSER_SIGNIN_PROFILE_OAUTH2_TOKEN_SERVICE_H_ | 174 #endif // CHROME_BROWSER_SIGNIN_PROFILE_OAUTH2_TOKEN_SERVICE_H_ |
OLD | NEW |