| OLD | NEW |
| 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 "core/dom/ActiveDOMObject.h" | 8 #include "core/dom/ActiveDOMObject.h" |
| 9 #include "core/events/EventTarget.h" | 9 #include "core/events/EventTarget.h" |
| 10 #include "modules/serviceworkers/ServiceWorker.h" | 10 #include "modules/serviceworkers/ServiceWorker.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 class ScriptPromiseResolver; | 22 class ScriptPromiseResolver; |
| 23 class ScriptState; | 23 class ScriptState; |
| 24 class WebServiceWorkerProvider; | 24 class WebServiceWorkerProvider; |
| 25 | 25 |
| 26 class ServiceWorkerRegistration final | 26 class ServiceWorkerRegistration final |
| 27 : public RefCountedGarbageCollectedEventTargetWithInlineData<ServiceWorkerRe
gistration> | 27 : public RefCountedGarbageCollectedEventTargetWithInlineData<ServiceWorkerRe
gistration> |
| 28 , public ActiveDOMObject | 28 , public ActiveDOMObject |
| 29 , public WebServiceWorkerRegistrationProxy | 29 , public WebServiceWorkerRegistrationProxy |
| 30 , public HeapSupplementable<ServiceWorkerRegistration> { | 30 , public HeapSupplementable<ServiceWorkerRegistration> { |
| 31 DEFINE_WRAPPERTYPEINFO(); | 31 DEFINE_WRAPPERTYPEINFO(); |
| 32 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<S
erviceWorkerRegistration>); | 32 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(ServiceWorkerRegistration); |
| 33 USING_GARBAGE_COLLECTED_MIXIN(ServiceWorkerRegistration); | 33 USING_GARBAGE_COLLECTED_MIXIN(ServiceWorkerRegistration); |
| 34 public: | 34 public: |
| 35 // EventTarget overrides. | 35 // EventTarget overrides. |
| 36 virtual const AtomicString& interfaceName() const override; | 36 virtual const AtomicString& interfaceName() const override; |
| 37 virtual ExecutionContext* executionContext() const override { return ActiveD
OMObject::executionContext(); } | 37 virtual ExecutionContext* executionContext() const override { return ActiveD
OMObject::executionContext(); } |
| 38 | 38 |
| 39 // WebServiceWorkerRegistrationProxy overrides. | 39 // WebServiceWorkerRegistrationProxy overrides. |
| 40 virtual void dispatchUpdateFoundEvent() override; | 40 virtual void dispatchUpdateFoundEvent() override; |
| 41 virtual void setInstalling(WebServiceWorker*) override; | 41 virtual void setInstalling(WebServiceWorker*) override; |
| 42 virtual void setWaiting(WebServiceWorker*) override; | 42 virtual void setWaiting(WebServiceWorker*) override; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 RefPtrWillBeMember<ServiceWorker> m_installing; | 79 RefPtrWillBeMember<ServiceWorker> m_installing; |
| 80 RefPtrWillBeMember<ServiceWorker> m_waiting; | 80 RefPtrWillBeMember<ServiceWorker> m_waiting; |
| 81 RefPtrWillBeMember<ServiceWorker> m_active; | 81 RefPtrWillBeMember<ServiceWorker> m_active; |
| 82 | 82 |
| 83 bool m_stopped; | 83 bool m_stopped; |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 } // namespace blink | 86 } // namespace blink |
| 87 | 87 |
| 88 #endif // ServiceWorkerRegistration_h | 88 #endif // ServiceWorkerRegistration_h |
| OLD | NEW |