| 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 module content.mojom; | 5 module content.mojom; |
| 6 | 6 |
| 7 import "url/mojo/url.mojom"; |
| 7 import "services/shell/public/interfaces/interface_provider.mojom"; | 8 import "services/shell/public/interfaces/interface_provider.mojom"; |
| 8 | 9 |
| 10 |
| 9 interface EmbeddedWorkerSetup { | 11 interface EmbeddedWorkerSetup { |
| 10 ExchangeInterfaceProviders( | 12 ExchangeInterfaceProviders( |
| 11 int32 thread_id, | 13 int32 thread_id, |
| 12 shell.mojom.InterfaceProvider& remote_interfaces, | 14 shell.mojom.InterfaceProvider& remote_interfaces, |
| 13 shell.mojom.InterfaceProvider local_interfaces); | 15 shell.mojom.InterfaceProvider local_interfaces); |
| 14 }; | 16 }; |
| 17 |
| 18 struct WorkerScript { |
| 19 string url; |
| 20 handle<data_pipe_consumer> data_pipe; |
| 21 handle<data_pipe_consumer>? meta_data_pipe; |
| 22 }; |
| 23 |
| 24 struct WorkerScriptList { |
| 25 array<WorkerScript> scripts; |
| 26 }; |
| 27 |
| 28 interface IsolatedWorkerDispatcher { |
| 29 StartServiceWorker(int64 version_id, string scope, string script_url, shell.mo
jom.InterfaceProvider& remote_interfaces, shell.mojom.InterfaceProvider local_in
terfaces, WorkerScriptList script_list); |
| 30 }; |
| 31 |
| 32 interface IsolatedWorkerDispatcherReciever{ |
| 33 SetDispatcher(IsolatedWorkerDispatcher dispatcher); |
| 34 }; |
| OLD | NEW |