Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

Unified Diff: third_party/WebKit/Source/modules/payments/PaymentAddress.h

Issue 2349133002: PaymentRequest: Make the PaymentResponse interface serializable. (Closed)
Patch Set: PaymentRequest: Make the PaymentResponse interface serializable. Created 4 years, 3 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: third_party/WebKit/Source/modules/payments/PaymentAddress.h
diff --git a/third_party/WebKit/Source/modules/payments/PaymentAddress.h b/third_party/WebKit/Source/modules/payments/PaymentAddress.h
index c857e1b673abaee2285c13075b4c8a66669af131..444f490b4dcfdeb4352030b09ad451f0869780fe 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentAddress.h
+++ b/third_party/WebKit/Source/modules/payments/PaymentAddress.h
@@ -5,6 +5,7 @@
#ifndef PaymentAddress_h
#define PaymentAddress_h
+#include "bindings/core/v8/ScriptValue.h"
#include "bindings/core/v8/ScriptWrappable.h"
#include "modules/ModulesExport.h"
#include "platform/heap/Handle.h"
@@ -23,6 +24,8 @@ public:
explicit PaymentAddress(mojom::blink::PaymentAddressPtr);
virtual ~PaymentAddress();
+ ScriptValue toJSONForBinding(ScriptState*) const;
const String& country() const { return m_country; }
const Vector<String>& addressLine() const { return m_addressLine; }
const String& region() const { return m_region; }

Powered by Google App Engine
This is Rietveld 408576698