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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 #include "modules/notifications/Notification.h" | 51 #include "modules/notifications/Notification.h" |
52 #include "modules/notifications/NotificationEvent.h" | 52 #include "modules/notifications/NotificationEvent.h" |
53 #include "modules/push_messaging/PushEvent.h" | 53 #include "modules/push_messaging/PushEvent.h" |
54 #include "modules/push_messaging/PushMessageData.h" | 54 #include "modules/push_messaging/PushMessageData.h" |
55 #include "modules/serviceworkers/ExtendableEvent.h" | 55 #include "modules/serviceworkers/ExtendableEvent.h" |
56 #include "modules/serviceworkers/FetchEvent.h" | 56 #include "modules/serviceworkers/FetchEvent.h" |
57 #include "modules/serviceworkers/ServiceWorkerGlobalScope.h" | 57 #include "modules/serviceworkers/ServiceWorkerGlobalScope.h" |
58 #include "modules/serviceworkers/WaitUntilObserver.h" | 58 #include "modules/serviceworkers/WaitUntilObserver.h" |
59 #include "platform/RuntimeEnabledFeatures.h" | 59 #include "platform/RuntimeEnabledFeatures.h" |
60 #include "public/platform/WebCrossOriginServiceWorkerClient.h" | 60 #include "public/platform/WebCrossOriginServiceWorkerClient.h" |
61 #include "public/platform/WebServiceWorkerEventResult.h" | |
62 #include "public/platform/WebServiceWorkerRequest.h" | |
63 #include "public/platform/modules/notifications/WebNotificationData.h" | 61 #include "public/platform/modules/notifications/WebNotificationData.h" |
| 62 #include "public/platform/modules/serviceworker/WebServiceWorkerEventResult.h" |
| 63 #include "public/platform/modules/serviceworker/WebServiceWorkerRequest.h" |
64 #include "public/web/WebSerializedScriptValue.h" | 64 #include "public/web/WebSerializedScriptValue.h" |
65 #include "public/web/WebServiceWorkerContextClient.h" | 65 #include "public/web/modules/serviceworker/WebServiceWorkerContextClient.h" |
66 #include "web/WebEmbeddedWorkerImpl.h" | 66 #include "web/WebEmbeddedWorkerImpl.h" |
67 #include "wtf/Assertions.h" | 67 #include "wtf/Assertions.h" |
68 #include "wtf/Functional.h" | 68 #include "wtf/Functional.h" |
69 #include "wtf/PassOwnPtr.h" | 69 #include "wtf/PassOwnPtr.h" |
70 | 70 |
71 namespace blink { | 71 namespace blink { |
72 | 72 |
73 PassOwnPtr<ServiceWorkerGlobalScopeProxy> ServiceWorkerGlobalScopeProxy::create(
WebEmbeddedWorkerImpl& embeddedWorker, Document& document, WebServiceWorkerConte
xtClient& client) | 73 PassOwnPtr<ServiceWorkerGlobalScopeProxy> ServiceWorkerGlobalScopeProxy::create(
WebEmbeddedWorkerImpl& embeddedWorker, Document& document, WebServiceWorkerConte
xtClient& client) |
74 { | 74 { |
75 return adoptPtr(new ServiceWorkerGlobalScopeProxy(embeddedWorker, document,
client)); | 75 return adoptPtr(new ServiceWorkerGlobalScopeProxy(embeddedWorker, document,
client)); |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 | 229 |
230 ServiceWorkerGlobalScopeProxy::ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerIm
pl& embeddedWorker, Document& document, WebServiceWorkerContextClient& client) | 230 ServiceWorkerGlobalScopeProxy::ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerIm
pl& embeddedWorker, Document& document, WebServiceWorkerContextClient& client) |
231 : m_embeddedWorker(embeddedWorker) | 231 : m_embeddedWorker(embeddedWorker) |
232 , m_document(document) | 232 , m_document(document) |
233 , m_client(client) | 233 , m_client(client) |
234 , m_workerGlobalScope(0) | 234 , m_workerGlobalScope(0) |
235 { | 235 { |
236 } | 236 } |
237 | 237 |
238 } // namespace blink | 238 } // namespace blink |
OLD | NEW |