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

Unified Diff: components/payments/payment_details_validation.h

Issue 2373103002: [Web Payments] Common Payments validation (Closed)
Patch Set: Fixed validator 2 Created 4 years, 1 month 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/payments/payment_details_validation.h
diff --git a/components/payments/payment_details_validation.h b/components/payments/payment_details_validation.h
new file mode 100644
index 0000000000000000000000000000000000000000..43daa7475eb00b5fb032ce03bee3c01e42b37771
--- /dev/null
+++ b/components/payments/payment_details_validation.h
@@ -0,0 +1,19 @@
+// Copyright 2016 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_PAYMENTS_PAYMENT_DETAILS_VALIDATION_H_
+#define COMPONENTS_PAYMENTS_PAYMENT_DETAILS_VALIDATION_H_
+
+#include <string>
+
+#include "components/payments/payment_request.mojom.h"
+
+namespace payments {
+
+bool validatePaymentDetails(const blink::mojom::PaymentDetailsPtr& details,
+ std::string* error_message);
+
+} // namespace payments
+
+#endif // COMPONENTS_PAYMENTS_PAYMENT_DETAILS_VALIDATION_H_
« no previous file with comments | « components/payments/android/payments_jni_registrar.cc ('k') | components/payments/payment_details_validation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698