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

Side by Side Diff: components/signin/ios/browser/profile_oauth2_token_service_ios_delegate.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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef COMPONENTS_SIGNIN_IOS_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_DELEGATE_ H_ 4 #ifndef COMPONENTS_SIGNIN_IOS_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_DELEGATE_ H_
5 #define COMPONENTS_SIGNIN_IOS_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_DELEGATE_ H_ 5 #define COMPONENTS_SIGNIN_IOS_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_DELEGATE_ H_
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/gtest_prod_util.h" 9 #include "base/gtest_prod_util.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/linked_ptr.h" 11 #include "base/memory/linked_ptr.h"
12 #include "base/threading/thread_checker.h" 12 #include "base/threading/thread_checker.h"
13 #include "components/signin/core/browser/signin_error_controller.h" 13 #include "components/signin/core/browser/signin_error_controller.h"
14 #include "google_apis/gaia/oauth2_token_service_delegate.h" 14 #include "google_apis/gaia/oauth2_token_service_delegate.h"
15 15
16 class AccountTrackerService; 16 class AccountTrackerService;
17 class ProfileOAuth2TokenServiceIOSProvider; 17 class ProfileOAuth2TokenServiceIOSProvider;
18 18
19 class ProfileOAuth2TokenServiceIOSDelegate : public OAuth2TokenServiceDelegate { 19 class ProfileOAuth2TokenServiceIOSDelegate : public OAuth2TokenServiceDelegate {
20 public: 20 public:
21 ProfileOAuth2TokenServiceIOSDelegate( 21 ProfileOAuth2TokenServiceIOSDelegate(
22 SigninClient* client, 22 SigninClient* client,
23 ProfileOAuth2TokenServiceIOSProvider* provider, 23 std::unique_ptr<ProfileOAuth2TokenServiceIOSProvider> provider,
24 AccountTrackerService* account_tracker_service, 24 AccountTrackerService* account_tracker_service,
25 SigninErrorController* signin_error_controller); 25 SigninErrorController* signin_error_controller);
26 ~ProfileOAuth2TokenServiceIOSDelegate() override; 26 ~ProfileOAuth2TokenServiceIOSDelegate() override;
27 27
28 OAuth2AccessTokenFetcher* CreateAccessTokenFetcher( 28 OAuth2AccessTokenFetcher* CreateAccessTokenFetcher(
29 const std::string& account_id, 29 const std::string& account_id,
30 net::URLRequestContextGetter* getter, 30 net::URLRequestContextGetter* getter,
31 OAuth2AccessTokenConsumer* consumer) override; 31 OAuth2AccessTokenConsumer* consumer) override;
32 32
33 // KeyedService 33 // KeyedService
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // Info about the existing accounts. 109 // Info about the existing accounts.
110 AccountStatusMap accounts_; 110 AccountStatusMap accounts_;
111 111
112 // Calls to this class are expected to be made from the browser UI thread. 112 // Calls to this class are expected to be made from the browser UI thread.
113 // The purpose of this checker is to detect access to 113 // The purpose of this checker is to detect access to
114 // ProfileOAuth2TokenService from multiple threads in upstream code. 114 // ProfileOAuth2TokenService from multiple threads in upstream code.
115 base::ThreadChecker thread_checker_; 115 base::ThreadChecker thread_checker_;
116 116
117 // The client with which this instance was initialied, or NULL. 117 // The client with which this instance was initialied, or NULL.
118 SigninClient* client_; 118 SigninClient* client_;
119 ProfileOAuth2TokenServiceIOSProvider* provider_; 119 std::unique_ptr<ProfileOAuth2TokenServiceIOSProvider> provider_;
120 AccountTrackerService* account_tracker_service_; 120 AccountTrackerService* account_tracker_service_;
121 121
122 // The error controller with which this instance was initialized, or NULL. 122 // The error controller with which this instance was initialized, or NULL.
123 SigninErrorController* signin_error_controller_; 123 SigninErrorController* signin_error_controller_;
124 124
125 DISALLOW_COPY_AND_ASSIGN(ProfileOAuth2TokenServiceIOSDelegate); 125 DISALLOW_COPY_AND_ASSIGN(ProfileOAuth2TokenServiceIOSDelegate);
126 }; 126 };
127 #endif // COMPONENTS_SIGNIN_IOS_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_DELEGA TE_H_ 127 #endif // COMPONENTS_SIGNIN_IOS_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_DELEGA TE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698