blob: a251d2bdc690aaa99dcde78b98a197c81088acd4 [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";
// Used for service worker navigation preload, to create
// FetchEvent#preloadResponse.
struct FetchEventPreloadHandle {
network.mojom.URLLoader url_loader;
network.mojom.URLLoaderClient& url_loader_client_request;
};
// Parameters used for dispatching a FetchEvent.
struct DispatchFetchEventParams {
// FetchEvent#request.
FetchAPIRequest request;
// FetchEvent#clientId.
string client_id;
// FetchEvent#preloadResponse.
FetchEventPreloadHandle? preload_handle;
};