| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 static void dispose(WebType* registration); | 49 static void dispose(WebType* registration); |
| 50 | 50 |
| 51 PassRefPtrWillBeRawPtr<ServiceWorker> installing() { return m_installing.get
(); } | 51 PassRefPtrWillBeRawPtr<ServiceWorker> installing() { return m_installing.get
(); } |
| 52 PassRefPtrWillBeRawPtr<ServiceWorker> waiting() { return m_waiting.get(); } | 52 PassRefPtrWillBeRawPtr<ServiceWorker> waiting() { return m_waiting.get(); } |
| 53 PassRefPtrWillBeRawPtr<ServiceWorker> active() { return m_active.get(); } | 53 PassRefPtrWillBeRawPtr<ServiceWorker> active() { return m_active.get(); } |
| 54 | 54 |
| 55 String scope() const; | 55 String scope() const; |
| 56 | 56 |
| 57 WebServiceWorkerRegistration* webRegistration() { return m_outerRegistration
.get(); } | 57 WebServiceWorkerRegistration* webRegistration() { return m_outerRegistration
.get(); } |
| 58 | 58 |
| 59 void update(ScriptState*, ExceptionState&); | |
| 60 ScriptPromise unregister(ScriptState*); | 59 ScriptPromise unregister(ScriptState*); |
| 61 | 60 |
| 62 DEFINE_ATTRIBUTE_EVENT_LISTENER(updatefound); | 61 DEFINE_ATTRIBUTE_EVENT_LISTENER(updatefound); |
| 63 | 62 |
| 64 virtual ~ServiceWorkerRegistration() override; | 63 virtual ~ServiceWorkerRegistration() override; |
| 65 | 64 |
| 66 // Eager finalization needed to promptly release owned WebServiceWorkerRegis
tration. | 65 // Eager finalization needed to promptly release owned WebServiceWorkerRegis
tration. |
| 67 EAGERLY_FINALIZE(); | 66 EAGERLY_FINALIZE(); |
| 68 DECLARE_VIRTUAL_TRACE(); | 67 DECLARE_VIRTUAL_TRACE(); |
| 69 | 68 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 80 RefPtrWillBeMember<ServiceWorker> m_installing; | 79 RefPtrWillBeMember<ServiceWorker> m_installing; |
| 81 RefPtrWillBeMember<ServiceWorker> m_waiting; | 80 RefPtrWillBeMember<ServiceWorker> m_waiting; |
| 82 RefPtrWillBeMember<ServiceWorker> m_active; | 81 RefPtrWillBeMember<ServiceWorker> m_active; |
| 83 | 82 |
| 84 bool m_stopped; | 83 bool m_stopped; |
| 85 }; | 84 }; |
| 86 | 85 |
| 87 } // namespace blink | 86 } // namespace blink |
| 88 | 87 |
| 89 #endif // ServiceWorkerRegistration_h | 88 #endif // ServiceWorkerRegistration_h |
| OLD | NEW |