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

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

Issue 1271733002: [2/3 chromium] Support redirect option of Request and "opaqueredirect" response type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add _MODE to avoid compile error at Windows. Created 5 years, 4 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 cfef416e1af4b5da726e611e489abeb3e291192e..b8541f8461ccf14ffb04930ca4ed3ea5715698c4 100644
--- a/content/common/service_worker/service_worker_types.h
+++ b/content/common/service_worker/service_worker_types.h
@@ -92,6 +92,13 @@ enum FetchCredentialsMode {
FETCH_CREDENTIALS_MODE_LAST = FETCH_CREDENTIALS_MODE_INCLUDE
};
+enum class FetchRedirectMode {
+ FOLLOW_MODE,
+ ERROR_MODE,
+ MANUAL_MODE,
+ LAST = MANUAL_MODE
+};
+
// Indicates how the service worker handled a fetch event.
enum ServiceWorkerFetchEventResult {
// Browser should fallback to native fetch.
@@ -130,6 +137,7 @@ struct CONTENT_EXPORT ServiceWorkerFetchRequest {
uint64 blob_size;
Referrer referrer;
FetchCredentialsMode credentials_mode;
+ FetchRedirectMode redirect_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