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

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

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: content/renderer/service_worker/worker_fetch_context_impl.cc
diff --git a/content/renderer/service_worker/worker_fetch_context_impl.cc b/content/renderer/service_worker/worker_fetch_context_impl.cc
index a98fd88c31dfa95375b47b7e54e5eef507d312ae..0357fab6de803ce2116fb24c6a84020f52197963 100644
--- a/content/renderer/service_worker/worker_fetch_context_impl.cc
+++ b/content/renderer/service_worker/worker_fetch_context_impl.cc
@@ -11,6 +11,7 @@
#include "content/child/web_url_loader_impl.h"
#include "content/common/frame_messages.h"
#include "mojo/public/cpp/bindings/associated_binding.h"
+#include "third_party/WebKit/public/platform/WebWorkerFetchContext.h"
namespace content {
@@ -72,6 +73,10 @@ bool WorkerFetchContextImpl::IsDataSaverEnabled() const {
return is_data_saver_enabled_;
}
+int64_t WorkerFetchContextImpl::ServiceWorkerID() const {
+ return controller_version_id_;
+}
+
blink::WebURL WorkerFetchContextImpl::FirstPartyForCookies() const {
return first_party_for_cookies_;
}
@@ -96,6 +101,10 @@ void WorkerFetchContextImpl::set_is_controlled_by_service_worker(bool flag) {
is_controlled_by_service_worker_ = flag;
}
+void WorkerFetchContextImpl::SetAppCacheHostID(int id) {
+ appcache_host_id_ = id;
+}
+
void WorkerFetchContextImpl::set_parent_frame_id(int id) {
parent_frame_id_ = id;
}
« no previous file with comments | « content/renderer/service_worker/worker_fetch_context_impl.h ('k') | third_party/WebKit/LayoutTests/TestExpectations » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698