blob: 2b1b33a13acc7058519f4deaf9998a472ad0a862 [file] [log] [blame]
// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_CHROME_BROWSER_SIGNIN_DEVICE_ACCOUNTS_PROVIDER_IMPL_H_
#define IOS_CHROME_BROWSER_SIGNIN_DEVICE_ACCOUNTS_PROVIDER_IMPL_H_
#include <set>
#include <string>
#include <vector>
#include "components/signin/public/identity_manager/ios/device_accounts_provider.h"
class ChromeAccountManagerService;
// Implementation of DeviceAccountsProvider.
class DeviceAccountsProviderImpl : public DeviceAccountsProvider {
public:
explicit DeviceAccountsProviderImpl(
ChromeAccountManagerService* account_manager_service);
DeviceAccountsProviderImpl(const DeviceAccountsProviderImpl&) = delete;
DeviceAccountsProviderImpl& operator=(const DeviceAccountsProviderImpl&) =
delete;
~DeviceAccountsProviderImpl() override;
// ios::DeviceAccountsProvider
void GetAccessToken(const std::string& gaia_id,
const std::string& client_id,
const std::set<std::string>& scopes,
AccessTokenCallback callback) override;
std::vector<AccountInfo> GetAllAccounts() const override;
private:
ChromeAccountManagerService* account_manager_service_ = nullptr;
};
#endif // IOS_CHROME_BROWSER_SIGNIN_DEVICE_ACCOUNTS_PROVIDER_IMPL_H_