Chromium Code Reviews| Index: ios/chrome/browser/signin/profile_oauth2_token_service_ios_provider_impl.h |
| diff --git a/ios/chrome/browser/signin/profile_oauth2_token_service_ios_provider_impl.h b/ios/chrome/browser/signin/profile_oauth2_token_service_ios_provider_impl.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..1992d43b0920f837d645710566226d6ed04ebc9d |
| --- /dev/null |
| +++ b/ios/chrome/browser/signin/profile_oauth2_token_service_ios_provider_impl.h |
| @@ -0,0 +1,32 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef IOS_CHROME_BROWSER_SIGNIN_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_PROVIDER_IMPL_H_ |
| +#define IOS_CHROME_BROWSER_SIGNIN_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_PROVIDER_IMPL_H_ |
| + |
| +#include <string> |
| +#include <vector> |
| + |
| +#include "components/signin/ios/browser/profile_oauth2_token_service_ios_provider.h" |
| + |
| +// Implementation of ProfileOAuth2TokenServiceIOSProvider. |
| +class ProfileOAuth2TokenServiceIOSProviderImpl |
| + : public ProfileOAuth2TokenServiceIOSProvider { |
| + public: |
| + ProfileOAuth2TokenServiceIOSProviderImpl(); |
| + ~ProfileOAuth2TokenServiceIOSProviderImpl() override; |
| + |
| + // ios::ProfileOAuth2TokenServiceIOSProvider |
| + void GetAccessToken(const std::string& gaia_id, |
| + const std::string& client_id, |
| + const std::string& client_secret, |
| + const std::set<std::string>& scopes, |
| + const AccessTokenCallback& callback) override; |
| + std::vector<AccountInfo> GetAllAccounts() const override; |
| + AuthenticationErrorCategory GetAuthenticationErrorCategory( |
| + const std::string& gaia_id, |
| + NSError* error) const override; |
| +}; |
|
sdefresne
2016/07/06 08:43:28
DISALLOW_COPY_AND_ASSIGN
bzanotti
2016/07/06 11:02:21
Done.
|
| + |
| +#endif // IOS_CHROME_BROWSER_SIGNIN_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_PROVIDER_IMPL_H_ |