blob: c95a2e255166871ff45b6a4c3a8b206e1dace776 [file] [log] [blame]
// Copyright 2018 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 "services/network/public/mojom/url_loader.mojom";
import "third_party/blink/public/mojom/blob/blob.mojom";
import "third_party/blink/public/mojom/fetch/fetch_api_request.mojom";
import "third_party/blink/public/mojom/timing/worker_timing_container.mojom";
// Parameters used for dispatching a FetchEvent.
struct DispatchFetchEventParams {
// FetchEvent#request.
FetchAPIRequest request;
// FetchEvent#clientId.
string client_id;
// FetchEvent#preloadResponse.
pending_receiver<network.mojom.URLLoaderClient>? preload_url_loader_client_receiver;
// This is currently null for navigation because it's still being implemented.
// TODO(https://crbug.com/900700): Make this non-nullable when implementation
// is complete (including support for navigation requests).
pending_remote<blink.mojom.WorkerTimingContainer>? worker_timing_remote;
// Whether this is a "fake" fetch event used to detect the offline capability
// of the service worker. See more details at https://crbug.com/965802.
bool is_offline_capability_check = false;
};