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

Unified Diff: content/browser/service_worker/service_worker_url_request_job.cc

Issue 1597383002: Service Worker: (Re-commit) Add FetchEvent.clientId (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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/browser/service_worker/service_worker_url_request_job.cc
diff --git a/content/browser/service_worker/service_worker_url_request_job.cc b/content/browser/service_worker/service_worker_url_request_job.cc
index 10e85020954e93b949a3d29a7ea8867be3efeace..44fab7f581af4ebfec85d300efe60def2206de1e 100644
--- a/content/browser/service_worker/service_worker_url_request_job.cc
+++ b/content/browser/service_worker/service_worker_url_request_job.cc
@@ -109,6 +109,7 @@ bool ServiceWorkerURLRequestJob::Delegate::RequestStillValid(
ServiceWorkerURLRequestJob::ServiceWorkerURLRequestJob(
net::URLRequest* request,
net::NetworkDelegate* network_delegate,
+ const std::string& client_id,
base::WeakPtr<storage::BlobStorageContext> blob_storage_context,
const ResourceContext* resource_context,
FetchRequestMode request_mode,
@@ -124,6 +125,7 @@ ServiceWorkerURLRequestJob::ServiceWorkerURLRequestJob(
response_type_(NOT_DETERMINED),
is_started_(false),
service_worker_response_type_(blink::WebServiceWorkerResponseTypeDefault),
+ client_id_(client_id),
blob_storage_context_(blob_storage_context),
resource_context_(resource_context),
stream_pending_buffer_size_(0),
@@ -448,6 +450,7 @@ ServiceWorkerURLRequestJob::CreateFetchRequest() {
scoped_ptr<ServiceWorkerFetchRequest> request(
new ServiceWorkerFetchRequest());
request->mode = request_mode_;
+ request->is_main_resource_load = is_main_resource_load_;
request->request_context_type = request_context_type_;
request->frame_type = frame_type_;
request->url = request_->url();
@@ -462,6 +465,7 @@ ServiceWorkerURLRequestJob::CreateFetchRequest() {
request->blob_size = blob_size;
request->credentials_mode = credentials_mode_;
request->redirect_mode = redirect_mode_;
+ request->client_id = client_id_;
const ResourceRequestInfo* info = ResourceRequestInfo::ForRequest(request_);
if (info) {
request->is_reload = ui::PageTransitionCoreTypeIs(

Powered by Google App Engine
This is Rietveld 408576698