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

Unified Diff: content/renderer/service_worker/service_worker_context_client.cc

Issue 2417793002: Introduce FetchEventPreloadHandle to pass the preload response to FetchEvent. (Closed)
Patch Set: incorporated dchecng's comment Created 4 years, 2 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
« no previous file with comments | « content/common/service_worker/fetch_event_dispatcher.mojom ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/service_worker/service_worker_context_client.cc
diff --git a/content/renderer/service_worker/service_worker_context_client.cc b/content/renderer/service_worker/service_worker_context_client.cc
index 6dfc4b1ee6d164db427db7c042c5c69db7cc65c2..c55db893e36921a8536659c8629b75a1b6608af9 100644
--- a/content/renderer/service_worker/service_worker_context_client.cc
+++ b/content/renderer/service_worker/service_worker_context_client.cc
@@ -237,6 +237,7 @@ class ServiceWorkerContextClient::FetchEventDispatcherImpl
void DispatchFetchEvent(int fetch_event_id,
const ServiceWorkerFetchRequest& request,
+ mojom::FetchEventPreloadHandlePtr preload_handle,
const DispatchFetchEventCallback& callback) override {
ServiceWorkerContextClient* client =
ServiceWorkerContextClient::ThreadSpecificInstance();
@@ -244,6 +245,11 @@ class ServiceWorkerContextClient::FetchEventDispatcherImpl
callback.Run(SERVICE_WORKER_ERROR_ABORT, base::Time::Now());
return;
}
+ if (preload_handle) {
+ // TODO(horo): Implement this to pass |preload_handle| to FetchEvent.
+ NOTIMPLEMENTED();
+ return;
+ }
client->DispatchFetchEvent(fetch_event_id, request, callback);
}
« no previous file with comments | « content/common/service_worker/fetch_event_dispatcher.mojom ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698