| Index: third_party/WebKit/public/platform/modules/serviceworker/service_worker.mojom
|
| diff --git a/third_party/WebKit/public/platform/modules/serviceworker/service_worker.mojom b/third_party/WebKit/public/platform/modules/serviceworker/service_worker.mojom
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..44b3239251dc4e9b69fcee83086194e310d75280
|
| --- /dev/null
|
| +++ b/third_party/WebKit/public/platform/modules/serviceworker/service_worker.mojom
|
| @@ -0,0 +1,39 @@
|
| +
|
| +// Copyright 2015 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 blink.mojom;
|
| +
|
| +import "url/mojo/url.mojom";
|
| +
|
| +interface ServiceWorkerService {
|
| + WorkerStarted(int32 embedded_worker_id);
|
| +};
|
| +
|
| +struct ServiceWorkerResponse {
|
| + string? url;
|
| + uint16 status_code;
|
| + string? status_text;
|
| + // blink::WebServiceWorkerResponseType response_type;
|
| + // ServiceWorkerHeaderMap headers;
|
| + string? blob_uuid;
|
| + uint64 blob_size;
|
| + string? stream_url;
|
| + // blink::WebServiceWorkerResponseError error;
|
| + // base::Time response_time;
|
| + // bool is_in_cache_storage = false;
|
| + // std::string cache_storage_cache_name;
|
| + // ServiceWorkerHeaderList cors_exposed_header_names;
|
| +};
|
| +
|
| +
|
| +interface IsolatedWorkerClient {
|
| + OnFetchEvent(int32 response_id, int32 event_finish_id, string url, bool is_navigate) => (bool handled, ServiceWorkerResponse? response);
|
| +};
|
| +
|
| +interface IsolatedWorkerHostService {
|
| + OnThreadStarted(int64 version_id, IsolatedWorkerClient client);
|
| + OnScriptEvaluated();
|
| + OnWorkerStarted();
|
| +};
|
|
|