OLD | NEW |
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 PaymentAppServiceWorkerRegistration_h | 5 #ifndef PaymentAppServiceWorkerRegistration_h |
6 #define PaymentAppServiceWorkerRegistration_h | 6 #define PaymentAppServiceWorkerRegistration_h |
7 | 7 |
8 #include "modules/serviceworkers/ServiceWorkerRegistration.h" | 8 #include "modules/serviceworkers/ServiceWorkerRegistration.h" |
9 #include "platform/Supplementable.h" | 9 #include "platform/Supplementable.h" |
10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 class PaymentAppManager; | 14 class PaymentManager; |
15 class ScriptState; | 15 class ScriptState; |
16 class ServiceWorkerRegistration; | 16 class ServiceWorkerRegistration; |
17 | 17 |
18 class PaymentAppServiceWorkerRegistration final | 18 class PaymentAppServiceWorkerRegistration final |
19 : public GarbageCollectedFinalized<PaymentAppServiceWorkerRegistration>, | 19 : public GarbageCollectedFinalized<PaymentAppServiceWorkerRegistration>, |
20 public Supplement<ServiceWorkerRegistration> { | 20 public Supplement<ServiceWorkerRegistration> { |
21 USING_GARBAGE_COLLECTED_MIXIN(PaymentAppServiceWorkerRegistration); | 21 USING_GARBAGE_COLLECTED_MIXIN(PaymentAppServiceWorkerRegistration); |
22 WTF_MAKE_NONCOPYABLE(PaymentAppServiceWorkerRegistration); | 22 WTF_MAKE_NONCOPYABLE(PaymentAppServiceWorkerRegistration); |
23 | 23 |
24 public: | 24 public: |
25 virtual ~PaymentAppServiceWorkerRegistration(); | 25 virtual ~PaymentAppServiceWorkerRegistration(); |
26 static PaymentAppServiceWorkerRegistration& from(ServiceWorkerRegistration&); | 26 static PaymentAppServiceWorkerRegistration& from(ServiceWorkerRegistration&); |
27 | 27 |
28 static PaymentAppManager* paymentAppManager(ScriptState*, | 28 static PaymentManager* paymentManager(ScriptState*, |
29 ServiceWorkerRegistration&); | 29 ServiceWorkerRegistration&); |
30 PaymentAppManager* paymentAppManager(ScriptState*); | 30 PaymentManager* paymentManager(ScriptState*); |
31 | 31 |
32 DECLARE_VIRTUAL_TRACE(); | 32 DECLARE_VIRTUAL_TRACE(); |
33 | 33 |
34 private: | 34 private: |
35 explicit PaymentAppServiceWorkerRegistration(ServiceWorkerRegistration*); | 35 explicit PaymentAppServiceWorkerRegistration(ServiceWorkerRegistration*); |
36 static const char* supplementName(); | 36 static const char* supplementName(); |
37 | 37 |
38 Member<ServiceWorkerRegistration> m_registration; | 38 Member<ServiceWorkerRegistration> m_registration; |
39 Member<PaymentAppManager> m_paymentAppManager; | 39 Member<PaymentManager> m_paymentManager; |
40 }; | 40 }; |
41 | 41 |
42 } // namespace blink | 42 } // namespace blink |
43 | 43 |
44 #endif // PaymentAppServiceWorkerRegistration_h | 44 #endif // PaymentAppServiceWorkerRegistration_h |
OLD | NEW |