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

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

Issue 1902263004: Mojo: Change the blink variant from "wtf" to "blink". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 unified diff | Download patch
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 PaymentResponse_h 5 #ifndef PaymentResponse_h
6 #define PaymentResponse_h 6 #define PaymentResponse_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"
11 #include "modules/ModulesExport.h" 11 #include "modules/ModulesExport.h"
12 #include "platform/heap/Handle.h" 12 #include "platform/heap/Handle.h"
13 #include "public/platform/modules/payments/payment_request.mojom-wtf.h" 13 #include "public/platform/modules/payments/payment_request.mojom-blink.h"
14 #include "wtf/Noncopyable.h" 14 #include "wtf/Noncopyable.h"
15 #include "wtf/text/WTFString.h" 15 #include "wtf/text/WTFString.h"
16 16
17 namespace blink { 17 namespace blink {
18 18
19 class ExceptionState; 19 class ExceptionState;
20 class PaymentCompleter; 20 class PaymentCompleter;
21 class ScriptState; 21 class ScriptState;
22 22
23 class MODULES_EXPORT PaymentResponse final : public GarbageCollectedFinalized<Pa ymentResponse>, public ScriptWrappable { 23 class MODULES_EXPORT PaymentResponse final : public GarbageCollectedFinalized<Pa ymentResponse>, public ScriptWrappable {
24 DEFINE_WRAPPERTYPEINFO(); 24 DEFINE_WRAPPERTYPEINFO();
25 WTF_MAKE_NONCOPYABLE(PaymentResponse); 25 WTF_MAKE_NONCOPYABLE(PaymentResponse);
26 26
27 public: 27 public:
28 PaymentResponse(mojom::wtf::PaymentResponsePtr, PaymentCompleter*); 28 PaymentResponse(mojom::blink::PaymentResponsePtr, PaymentCompleter*);
29 virtual ~PaymentResponse(); 29 virtual ~PaymentResponse();
30 30
31 const String& methodName() const { return m_methodName; } 31 const String& methodName() const { return m_methodName; }
32 ScriptValue details(ScriptState*, ExceptionState&) const; 32 ScriptValue details(ScriptState*, ExceptionState&) const;
33 33
34 ScriptPromise complete(ScriptState*, bool success); 34 ScriptPromise complete(ScriptState*, bool success);
35 35
36 DECLARE_TRACE(); 36 DECLARE_TRACE();
37 37
38 private: 38 private:
39 String m_methodName; 39 String m_methodName;
40 String m_stringifiedDetails; 40 String m_stringifiedDetails;
41 Member<PaymentCompleter> m_paymentCompleter; 41 Member<PaymentCompleter> m_paymentCompleter;
42 }; 42 };
43 43
44 } // namespace blink 44 } // namespace blink
45 45
46 #endif // PaymentResponse_h 46 #endif // PaymentResponse_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698