Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(574)

Side by Side Diff: ios/chrome/browser/signin/profile_oauth2_token_service_ios_provider_impl.h

Issue 2121083004: Upstream ProfileOAuth2TokenServiceProviderImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Style nits Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 "base/macros.h"
12 #include "components/signin/ios/browser/profile_oauth2_token_service_ios_provide r.h"
13
14 // Implementation of ProfileOAuth2TokenServiceIOSProvider.
15 class ProfileOAuth2TokenServiceIOSProviderImpl
16 : public ProfileOAuth2TokenServiceIOSProvider {
17 public:
18 ProfileOAuth2TokenServiceIOSProviderImpl();
19 ~ProfileOAuth2TokenServiceIOSProviderImpl() override;
20
21 // ios::ProfileOAuth2TokenServiceIOSProvider
22 void GetAccessToken(const std::string& gaia_id,
23 const std::string& client_id,
24 const std::string& client_secret,
25 const std::set<std::string>& scopes,
26 const AccessTokenCallback& callback) override;
27 std::vector<AccountInfo> GetAllAccounts() const override;
28 AuthenticationErrorCategory GetAuthenticationErrorCategory(
29 const std::string& gaia_id,
30 NSError* error) const override;
31
32 private:
33 DISALLOW_COPY_AND_ASSIGN(ProfileOAuth2TokenServiceIOSProviderImpl);
34 };
35
36 #endif // IOS_CHROME_BROWSER_SIGNIN_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_PROVIDER_I MPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698