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

Unified Diff: content/common/service_worker/service_worker_types.h

Issue 615493003: [ServiceWorker] Plumbing the request credentials mode to the ServiceWorker. [2/2 chromium] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 3 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/common/service_worker/service_worker_types.h
diff --git a/content/common/service_worker/service_worker_types.h b/content/common/service_worker/service_worker_types.h
index 7bef8bda800b23664852a11352389d56a54752eb..6ae8dcf3329737141dfc6adc4e08279238966170 100644
--- a/content/common/service_worker/service_worker_types.h
+++ b/content/common/service_worker/service_worker_types.h
@@ -42,6 +42,13 @@ enum FetchRequestMode {
FETCH_REQUEST_MODE_LAST = FETCH_REQUEST_MODE_CORS_WITH_FORCED_PREFLIGHT
};
+enum FetchCredentialsMode {
+ FETCH_CREDENTIALS_MODE_OMIT,
+ FETCH_CREDENTIALS_MODE_SAME_ORIGIN,
+ FETCH_CREDENTIALS_MODE_INCLUDE,
+ FETCH_CREDENTIALS_MODE_LAST = FETCH_CREDENTIALS_MODE_INCLUDE
+};
+
// Indicates how the service worker handled a fetch event.
enum ServiceWorkerFetchEventResult {
// Browser should fallback to native fetch.
@@ -77,6 +84,7 @@ struct CONTENT_EXPORT ServiceWorkerFetchRequest {
std::string blob_uuid;
uint64 blob_size;
GURL referrer;
+ FetchCredentialsMode credentials_mode;
bool is_reload;
};
« no previous file with comments | « content/common/service_worker/service_worker_messages.h ('k') | content/common/service_worker/service_worker_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698