| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_SIGNIN_CORE_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_H_ | 5 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_H_ |
| 6 #define COMPONENTS_SIGNIN_CORE_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_H_ | 6 #define COMPONENTS_SIGNIN_CORE_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" |
| 10 #include "base/memory/linked_ptr.h" | 11 #include "base/memory/linked_ptr.h" |
| 11 #include "components/keyed_service/core/keyed_service.h" | 12 #include "components/keyed_service/core/keyed_service.h" |
| 12 #include "google_apis/gaia/oauth2_token_service.h" | 13 #include "google_apis/gaia/oauth2_token_service.h" |
| 13 #include "google_apis/gaia/oauth2_token_service_delegate.h" | 14 #include "google_apis/gaia/oauth2_token_service_delegate.h" |
| 14 #include "net/base/backoff_entry.h" | 15 #include "net/base/backoff_entry.h" |
| 15 | 16 |
| 16 // ProfileOAuth2TokenService is a KeyedService that retrieves | 17 // ProfileOAuth2TokenService is a KeyedService that retrieves |
| 17 // OAuth2 access tokens for a given set of scopes using the OAuth2 login | 18 // OAuth2 access tokens for a given set of scopes using the OAuth2 login |
| 18 // refresh tokens. | 19 // refresh tokens. |
| 19 // | 20 // |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 const net::BackoffEntry* GetDelegateBackoffEntry(); | 61 const net::BackoffEntry* GetDelegateBackoffEntry(); |
| 61 | 62 |
| 62 private: | 63 private: |
| 63 void OnRefreshTokenAvailable(const std::string& account_id) override; | 64 void OnRefreshTokenAvailable(const std::string& account_id) override; |
| 64 void OnRefreshTokenRevoked(const std::string& account_id) override; | 65 void OnRefreshTokenRevoked(const std::string& account_id) override; |
| 65 | 66 |
| 66 DISALLOW_COPY_AND_ASSIGN(ProfileOAuth2TokenService); | 67 DISALLOW_COPY_AND_ASSIGN(ProfileOAuth2TokenService); |
| 67 }; | 68 }; |
| 68 | 69 |
| 69 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_H_ | 70 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_H_ |
| OLD | NEW |