1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_AUTOFILL_WALLET_SIGNIN_HELPER_DELEGATE_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_WALLET_SIGNIN_HELPER_DELEGATE_H_
11 class GoogleServiceAuthError
;
16 // An interface that defines the callbacks for objects that
17 // WalletSigninHelper can return data to.
18 class WalletSigninHelperDelegate
{
20 virtual ~WalletSigninHelperDelegate() {}
22 // Called on a successful passive sign-in.
23 virtual void OnPassiveSigninSuccess() = 0;
25 // Called on a failed passive sign-in; |error| describes the error.
26 virtual void OnPassiveSigninFailure(const GoogleServiceAuthError
& error
) = 0;
28 // Called when the Google Wallet cookie value has been retrieved.
29 virtual void OnDidFetchWalletCookieValue(const std::string
& cookie_value
) = 0;
33 } // namespace autofill
35 #endif // CHROME_BROWSER_UI_AUTOFILL_WALLET_SIGNIN_HELPER_DELEGATE_H_