// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef GOOGLE_APIS_GAIA_GAIA_OAUTH_CLIENT_H_ #define GOOGLE_APIS_GAIA_GAIA_OAUTH_CLIENT_H_ #include <memory> #include <string> #include <vector> #include "base/component_export.h" #include "base/memory/ref_counted.h" #include "base/values.h" namespace network { class SharedURLLoaderFactory; } // A helper class to get and refresh OAuth2 refresh and access tokens. // Also exposes utility methods for fetching user email and token information. // // Supports one request at a time; for parallel requests, create multiple // instances. namespace gaia { struct COMPONENT_EXPORT(GOOGLE_APIS) OAuthClientInfo { … }; class COMPONENT_EXPORT(GOOGLE_APIS) GaiaOAuthClient { … }; } // namespace gaia #endif // GOOGLE_APIS_GAIA_GAIA_OAUTH_CLIENT_H_