Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef IOS_CHROME_BROWSER_SIGNIN_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_PROVIDER_IMPL _H_ | |
| 6 #define IOS_CHROME_BROWSER_SIGNIN_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_PROVIDER_IMPL _H_ | |
| 7 | |
| 8 #include <string> | |
| 9 #include <vector> | |
| 10 | |
| 11 #include "components/signin/ios/browser/profile_oauth2_token_service_ios_provide r.h" | |
| 12 | |
| 13 // Implementation of ProfileOAuth2TokenServiceIOSProvider. | |
| 14 class ProfileOAuth2TokenServiceIOSProviderImpl | |
| 15 : public ProfileOAuth2TokenServiceIOSProvider { | |
| 16 public: | |
| 17 ProfileOAuth2TokenServiceIOSProviderImpl(); | |
| 18 ~ProfileOAuth2TokenServiceIOSProviderImpl() override; | |
| 19 | |
| 20 // ios::ProfileOAuth2TokenServiceIOSProvider | |
| 21 void GetAccessToken(const std::string& gaia_id, | |
| 22 const std::string& client_id, | |
| 23 const std::string& client_secret, | |
| 24 const std::set<std::string>& scopes, | |
| 25 const AccessTokenCallback& callback) override; | |
| 26 std::vector<AccountInfo> GetAllAccounts() const override; | |
| 27 AuthenticationErrorCategory GetAuthenticationErrorCategory( | |
| 28 const std::string& gaia_id, | |
| 29 NSError* error) const override; | |
| 30 }; | |
|
sdefresne
2016/07/06 08:43:28
DISALLOW_COPY_AND_ASSIGN
bzanotti
2016/07/06 11:02:21
Done.
| |
| 31 | |
| 32 #endif // IOS_CHROME_BROWSER_SIGNIN_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_PROVIDER_I MPL_H_ | |
| OLD | NEW |