| // Copyright 2017 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef CONTENT_RENDERER_SHARED_WORKER_SHARED_WORKER_FACTORY_IMPL_H_ |
| #define CONTENT_RENDERER_SHARED_WORKER_SHARED_WORKER_FACTORY_IMPL_H_ |
| |
| #include "base/macros.h" |
| #include "content/common/shared_worker/shared_worker_factory.mojom.h" |
| |
| namespace content { |
| |
| class SharedWorkerFactoryImpl : public mojom::SharedWorkerFactory { |
| public: |
| static void Create(mojom::SharedWorkerFactoryRequest request); |
| |
| private: |
| SharedWorkerFactoryImpl(); |
| |
| // mojom::SharedWorkerFactory methods: |
| void CreateSharedWorker( |
| mojom::SharedWorkerInfoPtr info, |
| bool pause_on_start, |
| const base::UnguessableToken& devtools_worker_token, |
| blink::mojom::WorkerContentSettingsProxyPtr content_settings, |
| mojom::SharedWorkerHostPtr host, |
| mojom::SharedWorkerRequest request, |
| service_manager::mojom::InterfaceProviderPtr interface_provider) override; |
| |
| DISALLOW_COPY_AND_ASSIGN(SharedWorkerFactoryImpl); |
| }; |
| |
| } // namespace content |
| |
| #endif // CONTENT_RENDERER_SHARED_WORKER_SHARED_WORKER_FACTORY_IMPL_H_ |