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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 PassRefPtrWillBeRawPtr<ServiceWorker> installing() { return m_installing.get
(); } | 50 PassRefPtrWillBeRawPtr<ServiceWorker> installing() { return m_installing.get
(); } |
51 PassRefPtrWillBeRawPtr<ServiceWorker> waiting() { return m_waiting.get(); } | 51 PassRefPtrWillBeRawPtr<ServiceWorker> waiting() { return m_waiting.get(); } |
52 PassRefPtrWillBeRawPtr<ServiceWorker> active() { return m_active.get(); } | 52 PassRefPtrWillBeRawPtr<ServiceWorker> active() { return m_active.get(); } |
53 | 53 |
54 String scope() const; | 54 String scope() const; |
55 | 55 |
56 ScriptPromise unregister(ScriptState*); | 56 ScriptPromise unregister(ScriptState*); |
57 | 57 |
58 DEFINE_ATTRIBUTE_EVENT_LISTENER(updatefound); | 58 DEFINE_ATTRIBUTE_EVENT_LISTENER(updatefound); |
59 | 59 |
| 60 virtual void trace(Visitor*) OVERRIDE; |
| 61 |
60 private: | 62 private: |
61 static PassRefPtrWillBeRawPtr<ServiceWorkerRegistration> create(ExecutionCon
text*, PassOwnPtr<WebServiceWorkerRegistration>); | 63 static PassRefPtrWillBeRawPtr<ServiceWorkerRegistration> create(ExecutionCon
text*, PassOwnPtr<WebServiceWorkerRegistration>); |
62 ServiceWorkerRegistration(ExecutionContext*, PassOwnPtr<WebServiceWorkerRegi
stration>); | 64 ServiceWorkerRegistration(ExecutionContext*, PassOwnPtr<WebServiceWorkerRegi
stration>); |
63 | 65 |
64 OwnPtr<WebServiceWorkerRegistration> m_outerRegistration; | 66 OwnPtr<WebServiceWorkerRegistration> m_outerRegistration; |
65 WebServiceWorkerProvider* m_provider; | 67 WebServiceWorkerProvider* m_provider; |
66 RefPtrWillBeMember<ServiceWorker> m_installing; | 68 RefPtrWillBeMember<ServiceWorker> m_installing; |
67 RefPtrWillBeMember<ServiceWorker> m_waiting; | 69 RefPtrWillBeMember<ServiceWorker> m_waiting; |
68 RefPtrWillBeMember<ServiceWorker> m_active; | 70 RefPtrWillBeMember<ServiceWorker> m_active; |
69 }; | 71 }; |
70 | 72 |
71 } // namespace blink | 73 } // namespace blink |
72 | 74 |
73 #endif // ServiceWorkerRegistration_h | 75 #endif // ServiceWorkerRegistration_h |
OLD | NEW |