| Index: chrome/browser/net/gaia/oauth2_login_token_consumer.h
|
| ===================================================================
|
| --- chrome/browser/net/gaia/oauth2_login_token_consumer.h (revision 0)
|
| +++ chrome/browser/net/gaia/oauth2_login_token_consumer.h (revision 0)
|
| @@ -0,0 +1,24 @@
|
| +// Copyright (c) 2011 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.
|
| +
|
| +#ifndef CHROME_BROWSER_NET_GAIA_OAUTH2_LOGIN_TOKEN_CONSUMER_H_
|
| +#define CHROME_BROWSER_NET_GAIA_OAUTH2_LOGIN_TOKEN_CONSUMER_H_
|
| +#pragma once
|
| +
|
| +#include <string>
|
| +
|
| +class GoogleServiceAuthError;
|
| +
|
| +// An interface that defines the callbacks for consumers to which
|
| +// OAuth2LoginTokenFetcher can return results.
|
| +class OAuth2LoginTokenConsumer {
|
| + public:
|
| + virtual ~OAuth2LoginTokenConsumer() {}
|
| +
|
| + virtual void OnGetTokenSuccess(const std::string& refresh_token,
|
| + const std::string& access_token) {}
|
| + virtual void OnGetTokenFailure(const GoogleServiceAuthError& error) {}
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_NET_GAIA_OAUTH2_LOGIN_TOKEN_CONSUMER_H_
|
|
|