| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 #include "modules/serviceworkers/ExtendableMessageEvent.h" | 65 #include "modules/serviceworkers/ExtendableMessageEvent.h" |
| 66 #include "modules/serviceworkers/FetchEvent.h" | 66 #include "modules/serviceworkers/FetchEvent.h" |
| 67 #include "modules/serviceworkers/ForeignFetchEvent.h" | 67 #include "modules/serviceworkers/ForeignFetchEvent.h" |
| 68 #include "modules/serviceworkers/InstallEvent.h" | 68 #include "modules/serviceworkers/InstallEvent.h" |
| 69 #include "modules/serviceworkers/ServiceWorkerClient.h" | 69 #include "modules/serviceworkers/ServiceWorkerClient.h" |
| 70 #include "modules/serviceworkers/ServiceWorkerGlobalScope.h" | 70 #include "modules/serviceworkers/ServiceWorkerGlobalScope.h" |
| 71 #include "modules/serviceworkers/ServiceWorkerWindowClient.h" | 71 #include "modules/serviceworkers/ServiceWorkerWindowClient.h" |
| 72 #include "modules/serviceworkers/WaitUntilObserver.h" | 72 #include "modules/serviceworkers/WaitUntilObserver.h" |
| 73 #include "platform/CrossThreadFunctional.h" | 73 #include "platform/CrossThreadFunctional.h" |
| 74 #include "platform/RuntimeEnabledFeatures.h" | 74 #include "platform/RuntimeEnabledFeatures.h" |
| 75 #include "platform/wtf/Assertions.h" |
| 76 #include "platform/wtf/Functional.h" |
| 77 #include "platform/wtf/PtrUtil.h" |
| 75 #include "public/platform/modules/notifications/WebNotificationData.h" | 78 #include "public/platform/modules/notifications/WebNotificationData.h" |
| 76 #include "public/platform/modules/serviceworker/WebServiceWorkerEventResult.h" | 79 #include "public/platform/modules/serviceworker/WebServiceWorkerEventResult.h" |
| 77 #include "public/platform/modules/serviceworker/WebServiceWorkerRequest.h" | 80 #include "public/platform/modules/serviceworker/WebServiceWorkerRequest.h" |
| 78 #include "public/web/WebSerializedScriptValue.h" | 81 #include "public/web/WebSerializedScriptValue.h" |
| 79 #include "public/web/modules/serviceworker/WebServiceWorkerContextClient.h" | 82 #include "public/web/modules/serviceworker/WebServiceWorkerContextClient.h" |
| 80 #include "web/WebEmbeddedWorkerImpl.h" | 83 #include "web/WebEmbeddedWorkerImpl.h" |
| 81 #include "wtf/Assertions.h" | |
| 82 #include "wtf/Functional.h" | |
| 83 #include "wtf/PtrUtil.h" | |
| 84 | 84 |
| 85 namespace blink { | 85 namespace blink { |
| 86 | 86 |
| 87 ServiceWorkerGlobalScopeProxy* ServiceWorkerGlobalScopeProxy::create( | 87 ServiceWorkerGlobalScopeProxy* ServiceWorkerGlobalScopeProxy::create( |
| 88 WebEmbeddedWorkerImpl& embeddedWorker, | 88 WebEmbeddedWorkerImpl& embeddedWorker, |
| 89 Document& document, | 89 Document& document, |
| 90 WebServiceWorkerContextClient& client) { | 90 WebServiceWorkerContextClient& client) { |
| 91 return new ServiceWorkerGlobalScopeProxy(embeddedWorker, document, client); | 91 return new ServiceWorkerGlobalScopeProxy(embeddedWorker, document, client); |
| 92 } | 92 } |
| 93 | 93 |
| (...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 589 return *m_document; | 589 return *m_document; |
| 590 } | 590 } |
| 591 | 591 |
| 592 ServiceWorkerGlobalScope* ServiceWorkerGlobalScopeProxy::workerGlobalScope() | 592 ServiceWorkerGlobalScope* ServiceWorkerGlobalScopeProxy::workerGlobalScope() |
| 593 const { | 593 const { |
| 594 DCHECK(m_workerGlobalScope); | 594 DCHECK(m_workerGlobalScope); |
| 595 return m_workerGlobalScope; | 595 return m_workerGlobalScope; |
| 596 } | 596 } |
| 597 | 597 |
| 598 } // namespace blink | 598 } // namespace blink |
| OLD | NEW |