| // 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. |
| |
| module blink.mojom; |
| |
| import "services/service_manager/public/mojom/interface_provider.mojom"; |
| import "url/mojom/origin.mojom"; |
| |
| // The name of the InterfaceProviderSpec in service manifests used by the |
| // frame tree to expose dedicated-worker-specific interfaces between renderer |
| // and browser. |
| const string kNavigation_DedicatedWorkerSpec = "navigation:dedicated_worker"; |
| |
| interface DedicatedWorkerFactory { |
| // Informs the browser that the renderer has created a new dedicated worker, |
| // requesting |worker_interface_provider| to provide the worker access to mojo |
| // interfaces. |origin| must either be unique or match the origin of the |
| // creating document. |
| CreateDedicatedWorker( |
| url.mojom.Origin origin, |
| service_manager.mojom.InterfaceProvider& worker_interface_provider); |
| }; |