Searched defs:account_id (Results 1 - 25 of 119) sorted by last modified time

12345

/external/chromium_org/sync/internal_api/attachments/
H A Dattachment_downloader.cc21 const std::string& account_id,
28 account_id,
17 Create( const GURL& sync_service_url, const scoped_refptr<net::URLRequestContextGetter>& url_request_context_getter, const std::string& account_id, const OAuth2TokenService::ScopeSet scopes, const scoped_refptr<OAuth2TokenServiceRequest::TokenServiceProvider>& token_service_provider) argument
H A Dattachment_downloader_impl.cc42 const std::string& account_id,
49 account_id_(account_id),
52 DCHECK(!account_id.empty());
38 AttachmentDownloaderImpl( const GURL& sync_service_url, const scoped_refptr<net::URLRequestContextGetter>& url_request_context_getter, const std::string& account_id, const OAuth2TokenService::ScopeSet& scopes, const scoped_refptr<OAuth2TokenServiceRequest::TokenServiceProvider>& token_service_provider) argument
H A Dattachment_downloader_impl_unittest.cc43 const std::string& account_id,
49 virtual void InvalidateOAuth2Token(const std::string& account_id,
79 const std::string& account_id,
90 const std::string& account_id,
77 FetchOAuth2Token( RequestImpl* request, const std::string& account_id, net::URLRequestContextGetter* getter, const std::string& client_id, const std::string& client_secret, const ScopeSet& scopes) argument
89 InvalidateOAuth2Token( const std::string& account_id, const std::string& client_id, const ScopeSet& scopes, const std::string& access_token) argument
H A Dattachment_uploader_impl.cc47 const std::string& account_id,
110 const std::string& account_id,
120 account_id_(account_id),
257 const std::string& account_id,
263 account_id_(account_id),
268 DCHECK(!account_id.empty());
104 UploadState( const GURL& upload_url, const scoped_refptr<net::URLRequestContextGetter>& url_request_context_getter, const Attachment& attachment, const UploadCallback& user_callback, const std::string& account_id, const OAuth2TokenService::ScopeSet& scopes, OAuth2TokenServiceRequest::TokenServiceProvider* token_service_provider, const base::WeakPtr<AttachmentUploaderImpl>& owner) argument
253 AttachmentUploaderImpl( const GURL& sync_service_url, const scoped_refptr<net::URLRequestContextGetter>& url_request_context_getter, const std::string& account_id, const OAuth2TokenService::ScopeSet& scopes, const scoped_refptr<OAuth2TokenServiceRequest::TokenServiceProvider>& token_service_provider) argument
H A Dattachment_uploader_impl_unittest.cc71 const std::string& account_id,
77 virtual void InvalidateOAuth2Token(const std::string& account_id,
110 const std::string& account_id,
125 const std::string& account_id,
108 FetchOAuth2Token( RequestImpl* request, const std::string& account_id, net::URLRequestContextGetter* getter, const std::string& client_id, const std::string& client_secret, const ScopeSet& scopes) argument
124 InvalidateOAuth2Token( const std::string& account_id, const std::string& client_id, const ScopeSet& scopes, const std::string& access_token) argument
/external/chromium_org/google_apis/drive/
H A Dauth_service.cc40 const std::string& account_id,
63 const std::string& account_id,
72 account_id,
121 const std::string& account_id,
125 account_id_(account_id),
213 void AuthService::OnRefreshTokenAvailable(const std::string& account_id) { argument
214 if (account_id == account_id_)
218 void AuthService::OnRefreshTokenRevoked(const std::string& account_id) { argument
219 if (account_id == account_id_)
61 AuthRequest( OAuth2TokenService* oauth2_token_service, const std::string& account_id, net::URLRequestContextGetter* url_request_context_getter, const AuthStatusCallback& callback, const std::vector<std::string>& scopes) argument
119 AuthService( OAuth2TokenService* oauth2_token_service, const std::string& account_id, net::URLRequestContextGetter* url_request_context_getter, const std::vector<std::string>& scopes) argument
/external/chromium_org/google_apis/gaia/
H A Daccount_tracker.cc86 void AccountTracker::OnRefreshTokenAvailable(const std::string& account_id) { argument
90 account_id);
96 DVLOG(1) << "AVAILABLE " << account_id;
97 UpdateSignInState(account_id, true);
100 void AccountTracker::OnRefreshTokenRevoked(const std::string& account_id) { argument
104 account_id);
106 DVLOG(1) << "REVOKED " << account_id;
107 UpdateSignInState(account_id, false);
H A Dfake_gaia.cc235 void FakeGaia::RegisterSamlUser(const std::string& account_id, argument
237 saml_account_idp_map_[account_id] = saml_idp;
H A Dfake_identity_provider.cc16 void FakeIdentityProvider::LogIn(const std::string& account_id) { argument
17 account_id_ = account_id;
H A Dfake_oauth2_token_service.cc25 const std::string& account_id,
31 pending_request.account_id = account_id;
40 const std::string& account_id,
51 const std::string& account_id) const {
52 return account_ids_.count(account_id) != 0;
55 void FakeOAuth2TokenService::AddAccount(const std::string& account_id) { argument
56 account_ids_.insert(account_id);
57 FireRefreshTokenAvailable(account_id);
60 void FakeOAuth2TokenService::RemoveAccount(const std::string& account_id) { argument
23 FetchOAuth2Token( RequestImpl* request, const std::string& account_id, net::URLRequestContextGetter* getter, const std::string& client_id, const std::string& client_secret, const ScopeSet& scopes) argument
39 InvalidateOAuth2Token( const std::string& account_id, const std::string& client_id, const ScopeSet& scopes, const std::string& access_token) argument
65 IssueAllTokensForAccount( const std::string& account_id, const std::string& access_token, const base::Time& expiration) argument
80 IssueErrorForAllPendingRequestsForAccount( const std::string& account_id, const GoogleServiceAuthError& auth_error) argument
93 CreateAccessTokenFetcher( const std::string& account_id, net::URLRequestContextGetter* getter, OAuth2AccessTokenConsumer* consumer) argument
[all...]
H A Dfake_oauth2_token_service.h27 void AddAccount(const std::string& account_id);
28 void RemoveAccount(const std::string& account_id);
32 void IssueAllTokensForAccount(const std::string& account_id,
36 const std::string& account_id,
46 const std::string& account_id,
52 virtual void InvalidateOAuth2Token(const std::string& account_id,
57 virtual bool RefreshTokenIsAvailable(const std::string& account_id) const
65 std::string account_id; member in struct:FakeOAuth2TokenService::PendingRequest
76 const std::string& account_id,
H A Didentity_provider.cc41 void IdentityProvider::OnRefreshTokenAvailable(const std::string& account_id) { argument
42 if (account_id != GetActiveAccountId())
46 OnRefreshTokenAvailable(account_id));
49 void IdentityProvider::OnRefreshTokenRevoked(const std::string& account_id) { argument
50 if (account_id != GetActiveAccountId())
54 OnRefreshTokenRevoked(account_id));
H A Dmerge_session_helper.cc168 void MergeSessionHelper::LogIn(const std::string& account_id) { argument
169 DCHECK(!account_id.empty());
170 VLOG(1) << "MergeSessionHelper::LogIn: " << account_id;
171 accounts_.push_back(account_id);
192 const std::string& account_id,
194 DCHECK(!account_id.empty());
195 VLOG(1) << "MergeSessionHelper::LogOut: " << account_id
197 LogOutInternal(account_id, accounts);
201 const std::string& account_id,
210 *it == account_id)) {
191 LogOut( const std::string& account_id, const std::vector<std::string>& accounts) argument
200 LogOutInternal( const std::string& account_id, const std::vector<std::string>& accounts) argument
244 SignalComplete( const std::string& account_id, const GoogleServiceAuthError& error) argument
290 const std::string account_id = accounts_.front(); local
297 const std::string account_id = accounts_.front(); local
307 const std::string account_id = accounts_.front(); local
[all...]
H A Doauth2_token_service.cc25 const std::string& account_id,
28 account_id(account_id),
42 if (account_id < p.account_id)
44 else if (p.account_id < account_id)
51 const std::string& account_id,
53 : account_id_(account_id),
121 // |account_id| an
23 RequestParameters( const std::string& client_id, const std::string& account_id, const ScopeSet& scopes) argument
50 RequestImpl( const std::string& account_id, OAuth2TokenService::Consumer* consumer) argument
201 CreateAndStart( OAuth2TokenService* oauth2_token_service, const std::string& account_id, net::URLRequestContextGetter* getter, const std::string& client_id, const std::string& client_secret, const OAuth2TokenService::ScopeSet& scopes, base::WeakPtr<RequestImpl> waiting_request) argument
221 Fetcher( OAuth2TokenService* oauth2_token_service, const std::string& account_id, net::URLRequestContextGetter* getter, const std::string& client_id, const std::string& client_secret, const OAuth2TokenService::ScopeSet& scopes, base::WeakPtr<RequestImpl> waiting_request) argument
410 StartRequest( const std::string& account_id, const OAuth2TokenService::ScopeSet& scopes, OAuth2TokenService::Consumer* consumer) argument
424 StartRequestForClient( const std::string& account_id, const std::string& client_id, const std::string& client_secret, const OAuth2TokenService::ScopeSet& scopes, OAuth2TokenService::Consumer* consumer) argument
440 StartRequestWithContext( const std::string& account_id, net::URLRequestContextGetter* getter, const ScopeSet& scopes, Consumer* consumer) argument
455 StartRequestForClientWithContext( const std::string& account_id, net::URLRequestContextGetter* getter, const std::string& client_id, const std::string& client_secret, const ScopeSet& scopes, Consumer* consumer) argument
503 FetchOAuth2Token(RequestImpl* request, const std::string& account_id, net::URLRequestContextGetter* getter, const std::string& client_id, const std::string& client_secret, const ScopeSet& scopes) argument
553 InvalidateToken(const std::string& account_id, const ScopeSet& scopes, const std::string& access_token) argument
562 InvalidateTokenForClient( const std::string& account_id, const std::string& client_id, const ScopeSet& scopes, const std::string& access_token) argument
570 InvalidateOAuth2Token( const std::string& account_id, const std::string& client_id, const ScopeSet& scopes, const std::string& access_token) argument
676 RegisterCacheEntry( const std::string& client_id, const std::string& account_id, const OAuth2TokenService::ScopeSet& scopes, const std::string& access_token, const base::Time& expiration_date) argument
691 UpdateAuthError( const std::string& account_id, const GoogleServiceAuthError& error) argument
709 ClearCacheForAccount(const std::string& account_id) argument
735 CancelRequestsForAccount( const std::string& account_id) argument
758 FireRefreshTokenAvailable( const std::string& account_id) argument
764 FireRefreshTokenRevoked( const std::string& account_id) argument
797 GetNumPendingRequestsForTesting( const std::string& client_id, const std::string& account_id, const ScopeSet& scopes) const argument
[all...]
H A Doauth2_token_service.h93 // account |account_id|. Once available, access tokens can be retrieved for
96 virtual void OnRefreshTokenAvailable(const std::string& account_id) {} argument
98 // account |account_id|.
99 virtual void OnRefreshTokenRevoked(const std::string& account_id) {} argument
118 virtual void OnAccessTokenRequested(const std::string& account_id,
124 virtual void OnFetchAccessTokenComplete(const std::string& account_id,
129 virtual void OnTokenRemoved(const std::string& account_id,
144 // Checks in the cache for a valid access token for a specified |account_id|
147 // |account_id|. The caller owns the returned Request.
151 scoped_ptr<Request> StartRequest(const std::string& account_id,
324 std::string account_id; member in struct:OAuth2TokenService::RequestParameters
[all...]
H A Doauth2_token_service_request.cc162 const std::string& account_id,
203 const std::string& account_id,
209 account_id_(account_id),
275 const std::string& account_id,
300 const std::string& account_id,
304 account_id_(account_id),
329 const std::string& account_id,
333 new OAuth2TokenServiceRequest(account_id));
335 new RequestCore(request.get(), provider, consumer, account_id, scopes));
343 const std::string& account_id,
198 RequestCore( OAuth2TokenServiceRequest* owner, const scoped_refptr<OAuth2TokenServiceRequest::TokenServiceProvider>& provider, OAuth2TokenService::Consumer* consumer, const std::string& account_id, const OAuth2TokenService::ScopeSet& scopes) argument
295 InvalidateCore( OAuth2TokenServiceRequest* owner, const scoped_refptr<OAuth2TokenServiceRequest::TokenServiceProvider>& provider, const std::string& access_token, const std::string& account_id, const OAuth2TokenService::ScopeSet& scopes) argument
327 CreateAndStart( const scoped_refptr<TokenServiceProvider>& provider, const std::string& account_id, const OAuth2TokenService::ScopeSet& scopes, OAuth2TokenService::Consumer* consumer) argument
341 InvalidateToken( const scoped_refptr<TokenServiceProvider>& provider, const std::string& account_id, const OAuth2TokenService::ScopeSet& scopes, const std::string& access_token) argument
361 OAuth2TokenServiceRequest( const std::string& account_id) argument
[all...]
H A Doauth2_token_service_request_unittest.cc84 const std::string& account_id,
90 virtual void InvalidateOAuth2Token(const std::string& account_id,
123 const std::string& account_id,
138 const std::string& account_id,
121 FetchOAuth2Token( RequestImpl* request, const std::string& account_id, net::URLRequestContextGetter* getter, const std::string& client_id, const std::string& client_secret, const ScopeSet& scopes) argument
137 InvalidateOAuth2Token( const std::string& account_id, const std::string& client_id, const ScopeSet& scopes, const std::string& access_token) argument
H A Doauth2_token_service_unittest.cc27 const std::string& account_id)
29 account_id_(account_id) {}
52 void CancelRequestsForAccountForTest(const std::string& account_id) { argument
53 CancelRequestsForAccount(account_id);
57 void set_refresh_token(const std::string& account_id, argument
60 refresh_tokens_.erase(account_id);
62 refresh_tokens_[account_id] = refresh_token;
65 virtual bool RefreshTokenIsAvailable(const std::string& account_id) const
68 refresh_tokens_.find(account_id);
80 const std::string& account_id,
25 RetryingTestingOAuth2TokenServiceConsumer( OAuth2TokenService* oauth2_service, const std::string& account_id) argument
[all...]
H A Dubertoken_fetcher.cc37 void UbertokenFetcher::StartFetchingToken(const std::string& account_id) { argument
38 DCHECK(!account_id.empty());
39 account_id_ = account_id;
/external/chromium_org/google_apis/gcm/engine/
H A Daccount_mapping.h33 // Serializes account mapping to string without |account_id|, |status| or
36 // Parses account mapping from store, without |account_id| or |access_token|.
41 std::string account_id; member in struct:gcm::AccountMapping
H A Dgcm_store_impl.cc106 std::string MakeAccountKey(const std::string& account_id) { argument
107 return kAccountKeyStart + account_id;
167 void RemoveAccountMapping(const std::string& account_id,
593 std::string key = MakeAccountKey(account_mapping.account_id);
602 const std::string& account_id,
614 db_->Delete(write_options, MakeSlice(MakeAccountKey(account_id)));
804 account_mapping.account_id = ParseAccountKey(iter->key().ToString());
807 << account_mapping.account_id;
810 DVLOG(1) << "Found account mapping with ID: " << account_mapping.account_id;
1026 void GCMStoreImpl::RemoveAccountMapping(const std::string& account_id, argument
601 RemoveAccountMapping( const std::string& account_id, const UpdateCallback& callback) argument
[all...]
/external/chromium_org/components/gcm_driver/
H A Dfake_gcm_client.cc130 void FakeGCMClient::RemoveAccountMapping(const std::string& account_id) { argument
H A Dfake_gcm_driver.cc86 void FakeGCMDriver::RemoveAccountMapping(const std::string& account_id) { argument
H A Dgcm_account_mapper.cc84 FindMappingByAccountId(token_iter->account_id);
88 new_mapping.account_id = token_iter->account_id;
175 gcm_driver_->RemoveAccountMapping(account_mapping_it->account_id);
200 gcm_driver_->RemoveAccountMapping(account_mapping_it->account_id);
265 account_mapping.account_id));
268 void GCMAccountMapper::OnSendFinished(const std::string& account_id, argument
275 AccountMapping* account_mapping = FindMappingByAccountId(account_id);
330 const std::string& account_id) {
334 if (iter->account_id
329 FindMappingByAccountId( const std::string& account_id) argument
[all...]
H A Dgcm_account_mapper_unittest.cc22 AccountMapping MakeAccountMapping(const std::string& account_id, argument
27 account_mapping.account_id = account_id;
28 account_mapping.email = account_id + "@gmail.com";
37 const std::string& account_id) {
39 account_token.account_id = account_id;
40 account_token.email = account_id + "@gmail.com";
41 account_token.access_token = account_id + "_token";
59 << "; Account ID of expected: " << expected_iter->account_id;
36 MakeAccountTokenInfo( const std::string& account_id) argument
149 RemoveAccountMapping(const std::string& account_id) argument
[all...]

Completed in 221 milliseconds

12345