Chromium Code Reviews| Index: content/common/service_worker/embedded_worker.mojom |
| diff --git a/content/common/service_worker/embedded_worker.mojom b/content/common/service_worker/embedded_worker.mojom |
| index ad40ca1de37035fe6be8d1c62e82aedd97c7372d..f21c057c5d2830ac0c31539fda9453819ee9ba71 100644 |
| --- a/content/common/service_worker/embedded_worker.mojom |
| +++ b/content/common/service_worker/embedded_worker.mojom |
| @@ -15,9 +15,28 @@ struct EmbeddedWorkerStartParams; |
| // Interface to control a renderer-side worker's environment. |
| interface EmbeddedWorkerInstanceClient { |
| StartWorker(EmbeddedWorkerStartParams params, |
| - ServiceWorkerEventDispatcher& dispatcher_request); |
| + ServiceWorkerEventDispatcher& dispatcher_request, |
| + associated EmbeddedWorkerInstanceHost instance_host); |
| StopWorker() => (); |
| ResumeAfterDownload(); |
| AddMessageToConsole(blink.mojom.ConsoleMessageLevel level, |
| string message); |
| -}; |
| +}; |
| + |
| +// 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.
|
| +interface EmbeddedWorkerInstanceHost { |
| + // Sent on main thread. |
| + // Indicate that the worker is ready for inspection. |
| + OnReadyForInspection(); |
| + //OnScriptLoaded(); |
| + //OnScriptLoadFailed(); |
| + //OnStopped(); |
| + |
| + // Sent on worker thread. |
| + //OnScriptEvaluated(bool success); |
| + //OnStarted(); |
| + //OnReportException(mojo.common.string16 error_message, int32 line_number, |
| + // int32 column_number, GURL source_url); |
| + //OnReportConsoleMessage(xxx xxx); |
| + //OnWorkerThreadStarted(int32 thread_id, int32 provider_id); |
| +}; |