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

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

Issue 2770193003: Implement request id in PaymentDetailsInit (Closed)
Patch Set: Rebase once more since mojom file moved Created 3 years, 8 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/PaymentResponse.h
diff --git a/third_party/WebKit/Source/modules/payments/PaymentResponse.h b/third_party/WebKit/Source/modules/payments/PaymentResponse.h
index f3a713ffbc472d3a40ed9bdf5967ac77b86211af..e105768b98f0aeee241a1a8c33b298f19a69f887 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentResponse.h
+++ b/third_party/WebKit/Source/modules/payments/PaymentResponse.h
@@ -30,11 +30,13 @@ class MODULES_EXPORT PaymentResponse final
public:
PaymentResponse(payments::mojom::blink::PaymentResponsePtr,
- PaymentCompleter*);
+ PaymentCompleter*,
+ const String& requestId);
virtual ~PaymentResponse();
ScriptValue toJSONForBinding(ScriptState*) const;
+ const String& requestId() const { return requestId_; }
const String& methodName() const { return method_name_; }
ScriptValue details(ScriptState*, ExceptionState&) const;
PaymentAddress* shippingAddress() const { return shipping_address_.Get(); }
@@ -48,6 +50,7 @@ class MODULES_EXPORT PaymentResponse final
DECLARE_TRACE();
private:
+ String requestId_;
String method_name_;
String stringified_details_;
Member<PaymentAddress> shipping_address_;

Powered by Google App Engine
This is Rietveld 408576698