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

Unified Diff: content/common/resource_messages.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
« no previous file with comments | « content/child/web_url_loader_impl.cc ('k') | content/common/service_worker/service_worker_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/resource_messages.h
diff --git a/content/common/resource_messages.h b/content/common/resource_messages.h
index bc38f0286fd665660efa9f0592c37f3456a4a09d..c435263ace4c0f195a524f105d5330773d6e4c16 100644
--- a/content/common/resource_messages.h
+++ b/content/common/resource_messages.h
@@ -91,6 +91,9 @@ IPC_ENUM_TRAITS_MAX_VALUE(content::FetchRequestMode,
IPC_ENUM_TRAITS_MAX_VALUE(content::FetchCredentialsMode,
content::FETCH_CREDENTIALS_MODE_LAST)
+IPC_ENUM_TRAITS_MAX_VALUE(content::FetchRedirectMode,
+ content::FetchRedirectMode::LAST)
+
IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseHead)
IPC_STRUCT_TRAITS_PARENT(content::ResourceResponseInfo)
IPC_STRUCT_TRAITS_MEMBER(request_start)
@@ -209,6 +212,9 @@ IPC_STRUCT_BEGIN(ResourceHostMsg_Request)
// The credentials mode passed to the ServiceWorker.
IPC_STRUCT_MEMBER(content::FetchCredentialsMode, fetch_credentials_mode)
+ // The redirect mode used in Fetch API.
+ IPC_STRUCT_MEMBER(content::FetchRedirectMode, fetch_redirect_mode)
+
// The request context passed to the ServiceWorker.
IPC_STRUCT_MEMBER(content::RequestContextType, fetch_request_context_type)
« no previous file with comments | « content/child/web_url_loader_impl.cc ('k') | content/common/service_worker/service_worker_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698