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

Side by Side Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerRegistration.h

Issue 1851743002: Simplify Supplementables post Oilpan. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix component build Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 ServiceWorkerRegistration_h 5 #ifndef ServiceWorkerRegistration_h
6 #define ServiceWorkerRegistration_h 6 #define ServiceWorkerRegistration_h
7 7
8 #include "bindings/core/v8/ActiveScriptWrappable.h" 8 #include "bindings/core/v8/ActiveScriptWrappable.h"
9 #include "bindings/core/v8/ScriptPromiseResolver.h" 9 #include "bindings/core/v8/ScriptPromiseResolver.h"
10 #include "core/dom/ActiveDOMObject.h" 10 #include "core/dom/ActiveDOMObject.h"
(...skipping 15 matching lines...) Expand all
26 class WebServiceWorkerProvider; 26 class WebServiceWorkerProvider;
27 27
28 // The implementation of a service worker registration object in Blink. Actual 28 // The implementation of a service worker registration object in Blink. Actual
29 // registration representation is in the embedder and this class accesses it 29 // registration representation is in the embedder and this class accesses it
30 // via WebServiceWorkerRegistration::Handle object. 30 // via WebServiceWorkerRegistration::Handle object.
31 class ServiceWorkerRegistration final 31 class ServiceWorkerRegistration final
32 : public RefCountedGarbageCollectedEventTargetWithInlineData<ServiceWorkerRe gistration> 32 : public RefCountedGarbageCollectedEventTargetWithInlineData<ServiceWorkerRe gistration>
33 , public ActiveScriptWrappable 33 , public ActiveScriptWrappable
34 , public ActiveDOMObject 34 , public ActiveDOMObject
35 , public WebServiceWorkerRegistrationProxy 35 , public WebServiceWorkerRegistrationProxy
36 , public HeapSupplementable<ServiceWorkerRegistration> { 36 , public Supplementable<ServiceWorkerRegistration> {
37 DEFINE_WRAPPERTYPEINFO(); 37 DEFINE_WRAPPERTYPEINFO();
38 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(ServiceWorkerRegistration); 38 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(ServiceWorkerRegistration);
39 USING_GARBAGE_COLLECTED_MIXIN(ServiceWorkerRegistration); 39 USING_GARBAGE_COLLECTED_MIXIN(ServiceWorkerRegistration);
40 public: 40 public:
41 // EventTarget overrides. 41 // EventTarget overrides.
42 const AtomicString& interfaceName() const override; 42 const AtomicString& interfaceName() const override;
43 ExecutionContext* getExecutionContext() const override { return ActiveDOMObj ect::getExecutionContext(); } 43 ExecutionContext* getExecutionContext() const override { return ActiveDOMObj ect::getExecutionContext(); }
44 44
45 // WebServiceWorkerRegistrationProxy overrides. 45 // WebServiceWorkerRegistrationProxy overrides.
46 void dispatchUpdateFoundEvent() override; 46 void dispatchUpdateFoundEvent() override;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 HeapVector<Member<ServiceWorkerRegistration>> registrations; 99 HeapVector<Member<ServiceWorkerRegistration>> registrations;
100 for (auto& registration : *webServiceWorkerRegistrations) 100 for (auto& registration : *webServiceWorkerRegistrations)
101 registrations.append(ServiceWorkerRegistration::getOrCreate(resolver ->getExecutionContext(), registration.release())); 101 registrations.append(ServiceWorkerRegistration::getOrCreate(resolver ->getExecutionContext(), registration.release()));
102 return registrations; 102 return registrations;
103 } 103 }
104 }; 104 };
105 105
106 } // namespace blink 106 } // namespace blink
107 107
108 #endif // ServiceWorkerRegistration_h 108 #endif // ServiceWorkerRegistration_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698