OLD | NEW |
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 | 4 |
5 #include "components/autofill/content/browser/wallet/wallet_service_url.h" | 5 #include "components/autofill/content/browser/wallet/wallet_service_url.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/format_macros.h" | 10 #include "base/format_macros.h" |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 | 120 |
121 GURL GetAcceptLegalDocumentsUrl(size_t user_index) { | 121 GURL GetAcceptLegalDocumentsUrl(size_t user_index) { |
122 return GetBaseAutocheckoutUrl(user_index).Resolve("acceptLegalDocument"); | 122 return GetBaseAutocheckoutUrl(user_index).Resolve("acceptLegalDocument"); |
123 } | 123 } |
124 | 124 |
125 GURL GetAuthenticateInstrumentUrl(size_t user_index) { | 125 GURL GetAuthenticateInstrumentUrl(size_t user_index) { |
126 return GetBaseEncryptedFrontendUrl(user_index) | 126 return GetBaseEncryptedFrontendUrl(user_index) |
127 .Resolve("authenticateInstrument?s7e=cvn"); | 127 .Resolve("authenticateInstrument?s7e=cvn"); |
128 } | 128 } |
129 | 129 |
130 GURL GetSendStatusUrl(size_t user_index) { | |
131 return GetBaseAutocheckoutUrl(user_index).Resolve("reportStatus"); | |
132 } | |
133 | |
134 GURL GetSaveToWalletNoEscrowUrl(size_t user_index) { | 130 GURL GetSaveToWalletNoEscrowUrl(size_t user_index) { |
135 return GetBaseAutocheckoutUrl(user_index).Resolve("saveToWallet"); | 131 return GetBaseAutocheckoutUrl(user_index).Resolve("saveToWallet"); |
136 } | 132 } |
137 | 133 |
138 GURL GetSaveToWalletUrl(size_t user_index) { | 134 GURL GetSaveToWalletUrl(size_t user_index) { |
139 return GetBaseEncryptedFrontendUrl(user_index) | 135 return GetBaseEncryptedFrontendUrl(user_index) |
140 .Resolve("saveToWallet?s7e=card_number%3Bcvn"); | 136 .Resolve("saveToWallet?s7e=card_number%3Bcvn"); |
141 } | 137 } |
142 | 138 |
143 GURL GetPassiveAuthUrl(size_t user_index) { | 139 GURL GetPassiveAuthUrl(size_t user_index) { |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 false) || | 193 false) || |
198 IsSignInContinueUrl(url, &unused); | 194 IsSignInContinueUrl(url, &unused); |
199 } | 195 } |
200 | 196 |
201 bool IsUsingProd() { | 197 bool IsUsingProd() { |
202 return GetWalletHostUrl() == GURL(kProdWalletServiceUrl); | 198 return GetWalletHostUrl() == GURL(kProdWalletServiceUrl); |
203 } | 199 } |
204 | 200 |
205 } // namespace wallet | 201 } // namespace wallet |
206 } // namespace autofill | 202 } // namespace autofill |
OLD | NEW |