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

Side by Side Diff: content/common/service_worker/service_worker.mojom

Issue 2779763004: Create ServiceWorkerProviderHost before starting worker (Closed)
Patch Set: Rebased 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 unified diff | Download patch
OLDNEW
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_provider.mojom"; 7 import "content/common/service_worker/service_worker_provider.mojom";
8 8
9 // Per-process browser-side interface bound to 9 // Per-process browser-side interface bound to
10 // content::ServiceWorkerDispatcherHost. 10 // content::ServiceWorkerDispatcherHost.
11 // All InterfacePtrs on the same render process are bound to the same 11 // All InterfacePtrs on the same render process are bound to the same
12 // content::ServiceWorkerDispatcherHost. The renderer uses this interface to 12 // content::ServiceWorkerDispatcherHost. The renderer uses this interface to
13 // tell the browser when potential service worker clients are created and when 13 // tell the browser when potential service worker clients are created and when
14 // service workers are starting up. 14 // service workers are starting up.
15 interface ServiceWorkerDispatcherHost { 15 interface ServiceWorkerDispatcherHost {
16 // Creates a content::ServiceWorkerProviderHost on the browser 16 // Creates a content::ServiceWorkerProviderHost on the browser
17 // process. |provider_info| has Mojo endpoints to connect the provider host 17 // process. |provider_info| has Mojo endpoints to connect the provider host
18 // and the provider on the renderer together. The lifetime of 18 // and the provider on the renderer together. The lifetime of
19 // ServiceWorkerProviderHost will be tied to the 19 // ServiceWorkerProviderHost will be tied to the
20 // mojom::ServiceWorkerProviderHost interface. 20 // mojom::ServiceWorkerProviderHost interface.
21 OnProviderCreated(ServiceWorkerProviderHostInfo provider_info); 21 OnProviderCreated(ServiceWorkerProviderHostInfo provider_info);
22
23 // Informs the browser that a service worker is starting up. |provider_id|
24 // identifies the ServiceWorkerProviderHost hosting the service
25 // worker. |version_id| identifies the ServiceWorkerVersion and
26 // |embedded_worker_id| identifies the EmbeddedWorkerInstance.
27 OnSetHostedVersionId(int32 provider_id,
28 int64 version_id,
29 int32 embedded_worker_id);
30 }; 22 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698