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

Unified Diff: components/signin/ios/browser/profile_oauth2_token_service_ios.h

Issue 234573003: Upstream PO2TS_IOS unit test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/signin/ios/DEPS ('k') | components/signin/ios/browser/profile_oauth2_token_service_ios.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/signin/ios/browser/profile_oauth2_token_service_ios.h
diff --git a/components/signin/ios/browser/profile_oauth2_token_service_ios.h b/components/signin/ios/browser/profile_oauth2_token_service_ios.h
index 2f32d1ce7ac14183a9160314f630a8475f02faf3..0e254bae90dd2931098821fa059cee87ebde71cf 100644
--- a/components/signin/ios/browser/profile_oauth2_token_service_ios.h
+++ b/components/signin/ios/browser/profile_oauth2_token_service_ios.h
@@ -16,14 +16,17 @@ namespace ios{
class ProfileOAuth2TokenServiceIOSProvider;
}
-// A specialization of ProfileOAuth2TokenService for OS_IOS. It fetches access
-// tokens from the SSOAuth library if the user is signed in using shared
-// authentication or defaults to the parent class
-// |MutableProfileOAuth2TokenService| for pre-SSO signed in users.
+// A specialization of ProfileOAuth2TokenService that will be returned by
+// ProfileOAuth2TokenServiceFactory for OS_IOS when iOS authentication service
+// is used to lookup OAuth2 tokens.
//
// See |ProfileOAuth2TokenService| for usage details.
+//
+// Note: Requests should be started from the UI thread. To start a
+// request from aother thread, please use ProfileOAuth2TokenServiceRequest.
class ProfileOAuth2TokenServiceIOS : public MutableProfileOAuth2TokenService {
public:
+ ProfileOAuth2TokenServiceIOS();
virtual ~ProfileOAuth2TokenServiceIOS();
// KeyedService
@@ -84,10 +87,6 @@ class ProfileOAuth2TokenServiceIOS : public MutableProfileOAuth2TokenService {
void ForceInvalidGrantResponses();
protected:
- friend class ProfileOAuth2TokenServiceFactory;
-
- ProfileOAuth2TokenServiceIOS();
-
virtual OAuth2AccessTokenFetcher* CreateAccessTokenFetcher(
const std::string& account_id,
net::URLRequestContextGetter* getter,
« no previous file with comments | « components/signin/ios/DEPS ('k') | components/signin/ios/browser/profile_oauth2_token_service_ios.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698