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 "bindings/core/v8/ActiveScriptWrappable.h" | 8 #include "bindings/core/v8/ActiveScriptWrappable.h" |
9 #include "bindings/core/v8/ScriptPromiseResolver.h" | 9 #include "bindings/core/v8/ScriptPromiseResolver.h" |
10 #include "core/dom/ActiveDOMObject.h" | 10 #include "core/dom/ActiveDOMObject.h" |
11 #include "core/events/EventTarget.h" | 11 #include "core/events/EventTarget.h" |
12 #include "modules/serviceworkers/ServiceWorker.h" | 12 #include "modules/serviceworkers/ServiceWorker.h" |
13 #include "modules/serviceworkers/ServiceWorkerRegistration.h" | 13 #include "modules/serviceworkers/ServiceWorkerRegistration.h" |
14 #include "platform/Supplementable.h" | 14 #include "platform/Supplementable.h" |
15 #include "public/platform/modules/serviceworker/WebServiceWorkerRegistration.h" | 15 #include "public/platform/modules/serviceworker/WebServiceWorkerRegistration.h" |
16 #include "public/platform/modules/serviceworker/WebServiceWorkerRegistrationProx
y.h" | 16 #include "public/platform/modules/serviceworker/WebServiceWorkerRegistrationProx
y.h" |
| 17 #include "wtf/Forward.h" |
17 #include "wtf/OwnPtr.h" | 18 #include "wtf/OwnPtr.h" |
18 #include "wtf/PassOwnPtr.h" | |
19 #include "wtf/PassRefPtr.h" | |
20 #include "wtf/RefCounted.h" | |
21 | 19 |
22 namespace blink { | 20 namespace blink { |
23 | 21 |
24 class ScriptPromise; | 22 class ScriptPromise; |
25 class ScriptState; | 23 class ScriptState; |
26 class WebServiceWorkerProvider; | 24 class WebServiceWorkerProvider; |
27 | 25 |
28 // The implementation of a service worker registration object in Blink. Actual | 26 // The implementation of a service worker registration object in Blink. Actual |
29 // registration representation is in the embedder and this class accesses it | 27 // registration representation is in the embedder and this class accesses it |
30 // via WebServiceWorkerRegistration::Handle object. | 28 // via WebServiceWorkerRegistration::Handle object. |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 HeapVector<Member<ServiceWorkerRegistration>> registrations; | 96 HeapVector<Member<ServiceWorkerRegistration>> registrations; |
99 for (auto& registration : *webServiceWorkerRegistrations) | 97 for (auto& registration : *webServiceWorkerRegistrations) |
100 registrations.append(ServiceWorkerRegistration::getOrCreate(resolver
->getExecutionContext(), registration.release())); | 98 registrations.append(ServiceWorkerRegistration::getOrCreate(resolver
->getExecutionContext(), registration.release())); |
101 return registrations; | 99 return registrations; |
102 } | 100 } |
103 }; | 101 }; |
104 | 102 |
105 } // namespace blink | 103 } // namespace blink |
106 | 104 |
107 #endif // ServiceWorkerRegistration_h | 105 #endif // ServiceWorkerRegistration_h |
OLD | NEW |