OLD | NEW |
(Empty) | |
| 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_CORE_BROWSER_PAYMENTS_PAYMENTS_SERVICE_URL_H_ |
| 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_PAYMENTS_PAYMENTS_SERVICE_URL_H_ |
| 7 |
| 8 #include <stddef.h> |
| 9 |
| 10 class GURL; |
| 11 |
| 12 namespace autofill { |
| 13 namespace payments { |
| 14 |
| 15 // Returns true if production Payments URLs should be used or false if sandbox |
| 16 // should be used. |
| 17 bool IsPaymentsProductionEnabled(); |
| 18 |
| 19 // Returns the base URL to use for all Google Payments activity (RPCs and/or |
| 20 // navigation). |
| 21 GURL GetBaseSecureUrl(); |
| 22 |
| 23 // Returns the URL to navigate to in order to allow the user to edit or delete |
| 24 // payment instruments (credit cards) or addresses, respectively. |user_index| |
| 25 // is the index into the list of signed-in GAIA profiles for which this request |
| 26 // is being made. |
| 27 GURL GetManageInstrumentsUrl(size_t user_index); |
| 28 GURL GetManageAddressesUrl(size_t user_index); |
| 29 |
| 30 } // namespace payments |
| 31 } // namespace autofill |
| 32 |
| 33 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PAYMENTS_PAYMENTS_SERVICE_URL_H_ |
OLD | NEW |