Lines Matching refs:account_id
93 // account |account_id|. Once available, access tokens can be retrieved for
96 virtual void OnRefreshTokenAvailable(const std::string& account_id) {}
98 // account |account_id|.
99 virtual void OnRefreshTokenRevoked(const std::string& account_id) {}
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,
159 const std::string& account_id,
169 const std::string& account_id,
178 // Returns true if a refresh token exists for |account_id|. If false, calls to
180 virtual bool RefreshTokenIsAvailable(const std::string& account_id) const = 0;
182 // Mark an OAuth2 |access_token| issued for |account_id| and |scopes| as
187 void InvalidateToken(const std::string& account_id,
193 void InvalidateTokenForClient(const std::string& account_id,
205 const std::string& account_id,
217 explicit RequestImpl(const std::string& account_id, Consumer* consumer);
248 const std::string& account_id,
255 const std::string& account_id,
263 // Clears all of the tokens belonging to |account_id| from the internal token
266 void ClearCacheForAccount(const std::string& account_id);
271 // Cancels all requests related to a given |account_id|.
272 void CancelRequestsForAccount(const std::string& account_id);
275 virtual void FireRefreshTokenAvailable(const std::string& account_id);
276 virtual void FireRefreshTokenRevoked(const std::string& account_id);
285 const std::string& account_id,
294 // |account_id|. This method is only called if subclasses use the default
297 const std::string& account_id,
301 // Invalidates the |access_token| issued for |account_id|, |client_id| and
304 virtual void InvalidateOAuth2Token(const std::string& account_id,
316 const std::string& account_id,
324 std::string account_id;
345 const std::string& account_id,