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

Side by Side Diff: third_party/WebKit/Source/modules/payments/PaymentRequest.h

Issue 2193183002: Print proper debug message in case of change event timeout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed review comments Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/payments/PaymentRequest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PaymentRequest_h 5 #ifndef PaymentRequest_h
6 #define PaymentRequest_h 6 #define PaymentRequest_h
7 7
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptValue.h" 9 #include "bindings/core/v8/ScriptValue.h"
10 #include "bindings/core/v8/ScriptWrappable.h" 10 #include "bindings/core/v8/ScriptWrappable.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 // EventTargetWithInlineData: 62 // EventTargetWithInlineData:
63 const AtomicString& interfaceName() const override; 63 const AtomicString& interfaceName() const override;
64 ExecutionContext* getExecutionContext() const override; 64 ExecutionContext* getExecutionContext() const override;
65 65
66 // PaymentCompleter: 66 // PaymentCompleter:
67 ScriptPromise complete(ScriptState*, PaymentComplete result) override; 67 ScriptPromise complete(ScriptState*, PaymentComplete result) override;
68 68
69 // PaymentUpdater: 69 // PaymentUpdater:
70 void onUpdatePaymentDetails(const ScriptValue& detailsScriptValue) override; 70 void onUpdatePaymentDetails(const ScriptValue& detailsScriptValue) override;
71 void onUpdatePaymentDetailsFailure(const ScriptValue& error) override; 71 void onUpdatePaymentDetailsFailure(const String& error) override;
72 72
73 DECLARE_TRACE(); 73 DECLARE_TRACE();
74 74
75 private: 75 private:
76 PaymentRequest(ScriptState*, const HeapVector<PaymentMethodData>&, const Pay mentDetails&, const PaymentOptions&, ExceptionState&); 76 PaymentRequest(ScriptState*, const HeapVector<PaymentMethodData>&, const Pay mentDetails&, const PaymentOptions&, ExceptionState&);
77 77
78 // LifecycleObserver: 78 // LifecycleObserver:
79 void contextDestroyed() override; 79 void contextDestroyed() override;
80 80
81 // ActiveScriptWrappable: 81 // ActiveScriptWrappable:
(...skipping 18 matching lines...) Expand all
100 Member<ScriptPromiseResolver> m_showResolver; 100 Member<ScriptPromiseResolver> m_showResolver;
101 Member<ScriptPromiseResolver> m_completeResolver; 101 Member<ScriptPromiseResolver> m_completeResolver;
102 Member<ScriptPromiseResolver> m_abortResolver; 102 Member<ScriptPromiseResolver> m_abortResolver;
103 mojom::blink::PaymentRequestPtr m_paymentProvider; 103 mojom::blink::PaymentRequestPtr m_paymentProvider;
104 mojo::Binding<mojom::blink::PaymentRequestClient> m_clientBinding; 104 mojo::Binding<mojom::blink::PaymentRequestClient> m_clientBinding;
105 }; 105 };
106 106
107 } // namespace blink 107 } // namespace blink
108 108
109 #endif // PaymentRequest_h 109 #endif // PaymentRequest_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/payments/PaymentRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698