/external/chromium_org/chrome/browser/extensions/api/identity/ |
H A D | extension_token_key.cc | 10 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 D | extension_token_key.h | 15 const std::string& account_id, 20 std::string account_id; member in struct:extensions::ExtensionTokenKey
|
H A D | identity_signin_flow.cc | 47 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 D | stub_user_accounts_delegate.cc | 25 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 D | user_accounts_delegate_chromeos.h | 27 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 D | user_accounts_delegate_chromeos.cc | 56 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 D | fake_oauth2_token_service.cc | 25 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 D | fake_oauth2_token_service.h | 27 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 D | oauth2_token_service.h | 93 // 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 D | fake_identity_provider.cc | 16 void FakeIdentityProvider::LogIn(const std::string& account_id) { argument 17 account_id_ = account_id;
|
H A D | identity_provider.cc | 41 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 D | mutable_profile_oauth2_token_service.cc | 22 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 D | account_tracker_service.cc | 21 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 D | mutable_profile_oauth2_token_service.h | 29 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 D | fake_auth_status_provider.cc | 29 void FakeAuthStatusProvider::SetAuthError(const std::string& account_id, argument 32 account_id_ = account_id;
|
H A D | account_tracker_service_unittest.cc | 28 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 D | attachment_downloader.cc | 21 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 D | fake_profile_oauth2_token_service.cc | 27 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 D | fake_profile_oauth2_token_service.h | 51 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 D | fake_account_tracker_service.h | 27 virtual void StartFetchingUserInfo(const std::string& account_id) OVERRIDE;
|
/external/chromium_org/chrome/browser/chromeos/policy/ |
H A D | device_local_account_external_data_manager.cc | 17 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 D | device_local_account.cc | 31 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 D | device_local_account.h | 30 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 D | profile_oauth2_token_service_ios.h | 34 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 D | inline_login_handler_chromeos.cc | 29 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
|