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

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

Issue 1435633002: Service Worker: Add FetchEvent.clientId (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change the order of a class member Created 4 years, 11 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/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 7b0bd8964d5991fba14fa62fb519de9e7a3afbaf..60e067a56373f64a6f14042a98467946d80cccb4 100644
--- a/content/renderer/service_worker/service_worker_context_client.cc
+++ b/content/renderer/service_worker/service_worker_context_client.cc
@@ -733,12 +733,14 @@ void ServiceWorkerContextClient::OnFetchEvent(
blink::WebString::fromUTF8(request.referrer.url.spec()),
request.referrer.policy);
webRequest.setMode(GetBlinkFetchRequestMode(request.mode));
+ webRequest.setIsMainResourceLoad(request.is_main_resource_load);
webRequest.setCredentialsMode(
GetBlinkFetchCredentialsMode(request.credentials_mode));
webRequest.setRedirectMode(GetBlinkFetchRedirectMode(request.redirect_mode));
webRequest.setRequestContext(
GetBlinkRequestContext(request.request_context_type));
webRequest.setFrameType(GetBlinkFrameType(request.frame_type));
+ webRequest.setClientId(blink::WebString::fromUTF8(request.client_id));
webRequest.setIsReload(request.is_reload);
proxy_->dispatchFetchEvent(request_id, webRequest);
}

Powered by Google App Engine
This is Rietveld 408576698