summaryrefslogtreecommitdiffstats
path: root/components/autofill/content/browser/wallet/wallet_service_url.h
blob: 61bceca0c647e95f4a97172f64a4c6b4d5672e64 (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
// Copyright 2013 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_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_SERVICE_URL_H_
#define COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_SERVICE_URL_H_

class GURL;

namespace autofill {
namespace wallet {

GURL GetGetWalletItemsUrl();
GURL GetGetFullWalletUrl();
GURL GetManageInstrumentsUrl();
GURL GetManageAddressesUrl();
GURL GetAcceptLegalDocumentsUrl();
GURL GetAuthenticateInstrumentUrl();
GURL GetSendStatusUrl();
GURL GetSaveToWalletNoEscrowUrl();
GURL GetSaveToWalletUrl();
GURL GetPassiveAuthUrl();

// URL to visit for presenting the user with a sign-in dialog.
GURL GetSignInUrl();

// The the URL to use as a continue parameter in the sign-in URL.
// A redirect to this URL will occur once sign-in is complete.
GURL GetSignInContinueUrl();

// Returns true if |url| is an acceptable variant of the sign-in continue
// url.  Can be used for detection of navigation to the continue url.
bool IsSignInContinueUrl(const GURL& url);

// Whether calls to Online Wallet are hitting the production server rather than
// a sandbox or some malicious endpoint.
bool IsUsingProd();

}  // namespace wallet
}  // namespace autofill

#endif  // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_SERVICE_URL_H_