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

Unified Diff: third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp

Issue 2807533003: [WIP2] off-main-thread loading
Patch Set: rebase Created 3 years, 7 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: third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp b/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
index 9b2a552d4db9bebe7c47fb93db6efe6e10da3c87..b17b745657d74471dc20d3e7d396f4bac89afbc4 100644
--- a/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
+++ b/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
@@ -56,6 +56,7 @@
#include "platform/RuntimeEnabledFeatures.h"
#include "platform/heap/Handle.h"
#include "platform/heap/Persistent.h"
+#include "platform/loader/fetch/ResourceFetcher.h"
#include "platform/loader/fetch/ResourceResponse.h"
#include "platform/network/ContentSecurityPolicyParsers.h"
#include "platform/weborigin/KURL.h"
@@ -347,8 +348,11 @@ void WebSharedWorkerImpl::OnScriptLoaderFinished() {
->DataSource()
->GetServiceWorkerNetworkProvider());
DCHECK(web_worker_fetch_context);
- // TODO(horo): Set more information about the context (ex: AppCacheHostID)
- // to |web_worker_fetch_context|.
+ web_worker_fetch_context->SetAppCacheHostID(main_frame_->GetFrame()
+ ->GetDocument()
+ ->Fetcher()
+ ->Context()
+ .ApplicationCacheHostID());
web_worker_fetch_context->SetDataSaverEnabled(
main_frame_->GetFrame()->GetSettings()->GetDataSaverEnabled());
ProvideWorkerFetchContextToWorker(worker_clients,

Powered by Google App Engine
This is Rietveld 408576698