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

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

Issue 2891453005: Pipe the FirstPartyForCookies to WorkerFetchContext for off-main-thread-fetch (Closed)
Patch Set: 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.h
diff --git a/content/renderer/service_worker/worker_fetch_context_impl.h b/content/renderer/service_worker/worker_fetch_context_impl.h
index 9e430b193ddad827099588198bae743af8e539e3..3d4bdc4645200f45a8de4729b45d68e291e210e5 100644
--- a/content/renderer/service_worker/worker_fetch_context_impl.h
+++ b/content/renderer/service_worker/worker_fetch_context_impl.h
@@ -9,6 +9,7 @@
#include "content/common/worker_url_loader_factory_provider.mojom.h"
#include "mojo/public/cpp/bindings/associated_binding.h"
#include "third_party/WebKit/public/platform/WebWorkerFetchContext.h"
+#include "url/gurl.h"
namespace base {
class SingleThreadTaskRunner;
@@ -32,13 +33,16 @@ class WorkerFetchContextImpl : public blink::WebWorkerFetchContext,
bool IsControlledByServiceWorker() const override;
void SetDataSaverEnabled(bool) override;
bool IsDataSaverEnabled() const override;
+ blink::WebURL FirstPartyForCookies() const override;
// mojom::ServiceWorkerWorkerClient implementation:
void SetControllerServiceWorker(int64_t controller_version_id) override;
- // Sets the service worker status of the parent frame.
+ // Sets the fetch context status of the parent frame.
void set_service_worker_provider_id(int id);
void set_is_controlled_by_service_worker(bool flag);
+ void set_first_party_for_cookies(
+ const blink::WebURL& first_party_for_cookies);
private:
mojom::WorkerURLLoaderFactoryProviderPtrInfo provider_info_;
@@ -57,6 +61,7 @@ class WorkerFetchContextImpl : public blink::WebWorkerFetchContext,
int controller_version_id_ = kInvalidServiceWorkerVersionId;
bool is_data_saver_enabled_ = false;
+ GURL first_party_for_cookies_;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698