| 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/common/service_worker/service_worker_event_dispatcher.mojom"; | 7 import "content/common/service_worker/service_worker_event_dispatcher.mojom"; |
| 8 import "services/service_manager/public/interfaces/interface_provider.mojom"; | 8 import "services/service_manager/public/interfaces/interface_provider.mojom"; |
| 9 import "third_party/WebKit/public/web/console_message.mojom"; |
| 9 import "url/mojo/url.mojom"; | 10 import "url/mojo/url.mojom"; |
| 10 | 11 |
| 11 [Native] | 12 [Native] |
| 12 struct EmbeddedWorkerStartParams; | 13 struct EmbeddedWorkerStartParams; |
| 13 | 14 |
| 14 // Interface to control a renderer-side worker's environment. | 15 // Interface to control a renderer-side worker's environment. |
| 15 interface EmbeddedWorkerInstanceClient { | 16 interface EmbeddedWorkerInstanceClient { |
| 16 StartWorker(EmbeddedWorkerStartParams params, | 17 StartWorker(EmbeddedWorkerStartParams params, |
| 17 ServiceWorkerEventDispatcher& dispatcher_request); | 18 ServiceWorkerEventDispatcher& dispatcher_request); |
| 18 StopWorker() => (); | 19 StopWorker() => (); |
| 20 ResumeAfterDownload(); |
| 21 AddMessageToConsole(blink.mojom.ConsoleMessageLevel level, |
| 22 string message); |
| 19 }; | 23 }; |
| OLD | NEW |