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

Side by Side Diff: components/signin/ios/browser/profile_oauth2_token_service_ios.h

Issue 299943003: Refactor ProfileOAuth2TokenServiceRequest into OAuth2TokenServiceRequest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove useless return value from Invalidate. Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef COMPONENTS_SIGNIN_IOS_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_H_ 5 #ifndef COMPONENTS_SIGNIN_IOS_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_H_
6 #define COMPONENTS_SIGNIN_IOS_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_H_ 6 #define COMPONENTS_SIGNIN_IOS_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/threading/thread_checker.h" 10 #include "base/threading/thread_checker.h"
11 #include "components/signin/core/browser/mutable_profile_oauth2_token_service.h" 11 #include "components/signin/core/browser/mutable_profile_oauth2_token_service.h"
12 12
13 class OAuth2AccessTokenFetcher; 13 class OAuth2AccessTokenFetcher;
14 14
15 namespace ios{ 15 namespace ios{
16 class ProfileOAuth2TokenServiceIOSProvider; 16 class ProfileOAuth2TokenServiceIOSProvider;
17 } 17 }
18 18
19 // A specialization of ProfileOAuth2TokenService that will be returned by 19 // A specialization of ProfileOAuth2TokenService that will be returned by
20 // ProfileOAuth2TokenServiceFactory for OS_IOS when iOS authentication service 20 // ProfileOAuth2TokenServiceFactory for OS_IOS when iOS authentication service
21 // is used to lookup OAuth2 tokens. 21 // is used to lookup OAuth2 tokens.
22 // 22 //
23 // See |ProfileOAuth2TokenService| for usage details. 23 // See |ProfileOAuth2TokenService| for usage details.
24 // 24 //
25 // Note: Requests should be started from the UI thread. To start a 25 // Note: Requests should be started from the UI thread. To start a
26 // request from aother thread, please use ProfileOAuth2TokenServiceRequest. 26 // request from aother thread, please use OAuth2TokenServiceRequest.
27 class ProfileOAuth2TokenServiceIOS : public MutableProfileOAuth2TokenService { 27 class ProfileOAuth2TokenServiceIOS : public MutableProfileOAuth2TokenService {
28 public: 28 public:
29 ProfileOAuth2TokenServiceIOS(); 29 ProfileOAuth2TokenServiceIOS();
30 virtual ~ProfileOAuth2TokenServiceIOS(); 30 virtual ~ProfileOAuth2TokenServiceIOS();
31 31
32 // KeyedService 32 // KeyedService
33 virtual void Shutdown() OVERRIDE; 33 virtual void Shutdown() OVERRIDE;
34 34
35 // OAuth2TokenService 35 // OAuth2TokenService
36 virtual bool RefreshTokenIsAvailable( 36 virtual bool RefreshTokenIsAvailable(
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 // 154 //
155 // If |use_legacy_token_service_| is true, then this 155 // If |use_legacy_token_service_| is true, then this
156 // |ProfileOAuth2TokenServiceIOS| delegates all calls to the parent 156 // |ProfileOAuth2TokenServiceIOS| delegates all calls to the parent
157 // |MutableProfileOAuth2TokenService|. 157 // |MutableProfileOAuth2TokenService|.
158 bool use_legacy_token_service_; 158 bool use_legacy_token_service_;
159 159
160 DISALLOW_COPY_AND_ASSIGN(ProfileOAuth2TokenServiceIOS); 160 DISALLOW_COPY_AND_ASSIGN(ProfileOAuth2TokenServiceIOS);
161 }; 161 };
162 162
163 #endif // COMPONENTS_SIGNIN_IOS_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_H_ 163 #endif // COMPONENTS_SIGNIN_IOS_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698