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

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

Issue 2891453005: Pipe the FirstPartyForCookies to WorkerFetchContext for off-main-thread-fetch (Closed)
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 00e5a8253e582e7c8d630b1dec7c2ca31ad058c3..e8180176d55fc93ff62ceab6eb66a65223577ef8 100644
--- a/content/renderer/service_worker/worker_fetch_context_impl.cc
+++ b/content/renderer/service_worker/worker_fetch_context_impl.cc
@@ -67,6 +67,10 @@ bool WorkerFetchContextImpl::IsDataSaverEnabled() const {
return is_data_saver_enabled_;
}
+blink::WebURL WorkerFetchContextImpl::FirstPartyForCookies() const {
+ return first_party_for_cookies_;
+}
+
void WorkerFetchContextImpl::set_service_worker_provider_id(int id) {
service_worker_provider_id_ = id;
}
@@ -79,6 +83,11 @@ void WorkerFetchContextImpl::set_parent_frame_id(int id) {
parent_frame_id_ = id;
}
+void WorkerFetchContextImpl::set_first_party_for_cookies(
+ const blink::WebURL& first_party_for_cookies) {
+ first_party_for_cookies_ = first_party_for_cookies;
+}
+
void WorkerFetchContextImpl::SetControllerServiceWorker(
int64_t controller_version_id) {
controller_version_id_ = controller_version_id;

Powered by Google App Engine
This is Rietveld 408576698