Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2265)

Unified Diff: content/common/service_worker/embedded_worker.mojom

Issue 2936623002: Implement dumb URLLoader{Factory} for ServiceWorker script loading (for try)
Patch Set: . Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 48ec1576ff4c81014db55f56eeb0bef2de1153f4..4ad87376d67501601a753f0fce03bc69bfd20f37 100644
--- a/content/common/service_worker/embedded_worker.mojom
+++ b/content/common/service_worker/embedded_worker.mojom
@@ -5,6 +5,7 @@
module content.mojom;
import "content/common/service_worker/service_worker_event_dispatcher.mojom";
+import "content/common/service_worker/service_worker_provider.mojom";
import "mojo/common/string16.mojom";
import "services/service_manager/public/interfaces/interface_provider.mojom";
import "third_party/WebKit/public/web/console_message.mojom";
@@ -18,7 +19,8 @@ struct EmbeddedWorkerStartParams;
interface EmbeddedWorkerInstanceClient {
StartWorker(EmbeddedWorkerStartParams params,
ServiceWorkerEventDispatcher& dispatcher_request,
- associated EmbeddedWorkerInstanceHost instance_host);
+ associated EmbeddedWorkerInstanceHost instance_host,
+ ServiceWorkerProviderClientInfo provider_client_info);
// The response is sent back via EmbeddedWorkerInstanceHost.OnStopped().
StopWorker();
ResumeAfterDownload();
@@ -37,12 +39,9 @@ interface EmbeddedWorkerInstanceHost {
// Indicates that the worker has failed to load the script.
OnScriptLoadFailed();
// Indicates that the worker thread has started. |thread_id| is the actual
- // platform thread id on which the worker runs, while |provider_id| is the id
- // of the ServiceWorkerNetworkProvider instance, which is unique in one
- // renderer process, and the browser process uses this id to maintain a
- // counterpart ServiceWorkerProviderHost instance.
+ // platform thread id on which the worker runs.
// This is called after OnScriptLoaded.
- OnThreadStarted(int32 thread_id, int32 provider_id);
+ OnThreadStarted(int32 thread_id);
// Indicates that the worker has evaluated the script. |success| means
// evaluating the script completed and no uncaught exception occurred.
// This is called after OnThreadStarted.
« no previous file with comments | « content/child/service_worker/service_worker_network_provider.cc ('k') | content/common/service_worker/service_worker.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698