| 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 ServiceWorkerContainerClient_h | 5 #ifndef ServiceWorkerContainerClient_h |
| 6 #define ServiceWorkerContainerClient_h | 6 #define ServiceWorkerContainerClient_h |
| 7 | 7 |
| 8 #include <memory> |
| 8 #include "core/dom/Document.h" | 9 #include "core/dom/Document.h" |
| 9 #include "core/workers/WorkerClients.h" | 10 #include "core/workers/WorkerClients.h" |
| 10 #include "modules/ModulesExport.h" | 11 #include "modules/ModulesExport.h" |
| 11 #include "wtf/Forward.h" | 12 #include "wtf/Forward.h" |
| 12 #include <memory> | |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 class ExecutionContext; | 16 class ExecutionContext; |
| 17 class WebServiceWorkerProvider; | 17 class WebServiceWorkerProvider; |
| 18 | 18 |
| 19 // This mainly exists to provide access to WebServiceWorkerProvider. | 19 // This mainly exists to provide access to WebServiceWorkerProvider. |
| 20 // Owned by Document (or WorkerClients). | 20 // Owned by Document (or WorkerClients). |
| 21 class MODULES_EXPORT ServiceWorkerContainerClient final | 21 class MODULES_EXPORT ServiceWorkerContainerClient final |
| 22 : public GarbageCollectedFinalized<ServiceWorkerContainerClient>, | 22 : public GarbageCollectedFinalized<ServiceWorkerContainerClient>, |
| (...skipping 23 matching lines...) Expand all Loading... |
| 46 std::unique_ptr<WebServiceWorkerProvider> m_provider; | 46 std::unique_ptr<WebServiceWorkerProvider> m_provider; |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 MODULES_EXPORT void provideServiceWorkerContainerClientToWorker( | 49 MODULES_EXPORT void provideServiceWorkerContainerClientToWorker( |
| 50 WorkerClients*, | 50 WorkerClients*, |
| 51 std::unique_ptr<WebServiceWorkerProvider>); | 51 std::unique_ptr<WebServiceWorkerProvider>); |
| 52 | 52 |
| 53 } // namespace blink | 53 } // namespace blink |
| 54 | 54 |
| 55 #endif // ServiceWorkerContainerClient_h | 55 #endif // ServiceWorkerContainerClient_h |
| OLD | NEW |