Searched refs:account_id (Results 1 - 25 of 210) sorted by relevance

123456789

/external/chromium_org/chrome/browser/extensions/api/identity/
H A Dextension_token_key.cc10 const std::string& account_id,
12 : extension_id(extension_id), account_id(account_id), scopes(scopes) {}
22 if (account_id < rhs.account_id)
24 else if (rhs.account_id < account_id)
9 ExtensionTokenKey(const std::string& extension_id, const std::string& account_id, const std::set<std::string>& scopes) argument
H A Dextension_token_key.h15 const std::string& account_id,
20 std::string account_id; member in struct:extensions::ExtensionTokenKey
H A Didentity_signin_flow.cc47 const std::string& account_id) {
49 GetAuthenticatedAccountId() == account_id) {
46 OnRefreshTokenAvailable( const std::string& account_id) argument
/external/chromium_org/chrome/browser/ui/ash/
H A Dstub_user_accounts_delegate.cc25 const std::string& account_id) {
26 std::string res(1, std::toupper(account_id[0]));
27 res += account_id.substr(1);
31 void StubUserAccountsDelegate::DeleteAccount(const std::string& account_id) { argument
34 secondary_accounts_.begin(), secondary_accounts_.end(), account_id),
39 void StubUserAccountsDelegate::AddAccount(const std::string& account_id) { argument
40 if (primary_account_ == account_id)
44 account_id) != secondary_accounts_.end())
46 secondary_accounts_.push_back(account_id);
24 GetAccountDisplayName( const std::string& account_id) argument
H A Duser_accounts_delegate_chromeos.h27 const std::string& account_id) OVERRIDE;
28 virtual void DeleteAccount(const std::string& account_id) OVERRIDE;
32 virtual void OnRefreshTokenAvailable(const std::string& account_id) OVERRIDE;
33 virtual void OnRefreshTokenRevoked(const std::string& account_id) OVERRIDE;
H A Duser_accounts_delegate_chromeos.cc56 const std::string& account_id) {
59 if (gaia::AreEmailsSame(user->email(), account_id) &&
62 return account_id;
66 const std::string& account_id) {
70 oauth2_token_service->RevokeCredentials(account_id);
78 const std::string& account_id) {
83 const std::string& account_id) {
55 GetAccountDisplayName( const std::string& account_id) argument
65 DeleteAccount( const std::string& account_id) argument
77 OnRefreshTokenAvailable( const std::string& account_id) argument
82 OnRefreshTokenRevoked( const std::string& account_id) argument
/external/chromium_org/google_apis/gaia/
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 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 Dfake_identity_provider.cc16 void FakeIdentityProvider::LogIn(const std::string& account_id) { argument
17 account_id_ = 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));
/external/chromium_org/components/signin/core/browser/
H A Dmutable_profile_oauth2_token_service.cc22 std::string ApplyAccountIdPrefix(const std::string& account_id) { argument
23 return kAccountIdPrefix + account_id;
30 bool IsLegacyServiceId(const std::string& account_id) { argument
31 return account_id.compare(0u, kAccountIdPrefixLength, kAccountIdPrefix) != 0;
47 const std::string& account_id);
85 const std::string& account_id,
88 account_id_(account_id),
115 // TODO(rogerta): when |account_id| becomes the obfuscated gaia id, this
143 const std::string& account_id) const {
144 return !GetRefreshToken(account_id)
83 AccountInfo( ProfileOAuth2TokenService* token_service, const std::string& account_id, const std::string& refresh_token) argument
156 CreateAccessTokenFetcher( const std::string& account_id, net::URLRequestContextGetter* getter, OAuth2AccessTokenConsumer* consumer) argument
245 std::string account_id = RemoveAccountIdPrefix(prefixed_account_id); local
263 UpdateAuthError( const std::string& account_id, const GoogleServiceAuthError& error) argument
292 UpdateCredentials( const std::string& account_id, const std::string& refresh_token) argument
330 RevokeCredentials( const std::string& account_id) argument
345 PersistCredentials( const std::string& account_id, const std::string& refresh_token) argument
355 ClearPersistedCredentials( const std::string& account_id) argument
[all...]
H A Daccount_tracker_service.cc21 const char kAccountKeyPath[] = "account_id";
33 const std::string& account_id);
36 const std::string& account_id() { return account_id_; } function in class:AccountInfoFetcher
67 const std::string& account_id)
72 account_id_(account_id) {
75 "account_id", account_id);
124 "account_id",
209 const std::string& account_id) {
210 if (ContainsKey(accounts_, account_id))
63 AccountInfoFetcher( OAuth2TokenService* token_service, net::URLRequestContextGetter* request_context_getter, AccountTrackerService* service, const std::string& account_id) argument
208 GetAccountInfo( const std::string& account_id) argument
258 OnRefreshTokenAvailable( const std::string& account_id) argument
273 OnRefreshTokenRevoked( const std::string& account_id) argument
296 StartTrackingAccount( const std::string& account_id) argument
306 StopTrackingAccount(const std::string& account_id) argument
321 StartFetchingUserInfo( const std::string& account_id) argument
339 const std::string& account_id = fetcher->account_id(); local
365 const std::string& account_id = fetcher->account_id(); local
379 std::string account_id = base::UTF16ToUTF8(value); local
[all...]
H A Dmutable_profile_oauth2_token_service.h29 virtual void UpdateCredentials(const std::string& account_id,
32 virtual bool RefreshTokenIsAvailable(const std::string& account_id) const
35 // Revokes credentials related to |account_id|.
36 void RevokeCredentials(const std::string& account_id);
42 const std::string& account_id,
67 // Maps the |account_id| of accounts known to ProfileOAuth2TokenService
79 const std::string& account_id,
86 virtual void UpdateAuthError(const std::string& account_id,
89 virtual std::string GetRefreshToken(const std::string& account_id) const;
112 // Persists credentials for |account_id|
[all...]
H A Dfake_auth_status_provider.cc29 void FakeAuthStatusProvider::SetAuthError(const std::string& account_id, argument
32 account_id_ = account_id;
H A Daccount_tracker_service_unittest.cc28 std::string AccountIdToEmail(const std::string account_id) { argument
29 return account_id + "@gmail.com";
32 std::string AccountIdToGaiaId(const std::string account_id) { argument
33 return "gaia-" + account_id;
39 const std::string& account_id,
42 account_id_(account_id),
46 const std::string& account_id)
48 account_id_(account_id),
49 gaia_id_(AccountIdToGaiaId(account_id)) {}
66 return base::StringPrintf("{ type: %s, account_id
38 TrackingEvent(TrackingEventType type, const std::string& account_id, const std::string& gaia_id) argument
45 TrackingEvent(TrackingEventType type, const std::string& account_id) argument
217 SimulateTokenAvailable(const std::string& account_id) argument
221 SimulateTokenRevoked(const std::string& account_id) argument
226 IssueAccessToken(const std::string& account_id) argument
231 GenerateValidTokenInfoResponse(const std::string& account_id) argument
273 ReturnOAuthUrlFetchSuccess( const std::string& account_id) argument
281 ReturnOAuthUrlFetchFailure( const std::string& account_id) argument
[all...]
/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
/external/chromium_org/chrome/browser/signin/
H A Dfake_profile_oauth2_token_service.cc27 const std::string& account_id) const {
28 return !GetRefreshToken(account_id).empty();
47 const std::string& account_id,
49 IssueRefreshTokenForUser(account_id, refresh_token);
54 IssueRefreshTokenForUser("account_id", token);
58 const std::string& account_id,
62 refresh_tokens_.erase(account_id);
63 FireRefreshTokenRevoked(account_id);
65 refresh_tokens_[account_id] = token;
66 FireRefreshTokenAvailable(account_id);
46 UpdateCredentials( const std::string& account_id, const std::string& refresh_token) argument
57 IssueRefreshTokenForUser( const std::string& account_id, const std::string& token) argument
75 IssueAllTokensForAccount( const std::string& account_id, const std::string& access_token, const base::Time& expiration) argument
87 IssueErrorForAllPendingRequestsForAccount( const std::string& account_id, const GoogleServiceAuthError& error) argument
132 CompleteRequests( const std::string& account_id, bool all_scopes, const ScopeSet& scope, const GoogleServiceAuthError& error, const std::string& access_token, const base::Time& expiration) argument
180 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
206 CreateAccessTokenFetcher( const std::string& account_id, net::URLRequestContextGetter* getter, OAuth2AccessTokenConsumer* consumer) argument
214 InvalidateOAuth2Token( const std::string& account_id, const std::string& client_id, const ScopeSet& scopes, const std::string& access_token) argument
[all...]
H A Dfake_profile_oauth2_token_service.h51 std::string account_id; member in struct:FakeProfileOAuth2TokenService::PendingRequest
63 const std::string& account_id) const OVERRIDE;
72 virtual void UpdateCredentials(const std::string& account_id,
82 void IssueRefreshTokenForUser(const std::string& account_id,
93 void IssueAllTokensForAccount(const std::string& account_id,
98 const std::string& account_id,
120 const std::string& account_id,
127 const std::string& account_id,
131 virtual void InvalidateOAuth2Token(const std::string& account_id,
141 // matching |scopes| are completed. If |account_id| i
[all...]
H A Dfake_account_tracker_service.h27 virtual void StartFetchingUserInfo(const std::string& account_id) OVERRIDE;
/external/chromium_org/chrome/browser/chromeos/policy/
H A Ddevice_local_account_external_data_manager.cc17 const std::string& account_id,
26 account_id, backend_task_runner, resource_cache)));
16 DeviceLocalAccountExternalDataManager( const std::string& account_id, const GetChromePolicyDetailsCallback& get_policy_details, scoped_refptr<base::SequencedTaskRunner> backend_task_runner, scoped_refptr<base::SequencedTaskRunner> io_task_runner, ResourceCache* resource_cache) argument
H A Ddevice_local_account.cc31 const std::string& account_id,
34 account_id(account_id),
35 user_id(GenerateDeviceLocalAccountUserId(account_id, type)),
42 std::string GenerateDeviceLocalAccountUserId(const std::string& account_id, argument
57 base::HexEncode(account_id.c_str(), account_id.size()) + "@" +
101 it->account_id);
134 std::string account_id; local
136 chromeos::kAccountsPrefDeviceLocalAccountsKeyId, &account_id) ||
30 DeviceLocalAccount(Type type, const std::string& account_id, const std::string& kiosk_app_id) argument
165 << i << ": " << account_id << "."; local
[all...]
H A Ddevice_local_account.h30 const std::string& account_id,
36 // * The |account_id| is chosen by the entity that defines the device-local
37 // account. The only constraints are that the |account_id| be unique and,
43 // The |account_id| is primarily used by policy code: If device policy defines
44 // a device-local account with a certain |account_id|, the user policy for
45 // that account has to be fetched by referencing the same |account_id|.
48 // of the global user list on the device. The |account_id| would not be safe
52 std::string account_id; member in struct:policy::DeviceLocalAccount
57 std::string GenerateDeviceLocalAccountUserId(const std::string& account_id,
/external/chromium_org/components/signin/ios/browser/
H A Dprofile_oauth2_token_service_ios.h34 const std::string& account_id) const OVERRIDE;
36 virtual void InvalidateOAuth2Token(const std::string& account_id,
45 virtual void UpdateAuthError(const std::string& account_id,
49 virtual void UpdateCredentials(const std::string& account_id,
70 const std::string& account_id,
76 // Adds |account_id| to |accounts_| if it does not exist or udpates
77 // the auth error state of |account_id| if it exists. Fires
79 virtual void AddOrUpdateAccount(const std::string& account_id);
81 // Removes |account_id| from |accounts_|. Fires |OnRefreshTokenRevoked|
83 virtual void RemoveAccount(const std::string& account_id);
[all...]
/external/chromium_org/chrome/browser/ui/webui/chromeos/login/
H A Dinline_login_handler_chromeos.cc29 const std::string& account_id)
30 : web_ui_(web_ui), account_id_(account_id) {}
75 std::string account_id; local
76 dict->GetString("email", &account_id);
77 CHECK(!account_id.empty()) << "Account ID is empty.";
79 oauth2_delegate_.reset(new InlineLoginUIOAuth2Delegate(web_ui(), account_id));
28 InlineLoginUIOAuth2Delegate(content::WebUI* web_ui, const std::string& account_id) argument

Completed in 301 milliseconds

123456789