Fling boost check last animate time
[chromium-blink-merge.git] / google_apis / gaia / oauth2_access_token_fetcher.cc
blob12e464c67ff7a05bbfa9d5f9708b4f04cc1484c5
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "google_apis/gaia/oauth2_access_token_fetcher.h"
7 OAuth2AccessTokenFetcher::OAuth2AccessTokenFetcher(
8 OAuth2AccessTokenConsumer* consumer)
9 : consumer_(consumer) {}
11 OAuth2AccessTokenFetcher::~OAuth2AccessTokenFetcher() {}
13 void OAuth2AccessTokenFetcher::FireOnGetTokenSuccess(
14 const std::string& access_token,
15 const base::Time& expiration_time) {
16 consumer_->OnGetTokenSuccess(access_token, expiration_time);
19 void OAuth2AccessTokenFetcher::FireOnGetTokenFailure(
20 const GoogleServiceAuthError& error) {
21 consumer_->OnGetTokenFailure(error);