Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(412)

Side by Side Diff: components/autofill/content/browser/wallet/wallet_service_url.h

Issue 1288093004: rAc Wallet extirpation round 4: clean out RPC code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix gn Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 //
5 // TODO(estade): this file probably belongs in core/
4 6
5 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_SERVICE_URL_H_ 7 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_SERVICE_URL_H_
6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_SERVICE_URL_H_ 8 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_SERVICE_URL_H_
7 9
8 #include <stddef.h> 10 #include <stddef.h>
9 11
10 class GURL; 12 class GURL;
11 13
12 namespace autofill { 14 namespace autofill {
13 namespace wallet { 15 namespace wallet {
14 16
15 // |user_index| is the index into the list of signed-in GAIA profiles for which 17 // |user_index| is the index into the list of signed-in GAIA profiles for which
16 // this request is being made. 18 // 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); 19 GURL GetManageInstrumentsUrl(size_t user_index);
20 GURL GetManageAddressesUrl(size_t user_index); 20 GURL GetManageAddressesUrl(size_t user_index);
21 GURL GetPrivacyNoticeUrl();
22 GURL GetAcceptLegalDocumentsUrl(size_t user_index);
23 GURL GetAuthenticateInstrumentUrl(size_t user_index);
24 GURL GetSaveToWalletNoEscrowUrl(size_t user_index);
25 GURL GetSaveToWalletUrl(size_t user_index);
26 GURL GetPassiveAuthUrl(size_t user_index);
27
28 // URL to visit for presenting the user when first signing in.
29 GURL GetAddAccountUrl();
30
31 // (Re-)sign into a specific account.
32 GURL GetSignInUrl(size_t user_index);
33
34 // The the URL to use as a continue parameter in the sign-in URL.
35 // A redirect to this URL will occur once sign-in is complete.
36 GURL GetSignInContinueUrl();
37
38 // Returns true if |url| is an acceptable variant of the sign-in continue
39 // url. Can be used for detection of navigation to the continue url. If
40 // |url| is a sign-in url, |user_index| will also be filled in to indicate
41 // which user account just signed in.
42 bool IsSignInContinueUrl(const GURL& url, size_t* user_index);
43
44 // Returns whether |url| is related to sign-in. This is used to determine
45 // whether to open a new link from the Autofill dialog's sign-in webview.
46 bool IsSignInRelatedUrl(const GURL& url);
47
48 // Whether calls to Online Wallet are hitting the production server rather than
49 // a sandbox or some malicious endpoint.
50 bool IsUsingProd();
51 21
52 } // namespace wallet 22 } // namespace wallet
53 } // namespace autofill 23 } // namespace autofill
54 24
55 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_SERVICE_URL_H_ 25 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_SERVICE_URL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698