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

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

Issue 2638313002: Manage ServiceWorkerDispatcherHost in ServiceWorkerContextCore (Closed)
Patch Set: Remove a break line Created 3 years, 10 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_types.mojom"; 7 import "content/common/service_worker/service_worker_provider.mojom";
8 8
9 // Per-process browser-side interface bound to ServiceWorkerDispatcherHost. 9 // Per-process browser-side interface bound to ServiceWorkerDispatcherHost.
10 // Each InterfacePtrs on the same render process will be bound to the same 10 // Each InterfacePtrs on the same render process will be bound to the same
11 // ServiceWorkerDispatcherHost. 11 // ServiceWorkerDispatcherHost.
12 interface ServiceWorkerDispatcherHost { 12 interface ServiceWorkerDispatcherHost {
13 OnProviderCreated(int32 provider_id, 13 OnProviderCreated(ServiceWorkerProviderHostInfo provider_info);
14 int32 route_id,
15 ServiceWorkerProviderType provider_type,
16 bool is_parent_frame_secure);
17 OnProviderDestroyed(int32 provider_id); 14 OnProviderDestroyed(int32 provider_id);
18 // Make relationship between the network provider and the service worker 15
16 // Informs the browser that a service worker is starting up in a provider.
falken 2017/02/08 06:53:51 nit: let's just remove "in a provider". A SW can o
shimazu 2017/02/13 03:25:56 Done.
17 // |provider_id| identifies the ServiceWorkerProviderHost hosting the service
18 // worker. |version_id| identifies the ServiceWorkerVersion and
19 // |embedded_worker_id| identifies the EmbeddedWorkerInstance.
19 OnSetHostedVersionId(int32 provider_id, 20 OnSetHostedVersionId(int32 provider_id,
20 int64 version_id, 21 int64 version_id,
21 int32 embedded_worker_id); 22 int32 embedded_worker_id);
22 }; 23 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698