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

Unified Diff: third_party/WebKit/public/platform/WebWorkerFetchContext.h

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
« no previous file with comments | « third_party/WebKit/Source/core/loader/WorkerFetchContext.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/WebWorkerFetchContext.h
diff --git a/third_party/WebKit/public/platform/WebWorkerFetchContext.h b/third_party/WebKit/public/platform/WebWorkerFetchContext.h
index cbe3ac73b4ec8b63744e246587d71d2a8753b7b4..5804d8af217b08a71c895944f183fcdaa786c15a 100644
--- a/third_party/WebKit/public/platform/WebWorkerFetchContext.h
+++ b/third_party/WebKit/public/platform/WebWorkerFetchContext.h
@@ -5,6 +5,8 @@
#ifndef WebWorkerFetchContext_h
#define WebWorkerFetchContext_h
+#include "public/platform/WebURL.h"
+
namespace base {
class SingleThreadTaskRunner;
} // namespace base
@@ -40,6 +42,12 @@ class WebWorkerFetchContext {
// The flag for Data Saver.
virtual void SetDataSaverEnabled(bool) = 0;
virtual bool IsDataSaverEnabled() const = 0;
+
+ // The URL that should be consulted for the third-party cookie blocking
+ // policy, as defined in Section 2.1.1 and 2.1.2 of
+ // https://tools.ietf.org/html/draft-west-first-party-cookies.
+ // See content::URLRequest::first_party_for_cookies() for details.
+ virtual WebURL FirstPartyForCookies() const = 0;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/loader/WorkerFetchContext.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698