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 "third_party/WebKit/public/web/console_message.mojom"; |
10 import "url/mojo/url.mojom"; | 10 import "url/mojo/url.mojom"; |
11 | 11 |
12 [Native] | 12 [Native] |
13 struct EmbeddedWorkerStartParams; | 13 struct EmbeddedWorkerStartParams; |
14 | 14 |
15 // Interface to control a renderer-side worker's environment. | 15 // Interface to control a renderer-side worker's environment. |
16 interface EmbeddedWorkerInstanceClient { | 16 interface EmbeddedWorkerInstanceClient { |
17 StartWorker(EmbeddedWorkerStartParams params, | 17 StartWorker(EmbeddedWorkerStartParams params, |
18 ServiceWorkerEventDispatcher& dispatcher_request); | 18 ServiceWorkerEventDispatcher& dispatcher_request, |
19 associated EmbeddedWorkerInstanceHost instance_host); | |
19 StopWorker() => (); | 20 StopWorker() => (); |
20 ResumeAfterDownload(); | 21 ResumeAfterDownload(); |
21 AddMessageToConsole(blink.mojom.ConsoleMessageLevel level, | 22 AddMessageToConsole(blink.mojom.ConsoleMessageLevel level, |
22 string message); | 23 string message); |
23 }; | 24 }; |
25 | |
26 // Interface to control a browser-side embedded worker instance. | |
shimazu
2017/03/31 09:56:22
Please add a comment about the ordering.
leonhsl(Using Gerrit)
2017/04/04 07:14:04
Done.
| |
27 interface EmbeddedWorkerInstanceHost { | |
28 // Sent on main thread. | |
29 // Indicate that the worker is ready for inspection. | |
30 OnReadyForInspection(); | |
31 //OnScriptLoaded(); | |
32 //OnScriptLoadFailed(); | |
33 //OnStopped(); | |
34 | |
35 // Sent on worker thread. | |
36 //OnScriptEvaluated(bool success); | |
37 //OnStarted(); | |
38 //OnReportException(mojo.common.string16 error_message, int32 line_number, | |
39 // int32 column_number, GURL source_url); | |
40 //OnReportConsoleMessage(xxx xxx); | |
41 //OnWorkerThreadStarted(int32 thread_id, int32 provider_id); | |
42 }; | |
OLD | NEW |