| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 #include "components/signin/ios/browser/profile_oauth2_token_service_ios_provide
r.h" | 5 #include "components/signin/ios/browser/profile_oauth2_token_service_ios_provide
r.h" |
| 6 | 6 |
| 7 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 8 #error "This file requires ARC support." |
| 9 #endif |
| 10 |
| 7 std::vector<ProfileOAuth2TokenServiceIOSProvider::AccountInfo> | 11 std::vector<ProfileOAuth2TokenServiceIOSProvider::AccountInfo> |
| 8 ProfileOAuth2TokenServiceIOSProvider::GetAllAccounts() const { | 12 ProfileOAuth2TokenServiceIOSProvider::GetAllAccounts() const { |
| 9 return std::vector<ProfileOAuth2TokenServiceIOSProvider::AccountInfo>(); | 13 return std::vector<ProfileOAuth2TokenServiceIOSProvider::AccountInfo>(); |
| 10 } | 14 } |
| 11 | 15 |
| 12 void ProfileOAuth2TokenServiceIOSProvider::GetAccessToken( | 16 void ProfileOAuth2TokenServiceIOSProvider::GetAccessToken( |
| 13 const std::string& gaia_id, | 17 const std::string& gaia_id, |
| 14 const std::string& client_id, | 18 const std::string& client_id, |
| 15 const std::string& client_secret, | 19 const std::string& client_secret, |
| 16 const std::set<std::string>& scopes, | 20 const std::set<std::string>& scopes, |
| 17 const AccessTokenCallback& callback) {} | 21 const AccessTokenCallback& callback) {} |
| 18 | 22 |
| 19 AuthenticationErrorCategory | 23 AuthenticationErrorCategory |
| 20 ProfileOAuth2TokenServiceIOSProvider::GetAuthenticationErrorCategory( | 24 ProfileOAuth2TokenServiceIOSProvider::GetAuthenticationErrorCategory( |
| 21 const std::string& gaia_id, | 25 const std::string& gaia_id, |
| 22 NSError* error) const { | 26 NSError* error) const { |
| 23 return kAuthenticationErrorCategoryUnknownErrors; | 27 return kAuthenticationErrorCategoryUnknownErrors; |
| 24 } | 28 } |
| 25 | 29 |
| OLD | NEW |