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

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

Issue 2651613002: Use a new Supplement constructor for ServiceWorkerRegistration supplements (Closed)
Patch Set: temp Created 3 years, 10 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 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"
(...skipping 14 matching lines...) Expand all
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 PaymentAppManager* paymentAppManager(ScriptState*,
29 ServiceWorkerRegistration&); 29 ServiceWorkerRegistration&);
30 PaymentAppManager* paymentAppManager(ScriptState*); 30 PaymentAppManager* paymentAppManager(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;
39 Member<PaymentAppManager> m_paymentAppManager; 38 Member<PaymentAppManager> m_paymentAppManager;
40 }; 39 };
41 40
42 } // namespace blink 41 } // namespace blink
43 42
44 #endif // PaymentAppServiceWorkerRegistration_h 43 #endif // PaymentAppServiceWorkerRegistration_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698