| 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 "ServiceWorkerContainerClient.h" | 6 #include "ServiceWorkerContainerClient.h" |
| 7 | 7 |
| 8 #include "core/dom/Document.h" | 8 #include "core/dom/Document.h" |
| 9 #include "core/dom/ExecutionContext.h" | 9 #include "core/dom/ExecutionContext.h" |
| 10 #include "core/frame/LocalFrame.h" | 10 #include "core/frame/LocalFrame.h" |
| 11 #include "core/loader/FrameLoaderClient.h" | 11 #include "core/loader/FrameLoaderClient.h" |
| 12 #include "core/workers/WorkerGlobalScope.h" | 12 #include "core/workers/WorkerGlobalScope.h" |
| 13 #include "public/platform/WebServiceWorkerProvider.h" | 13 #include "public/platform/modules/serviceworker/WebServiceWorkerProvider.h" |
| 14 | 14 |
| 15 namespace blink { | 15 namespace blink { |
| 16 | 16 |
| 17 PassOwnPtrWillBeRawPtr<ServiceWorkerContainerClient> ServiceWorkerContainerClien
t::create(PassOwnPtr<WebServiceWorkerProvider> provider) | 17 PassOwnPtrWillBeRawPtr<ServiceWorkerContainerClient> ServiceWorkerContainerClien
t::create(PassOwnPtr<WebServiceWorkerProvider> provider) |
| 18 { | 18 { |
| 19 return adoptPtrWillBeNoop(new ServiceWorkerContainerClient(provider)); | 19 return adoptPtrWillBeNoop(new ServiceWorkerContainerClient(provider)); |
| 20 } | 20 } |
| 21 | 21 |
| 22 ServiceWorkerContainerClient::~ServiceWorkerContainerClient() | 22 ServiceWorkerContainerClient::~ServiceWorkerContainerClient() |
| 23 { | 23 { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 53 : m_provider(provider) | 53 : m_provider(provider) |
| 54 { | 54 { |
| 55 } | 55 } |
| 56 | 56 |
| 57 void provideServiceWorkerContainerClientToWorker(WorkerClients* clients, PassOwn
Ptr<WebServiceWorkerProvider> provider) | 57 void provideServiceWorkerContainerClientToWorker(WorkerClients* clients, PassOwn
Ptr<WebServiceWorkerProvider> provider) |
| 58 { | 58 { |
| 59 clients->provideSupplement(ServiceWorkerContainerClient::supplementName(), S
erviceWorkerContainerClient::create(provider)); | 59 clients->provideSupplement(ServiceWorkerContainerClient::supplementName(), S
erviceWorkerContainerClient::create(provider)); |
| 60 } | 60 } |
| 61 | 61 |
| 62 } // namespace blink | 62 } // namespace blink |
| OLD | NEW |