Searched refs:TokenService (Results 1 - 25 of 53) sorted by relevance

123

/external/chromium_org/chrome/browser/signin/
H A Dtoken_service_factory.cc13 "TokenService",
21 TokenService* TokenServiceFactory::GetForProfile(Profile* profile) {
22 return static_cast<TokenService*>(
33 return new TokenService();
H A Dtoken_service_factory.h11 class TokenService;
16 // associated TokenService.
19 // Returns the instance of TokenService associated with this profile
21 // TokenService (for example, if |profile| is incognito).
22 static TokenService* GetForProfile(Profile* profile);
H A Dtoken_service_unittest.h29 const TokenService::TokenAvailableDetails& details() {
38 TokenService::TokenAvailableDetails details_;
46 const TokenService::TokenRequestFailedDetails& details() {
55 TokenService::TokenRequestFailedDetails details_;
68 TokenService* service() const { return service_; }
78 TokenService* service_;
H A Dtoken_service.cc50 TokenService::TokenService() function in class:TokenService
61 TokenService::~TokenService() {
64 void TokenService::Shutdown() {
72 void TokenService::Initialize(const char* const source,
106 void TokenService::AddAuthTokenManually(const std::string& service,
123 // iOS fetches the service tokens outside of the TokenService.
133 void TokenService::ResetCredentialsInMemory() {
152 void TokenService
[all...]
H A Dsignin_tracker.cc45 TokenService* token_service = TokenServiceFactory::GetForProfile(profile_);
48 content::Source<TokenService>(token_service));
51 content::Source<TokenService>(token_service));
82 const TokenService::TokenRequestFailedDetails& token_details =
83 *(content::Details<const TokenService::TokenRequestFailedDetails>(
125 TokenService* token_service = TokenServiceFactory::GetForProfile(profile);
H A Dsignin_tracker_unittest.cc36 class MockTokenService : public TokenService {
144 TokenService::TokenAvailableDetails available(
150 content::Source<TokenService>(mock_token_service_),
151 content::Details<const TokenService::TokenAvailableDetails>(&available));
171 TokenService::TokenRequestFailedDetails failed(
175 content::Source<TokenService>(mock_token_service_),
176 content::Details<const TokenService::TokenRequestFailedDetails>(&failed));
H A Dandroid_profile_oauth2_token_service.h18 class TokenService;
H A Dtoken_service.h5 // The TokenService will supply authentication tokens for any service that
10 // the TokenService should be updated with new credentials. The controller
21 // Typically a user of the TokenService is expected just to call:
35 // There is currently no easy way to create a fake TokenService. Tests that want
36 // to use TokenService to issue tokens without the use of fake GaiaAuthFetchers
38 // creating a TokenService (skipping the Initialize() step to avoid interacting
40 // This will result in the TokenService sending out the appropriate
70 // The TokenService is a Profile member, so all calls are expected
72 class TokenService : public GaiaAuthConsumer, class in inherits:GaiaAuthConsumer,BrowserContextKeyedService,WebDataServiceConsumer
76 TokenService();
[all...]
H A Dtoken_service_unittest.cc32 content::Details<const TokenService::TokenAvailableDetails> full = details;
46 content::Details<const TokenService::TokenRequestFailedDetails> full =
77 content::Source<TokenService>(service_));
79 content::Source<TokenService>(service_));
111 TokenService::TokenAvailableDetails details = success_tracker()->details();
138 TokenService::TokenAvailableDetails details = success_tracker()->details();
152 TokenService::TokenAvailableDetails details = success_tracker()->details();
167 TokenService::TokenRequestFailedDetails details =
182 TokenService::TokenRequestFailedDetails details =
292 TokenService
[all...]
H A Dprofile_oauth2_token_service.cc82 content::Source<TokenService> token_service_source(
107 TokenService* token_service = TokenServiceFactory::GetForProfile(profile_);
134 TokenService::TokenAvailableDetails* tok_details =
135 content::Details<TokenService::TokenAvailableDetails>(details).ptr();
151 TokenService::TokenRequestFailedDetails* tok_details =
152 content::Details<TokenService::TokenRequestFailedDetails>(details)
208 TokenService *token_service,
214 "Received a token with a refresh token not maintained by TokenService.";
H A Dprofile_oauth2_token_service.h24 class TokenService;
29 // refresh token maintained by TokenService.
34 // even if the TokenService refresh token that was used to initiate
47 // content::NotificationObserver listening for TokenService updates.
64 // Takes injected TokenService for testing.
65 bool ShouldCacheForRefreshToken(TokenService *token_service,
101 // Overridden to not cache tokens if the TokenService refresh token
156 // Registrar for notifications from the TokenService.
/external/chromium/chrome/browser/net/gaia/
H A Dtoken_service.cc20 const char* TokenService::kServices[] = {
27 TokenService::TokenService() function in class:TokenService
32 TokenService::~TokenService() {
37 void TokenService::Initialize(const char* const source,
73 void TokenService::ResetCredentialsInMemory() {
91 void TokenService::UpdateCredentials(
102 void TokenService::LoadTokensFromDB() {
107 void TokenService
[all...]
H A Dtoken_service_unittest.h30 const TokenService::TokenAvailableDetails& details() {
39 TokenService::TokenAvailableDetails details_;
47 const TokenService::TokenRequestFailedDetails& details() {
56 TokenService::TokenRequestFailedDetails details_;
74 TokenService service_;
H A Dtoken_service.h5 // The TokenService will supply authentication tokens for any service that
8 // LSID. Whenever such credentials are available, the TokenService should be
20 // Typically a user of the TokenService is expected just to call:
56 // The TokenService is a Profile member, so all calls are expected
58 class TokenService : public GaiaAuthConsumer, class in inherits:GaiaAuthConsumer,WebDataServiceConsumer,NotificationObserver
62 TokenService();
63 virtual ~TokenService();
103 // Terminate any running requests and reset the TokenService to a clean
193 DISALLOW_COPY_AND_ASSIGN(TokenService);
/external/chromium_org/chrome/browser/chromeos/login/
H A Doauth_login_manager.cc29 TokenService* token_service =
H A Doauth2_login_manager.h19 class TokenService;
69 // Retrieves TokenService for |user_profile_| and sets up notification
71 TokenService* SetupTokenService();
74 // TokenService.
103 // by TokenService.
H A Doauth2_login_manager.cc91 TokenService* OAuth2LoginManager::SetupTokenService() {
92 TokenService* token_service =
99 TokenService* token_service = SetupTokenService();
106 // If we have no cookies, try to load saved OAuth2 token from TokenService.
107 TokenService* token_service = SetupTokenService();
201 TokenService* token_service = SetupTokenService();
/external/chromium_org/chrome/browser/invalidation/
H A Dinvalidation_service_factory.cc23 class TokenService;
94 TokenService* token_service = TokenServiceFactory::GetForProfile(profile);
H A Dticl_invalidation_service.h41 TokenService* token_service,
105 TokenService *const token_service_;
/external/chromium_org/chrome/browser/policy/cloud/
H A Duser_policy_signin_service.cc38 content::Source<TokenService>(
41 // TokenService should not yet have loaded its tokens since this happens in
115 const TokenService::TokenAvailableDetails& token_details =
116 *(content::Details<const TokenService::TokenAvailableDetails>(
125 // TokenService now has a refresh token (implying that the user is
/external/chromium/chrome/browser/extensions/
H A Dextension_webstore_private_api.cc84 TokenService* token_service = profile->GetTokenService();
502 TokenService* token_service = profile->GetTokenService();
505 Source<TokenService>(token_service));
508 Source<TokenService>(token_service));
565 TokenService::TokenAvailableDetails* available =
566 Details<TokenService::TokenAvailableDetails>(details).ptr();
569 TokenService::TokenRequestFailedDetails* failed =
570 Details<TokenService::TokenRequestFailedDetails>(details).ptr();
/external/chromium/chrome/browser/policy/
H A Dbrowser_policy_connector.h18 class TokenService;
H A Ddevice_policy_identity_strategy.h14 class TokenService;
H A Duser_policy_identity_strategy.cc141 Source<TokenService>(profile->GetTokenService()));
239 if (Source<TokenService>(source).ptr() == profile_->GetTokenService()) {
240 const TokenService::TokenAvailableDetails* token_details =
241 Details<const TokenService::TokenAvailableDetails>(details).ptr();
/external/chromium/chrome/browser/sync/
H A Dabstract_profile_sync_service_test.h51 TokenService token_service_;

Completed in 220 milliseconds

123