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

Unified Diff: components/autofill/core/browser/payments/payments_service_url.h

Issue 1999923002: Move the Google Payments URL functions out of content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: components/autofill/core/browser/payments/payments_service_url.h
diff --git a/components/autofill/core/browser/payments/payments_service_url.h b/components/autofill/core/browser/payments/payments_service_url.h
new file mode 100644
index 0000000000000000000000000000000000000000..b28aa36fd83550ffd8ca369ee6b504889bfc3b33
--- /dev/null
+++ b/components/autofill/core/browser/payments/payments_service_url.h
@@ -0,0 +1,33 @@
+// 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_CORE_BROWSER_PAYMENTS_PAYMENTS_SERVICE_URL_H_
+#define COMPONENTS_AUTOFILL_CORE_BROWSER_PAYMENTS_PAYMENTS_SERVICE_URL_H_
+
+#include <stddef.h>
+
+class GURL;
+
+namespace autofill {
+namespace payments {
+
+// Returns true if production Payments URLs should be used or false if sandbox
+// should be used.
+bool IsPaymentsProductionEnabled();
+
+// Returns the base URL to use for all Google Payments activity (RPCs and/or
+// navigation).
+GURL GetBaseSecureUrl();
+
+// Returns the URL to navigate to in order to allow the user to edit or delete
+// payment instruments (credit cards) or addresses, respectively. |user_index|
+// is the index into the list of signed-in GAIA profiles for which this request
+// is being made.
+GURL GetManageInstrumentsUrl(size_t user_index);
+GURL GetManageAddressesUrl(size_t user_index);
+
+} // namespace payments
+} // namespace autofill
+
+#endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PAYMENTS_PAYMENTS_SERVICE_URL_H_

Powered by Google App Engine
This is Rietveld 408576698