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 COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_SERVICE_URL_H_
6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_SERVICE_URL_H_
15 // |user_index| is the index into the list of signed-in GAIA profiles for which
16 // this request is being made.
17 GURL GetGetWalletItemsUrl(size_t user_index);
18 GURL GetGetFullWalletUrl(size_t user_index);
19 GURL GetManageInstrumentsUrl(size_t user_index);
20 GURL GetManageAddressesUrl(size_t user_index);
21 GURL GetAcceptLegalDocumentsUrl(size_t user_index);
22 GURL GetAuthenticateInstrumentUrl(size_t user_index);
23 GURL GetSendStatusUrl(size_t user_index);
24 GURL GetSaveToWalletNoEscrowUrl(size_t user_index);
25 GURL GetSaveToWalletUrl(size_t user_index);
26 // This URL attempts to passively refresh all users.
27 GURL GetPassiveAuthUrl();
29 // URL to visit for presenting the user with a sign-in dialog.
32 // The the URL to use as a continue parameter in the sign-in URL.
33 // A redirect to this URL will occur once sign-in is complete.
34 GURL GetSignInContinueUrl();
36 // Returns true if |url| is an acceptable variant of the sign-in continue
37 // url. Can be used for detection of navigation to the continue url.
38 bool IsSignInContinueUrl(const GURL& url);
40 // Whether calls to Online Wallet are hitting the production server rather than
41 // a sandbox or some malicious endpoint.
45 } // namespace autofill
47 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_SERVICE_URL_H_