OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 #include "modules/notifications/NotificationEvent.h" | 53 #include "modules/notifications/NotificationEvent.h" |
54 #include "modules/notifications/NotificationEventInit.h" | 54 #include "modules/notifications/NotificationEventInit.h" |
55 #include "modules/push_messaging/PushEvent.h" | 55 #include "modules/push_messaging/PushEvent.h" |
56 #include "modules/push_messaging/PushMessageData.h" | 56 #include "modules/push_messaging/PushMessageData.h" |
57 #include "modules/serviceworkers/ExtendableEvent.h" | 57 #include "modules/serviceworkers/ExtendableEvent.h" |
58 #include "modules/serviceworkers/FetchEvent.h" | 58 #include "modules/serviceworkers/FetchEvent.h" |
59 #include "modules/serviceworkers/ServiceWorkerGlobalScope.h" | 59 #include "modules/serviceworkers/ServiceWorkerGlobalScope.h" |
60 #include "modules/serviceworkers/WaitUntilObserver.h" | 60 #include "modules/serviceworkers/WaitUntilObserver.h" |
61 #include "platform/RuntimeEnabledFeatures.h" | 61 #include "platform/RuntimeEnabledFeatures.h" |
62 #include "public/platform/WebCrossOriginServiceWorkerClient.h" | 62 #include "public/platform/WebCrossOriginServiceWorkerClient.h" |
63 #include "public/platform/WebServiceWorkerEventResult.h" | |
64 #include "public/platform/WebServiceWorkerRequest.h" | |
65 #include "public/platform/modules/notifications/WebNotificationData.h" | 63 #include "public/platform/modules/notifications/WebNotificationData.h" |
| 64 #include "public/platform/modules/serviceworker/WebServiceWorkerEventResult.h" |
| 65 #include "public/platform/modules/serviceworker/WebServiceWorkerRequest.h" |
66 #include "public/web/WebSerializedScriptValue.h" | 66 #include "public/web/WebSerializedScriptValue.h" |
67 #include "public/web/WebServiceWorkerContextClient.h" | 67 #include "public/web/modules/serviceworker/WebServiceWorkerContextClient.h" |
68 #include "web/WebEmbeddedWorkerImpl.h" | 68 #include "web/WebEmbeddedWorkerImpl.h" |
69 #include "wtf/Assertions.h" | 69 #include "wtf/Assertions.h" |
70 #include "wtf/Functional.h" | 70 #include "wtf/Functional.h" |
71 #include "wtf/PassOwnPtr.h" | 71 #include "wtf/PassOwnPtr.h" |
72 | 72 |
73 namespace blink { | 73 namespace blink { |
74 | 74 |
75 PassOwnPtr<ServiceWorkerGlobalScopeProxy> ServiceWorkerGlobalScopeProxy::create(
WebEmbeddedWorkerImpl& embeddedWorker, Document& document, WebServiceWorkerConte
xtClient& client) | 75 PassOwnPtr<ServiceWorkerGlobalScopeProxy> ServiceWorkerGlobalScopeProxy::create(
WebEmbeddedWorkerImpl& embeddedWorker, Document& document, WebServiceWorkerConte
xtClient& client) |
76 { | 76 { |
77 return adoptPtr(new ServiceWorkerGlobalScopeProxy(embeddedWorker, document,
client)); | 77 return adoptPtr(new ServiceWorkerGlobalScopeProxy(embeddedWorker, document,
client)); |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 ServiceWorkerGlobalScopeProxy::ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerIm
pl& embeddedWorker, Document& document, WebServiceWorkerContextClient& client) | 240 ServiceWorkerGlobalScopeProxy::ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerIm
pl& embeddedWorker, Document& document, WebServiceWorkerContextClient& client) |
241 : m_embeddedWorker(embeddedWorker) | 241 : m_embeddedWorker(embeddedWorker) |
242 , m_document(document) | 242 , m_document(document) |
243 , m_documentURL(document.url().copy()) | 243 , m_documentURL(document.url().copy()) |
244 , m_client(client) | 244 , m_client(client) |
245 , m_workerGlobalScope(nullptr) | 245 , m_workerGlobalScope(nullptr) |
246 { | 246 { |
247 } | 247 } |
248 | 248 |
249 } // namespace blink | 249 } // namespace blink |
OLD | NEW |