blob: ae83c17aa55516c114c96d6fcd28a7a03f8df044 [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "google_apis/gaia/oauth2_access_token_fetcher.h"
OAuth2AccessTokenFetcher::OAuth2AccessTokenFetcher(
OAuth2AccessTokenConsumer* consumer)
: consumer_(consumer) {}
OAuth2AccessTokenFetcher::~OAuth2AccessTokenFetcher() {}
void OAuth2AccessTokenFetcher::FireOnGetTokenSuccess(
const OAuth2AccessTokenConsumer::TokenResponse& token_response) {
consumer_->OnGetTokenSuccess(token_response);
}
void OAuth2AccessTokenFetcher::FireOnGetTokenFailure(
const GoogleServiceAuthError& error) {
consumer_->OnGetTokenFailure(error);
}