| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "content/public/common/web_preferences.mojom"; | 7 import "content/public/common/web_preferences.mojom"; |
| 8 import "services/shell/public/interfaces/interface_provider.mojom"; | 8 import "services/shell/public/interfaces/interface_provider.mojom"; |
| 9 import "url/mojo/url.mojom"; | 9 import "url/mojo/url.mojom"; |
| 10 | 10 |
| 11 struct EmbeddedWorkerSettings { | 11 struct EmbeddedWorkerSettings { |
| 12 V8CacheOptions v8_cache_options; | 12 V8CacheOptions v8_cache_options; |
| 13 bool data_saver_enabled; | 13 bool data_saver_enabled; |
| 14 }; | 14 }; |
| 15 | 15 |
| 16 struct EmbeddedWorkerStartWorkerParams { | 16 struct EmbeddedWorkerStartWorkerParams { |
| 17 int32 embedded_worker_id; | 17 int32 embedded_worker_id; |
| 18 int64 service_worker_version_id; | 18 int64 service_worker_version_id; |
| 19 url.mojom.Url scope; | 19 url.mojom.Url scope; |
| 20 url.mojom.Url script_url; | 20 url.mojom.Url script_url; |
| 21 int32 worker_devtools_agent_route_id; | 21 int32 worker_devtools_agent_route_id; |
| 22 bool pause_after_download; | 22 bool pause_after_download; |
| 23 bool wait_for_debugger; | 23 bool wait_for_debugger; |
| 24 bool is_installed; | 24 bool is_installed; |
| 25 EmbeddedWorkerSettings settings; | 25 EmbeddedWorkerSettings settings; |
| 26 }; | 26 }; |
| 27 | 27 |
| 28 interface EmbeddedWorkerInstanceClient { | 28 interface EmbeddedWorkerInstanceClient { |
| 29 StartWorker(EmbeddedWorkerStartWorkerParams params); | 29 StartWorker(EmbeddedWorkerStartWorkerParams params); |
| 30 StopWorker() => (); |
| 30 }; | 31 }; |
| OLD | NEW |