OLD | NEW |
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/url_loader.mojom"; |
7 import "mojo/common/common_custom_types.mojom"; | 8 import "mojo/common/common_custom_types.mojom"; |
8 import "third_party/WebKit/public/platform/modules/serviceworker/service_worker_
event_status.mojom"; | 9 import "third_party/WebKit/public/platform/modules/serviceworker/service_worker_
event_status.mojom"; |
9 | 10 |
10 [Native] | 11 [Native] |
11 struct ServiceWorkerFetchRequest; | 12 struct ServiceWorkerFetchRequest; |
12 | 13 |
| 14 struct FetchEventPreloadHandle { |
| 15 URLLoader url_loader; |
| 16 URLLoaderClient& url_loader_client_request; |
| 17 }; |
| 18 |
13 interface FetchEventDispatcher { | 19 interface FetchEventDispatcher { |
14 DispatchFetchEvent(int32 fetch_event_id, ServiceWorkerFetchRequest request) | 20 DispatchFetchEvent(int32 fetch_event_id, ServiceWorkerFetchRequest request, |
| 21 FetchEventPreloadHandle? preload_handle) |
15 => (blink.mojom.ServiceWorkerEventStatus status, | 22 => (blink.mojom.ServiceWorkerEventStatus status, |
16 mojo.common.mojom.Time dispatch_event_time); | 23 mojo.common.mojom.Time dispatch_event_time); |
17 }; | 24 }; |
OLD | NEW |