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 "config.h" | 5 #include "config.h" |
6 #include "ServiceWorkerRegistration.h" | 6 #include "ServiceWorkerRegistration.h" |
7 | 7 |
8 #include "bindings/core/v8/CallbackPromiseAdapter.h" | 8 #include "bindings/core/v8/CallbackPromiseAdapter.h" |
9 #include "bindings/core/v8/ScriptPromise.h" | 9 #include "bindings/core/v8/ScriptPromise.h" |
10 #include "bindings/core/v8/ScriptPromiseResolver.h" | 10 #include "bindings/core/v8/ScriptPromiseResolver.h" |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 ASSERT(m_outerRegistration); | 138 ASSERT(m_outerRegistration); |
139 ScriptWrappable::init(this); | 139 ScriptWrappable::init(this); |
140 | 140 |
141 if (!executionContext) | 141 if (!executionContext) |
142 return; | 142 return; |
143 if (ServiceWorkerContainerClient* client = ServiceWorkerContainerClient::fro
m(executionContext)) | 143 if (ServiceWorkerContainerClient* client = ServiceWorkerContainerClient::fro
m(executionContext)) |
144 m_provider = client->provider(); | 144 m_provider = client->provider(); |
145 m_outerRegistration->setProxy(this); | 145 m_outerRegistration->setProxy(this); |
146 } | 146 } |
147 | 147 |
| 148 void ServiceWorkerRegistration::trace(Visitor* visitor) |
| 149 { |
| 150 visitor->trace(m_installing); |
| 151 visitor->trace(m_waiting); |
| 152 visitor->trace(m_active); |
| 153 EventTargetWithInlineData::trace(visitor); |
| 154 } |
| 155 |
148 } // namespace blink | 156 } // namespace blink |
OLD | NEW |