blob: 12e464c67ff7a05bbfa9d5f9708b4f04cc1484c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// 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 std::string& access_token,
const base::Time& expiration_time) {
consumer_->OnGetTokenSuccess(access_token, expiration_time);
}
void OAuth2AccessTokenFetcher::FireOnGetTokenFailure(
const GoogleServiceAuthError& error) {
consumer_->OnGetTokenFailure(error);
}
|