Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Unified Diff: content/common/service_worker/service_worker_event_dispatcher.mojom

Issue 2762303002: Enable transmitting Fetch Requests over Mojo (Closed)
Patch Set: Enable transmitting Fetch Requests over Mojo Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/common/service_worker/service_worker_event_dispatcher.mojom
diff --git a/content/common/service_worker/service_worker_event_dispatcher.mojom b/content/common/service_worker/service_worker_event_dispatcher.mojom
index 5aa62f8717af990ae2739ed397db40dc051f9149..f8db527241d4c20f4edfc4c3d07804dfd0a39518 100644
--- a/content/common/service_worker/service_worker_event_dispatcher.mojom
+++ b/content/common/service_worker/service_worker_event_dispatcher.mojom
@@ -9,6 +9,7 @@ import "content/common/url_loader.mojom";
import "mojo/common/string16.mojom";
import "mojo/common/time.mojom";
import "third_party/WebKit/public/platform/modules/background_sync/background_sync.mojom";
+import "third_party/WebKit/public/platform/modules/fetch/fetch_api_request.mojom";
import "third_party/WebKit/public/platform/modules/serviceworker/service_worker_event_status.mojom";
import "url/mojo/origin.mojom";
@@ -19,18 +20,15 @@ struct PlatformNotificationData;
struct PushEventPayload;
[Native]
-struct ServiceWorkerFetchRequest;
-
-[Native]
struct ServiceWorkerResponse;
[Native]
struct ExtendableMessageEventSource;
-// TODO(peter): Move this to Blink when both ServiceWorkerFetchRequest and
-// ServiceWorkerResponse have Mojo counterparts.
+// TODO(peter): Move this to Blink when ServiceWorkerResponse has a Mojo
+// counterpart.
struct BackgroundFetchSettledFetch {
- ServiceWorkerFetchRequest request;
+ blink.mojom.FetchAPIRequest request;
ServiceWorkerResponse response;
};
@@ -74,7 +72,7 @@ interface ServiceWorkerEventDispatcher {
mojo.common.mojom.Time dispatch_event_time);
// |fetch_event_id| is used internally when sending the response back to the
// browser process.
- DispatchFetchEvent(int32 fetch_event_id, ServiceWorkerFetchRequest request,
+ DispatchFetchEvent(int32 fetch_event_id, blink.mojom.FetchAPIRequest request,
FetchEventPreloadHandle? preload_handle)
=> (blink.mojom.ServiceWorkerEventStatus status,
mojo.common.mojom.Time dispatch_event_time);

Powered by Google App Engine
This is Rietveld 408576698