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 #include "modules/serviceworkers/ServiceWorkerRegistration.h" | 5 #include "modules/serviceworkers/ServiceWorkerRegistration.h" |
6 | 6 |
7 #include "bindings/core/v8/CallbackPromiseAdapter.h" | 7 #include "bindings/core/v8/CallbackPromiseAdapter.h" |
8 #include "bindings/core/v8/ScriptPromise.h" | 8 #include "bindings/core/v8/ScriptPromise.h" |
9 #include "bindings/core/v8/ScriptState.h" | 9 #include "bindings/core/v8/ScriptState.h" |
10 #include "core/dom/DOMException.h" | 10 #include "core/dom/DOMException.h" |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 | 140 |
141 DEFINE_TRACE(ServiceWorkerRegistration) { | 141 DEFINE_TRACE(ServiceWorkerRegistration) { |
142 visitor->trace(m_installing); | 142 visitor->trace(m_installing); |
143 visitor->trace(m_waiting); | 143 visitor->trace(m_waiting); |
144 visitor->trace(m_active); | 144 visitor->trace(m_active); |
145 EventTargetWithInlineData::trace(visitor); | 145 EventTargetWithInlineData::trace(visitor); |
146 ActiveDOMObject::trace(visitor); | 146 ActiveDOMObject::trace(visitor); |
147 Supplementable<ServiceWorkerRegistration>::trace(visitor); | 147 Supplementable<ServiceWorkerRegistration>::trace(visitor); |
148 } | 148 } |
149 | 149 |
150 void ServiceWorkerRegistration::stop() { | 150 void ServiceWorkerRegistration::contextDestroyed() { |
151 if (m_stopped) | 151 if (m_stopped) |
152 return; | 152 return; |
153 m_stopped = true; | 153 m_stopped = true; |
154 m_handle->registration()->proxyStopped(); | 154 m_handle->registration()->proxyStopped(); |
155 } | 155 } |
156 | 156 |
157 } // namespace blink | 157 } // namespace blink |
OLD | NEW |