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

Unified Diff: content/child/service_worker/service_worker_message_filter.cc

Issue 2840343002: network service: pass a URLLoaderFactory to renderers on SW registration
Patch Set: . Created 3 years, 8 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/child/service_worker/service_worker_message_filter.cc
diff --git a/content/child/service_worker/service_worker_message_filter.cc b/content/child/service_worker/service_worker_message_filter.cc
index 47d7787be9e9bdb3777bffd0191a3d171a1352f5..814d0256379c08e20d1dd938cf7af97e82d3a383 100644
--- a/content/child/service_worker/service_worker_message_filter.cc
+++ b/content/child/service_worker/service_worker_message_filter.cc
@@ -104,7 +104,8 @@ void ServiceWorkerMessageFilter::OnStaleGetRegistration(
int thread_id,
int request_id,
const ServiceWorkerRegistrationObjectInfo& info,
- const ServiceWorkerVersionAttributes& attrs) {
+ const ServiceWorkerVersionAttributes& attrs,
+ const mojo::MessagePipeHandle& url_loader_factory) {
SendServiceWorkerObjectDestroyed(thread_safe_sender(),
attrs.installing.handle_id);
SendServiceWorkerObjectDestroyed(thread_safe_sender(),
@@ -118,10 +119,13 @@ void ServiceWorkerMessageFilter::OnStaleGetRegistrations(
int thread_id,
int request_id,
const std::vector<ServiceWorkerRegistrationObjectInfo>& infos,
- const std::vector<ServiceWorkerVersionAttributes>& attrs) {
+ const std::vector<ServiceWorkerVersionAttributes>& attrs,
+ const std::vector<mojo::MessagePipeHandle>& url_loader_factories) {
DCHECK_EQ(infos.size(), attrs.size());
- for (size_t i = 0; i < infos.size(); ++i)
- OnStaleGetRegistration(thread_id, request_id, infos[i], attrs[i]);
+ for (size_t i = 0; i < infos.size(); ++i) {
+ OnStaleGetRegistration(thread_id, request_id, infos[i], attrs[i],
+ url_loader_factories[i]);
+ }
}
void ServiceWorkerMessageFilter::OnStaleSetVersionAttributes(
« no previous file with comments | « content/child/service_worker/service_worker_message_filter.h ('k') | content/common/service_worker/service_worker_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698