blob: ae252c016afc6c1e619a386bc1f5dadc2b0146d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
// Copyright 2022 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 COMPONENTS_SIGNIN_CORE_BROWSER_MIRROR_LANDING_ACCOUNT_RECONCILOR_DELEGATE_H_
#define COMPONENTS_SIGNIN_CORE_BROWSER_MIRROR_LANDING_ACCOUNT_RECONCILOR_DELEGATE_H_
#include "components/signin/core/browser/account_reconcilor_delegate.h"
namespace signin {
// AccountReconcilorDelegate specialized for Mirror, using the "Mirror landing"
// variant. Mirror is always enabled, even when there is no primary account.
class MirrorLandingAccountReconcilorDelegate
: public AccountReconcilorDelegate {
public:
MirrorLandingAccountReconcilorDelegate();
~MirrorLandingAccountReconcilorDelegate() override;
MirrorLandingAccountReconcilorDelegate(
const MirrorLandingAccountReconcilorDelegate&) = delete;
MirrorLandingAccountReconcilorDelegate& operator=(
const MirrorLandingAccountReconcilorDelegate&) = delete;
// AccountReconcilorDelegate:
bool IsReconcileEnabled() const override;
gaia::GaiaSource GetGaiaApiSource() const override;
bool ShouldAbortReconcileIfPrimaryHasError() const override;
ConsentLevel GetConsentLevelForPrimaryAccount() const override;
CoreAccountId GetFirstGaiaAccountForReconcile(
const std::vector<CoreAccountId>& chrome_accounts,
const std::vector<gaia::ListedAccount>& gaia_accounts,
const CoreAccountId& primary_account,
bool first_execution,
bool will_logout) const override;
std::vector<CoreAccountId> GetChromeAccountsForReconcile(
const std::vector<CoreAccountId>& chrome_accounts,
const CoreAccountId& primary_account,
const std::vector<gaia::ListedAccount>& gaia_accounts,
bool first_execution,
bool primary_has_error,
const gaia::MultiloginMode mode) const override;
};
} // namespace signin
#endif // COMPONENTS_SIGNIN_CORE_BROWSER_MIRROR_LANDING_ACCOUNT_RECONCILOR_DELEGATE_H_
|