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. 4 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_SERVICE_URL_H_ 6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_SERVICE_URL_H_ 7 8 class GURL; 9 10 namespace autofill { 11 namespace wallet { 12 13 GURL GetGetWalletItemsUrl(); 14 GURL GetGetFullWalletUrl(); 15 GURL GetManageInstrumentsUrl(); 16 GURL GetManageAddressesUrl(); 17 GURL GetAcceptLegalDocumentsUrl(); 18 GURL GetAuthenticateInstrumentUrl(); 19 GURL GetSendStatusUrl(); 20 GURL GetSaveToWalletNoEscrowUrl(); 21 GURL GetSaveToWalletUrl(); 22 GURL GetPassiveAuthUrl(); 23 24 // URL to visit for presenting the user with a sign-in dialog. 25 GURL GetSignInUrl(); 26 27 // The the URL to use as a continue parameter in the sign-in URL. 28 // A redirect to this URL will occur once sign-in is complete. 29 GURL GetSignInContinueUrl(); 30 31 // Returns true if |url| is an acceptable variant of the sign-in continue 32 // url. Can be used for detection of navigation to the continue url. 33 bool IsSignInContinueUrl(const GURL& url); 34 35 // Whether calls to Online Wallet are hitting the production server rather than 36 // a sandbox or some malicious endpoint. 37 bool IsUsingProd(); 38 39 } // namespace wallet 40 } // namespace autofill 41 42 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_SERVICE_URL_H_ 43