blob: 840a3efdc575d57a070b4347144b7eab987133c7 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
module content.mojom;
import "content/common/service_worker/service_worker_types.mojom";
// Per-process browser-side interface bound to ServiceWorkerDispatcherHost.
// Each InterfacePtrs on the same render process will be bound to the same
// ServiceWorkerDispatcherHost.
interface ServiceWorkerDispatcherHost {
OnProviderCreated(int32 provider_id,
int32 route_id,
ServiceWorkerProviderType provider_type,
bool is_parent_frame_secure);
OnProviderDestroyed(int32 provider_id);
// Make relationship between the network provider and the service worker
OnSetHostedVersionId(int32 provider_id,
int64 version_id,
int32 embedded_worker_id);
};