#include "base/process/process.h"
#include "content/common/content_param_traits_macros.h"
#include "content/common/resource_request_body.h"
+#include "content/common/service_worker/service_worker_types.h"
#include "content/public/common/common_param_traits.h"
#include "content/public/common/resource_response.h"
#include "ipc/ipc_message_macros.h"
net::HttpResponseInfo::ConnectionInfo, \
net::HttpResponseInfo::NUM_OF_CONNECTION_INFOS - 1)
+IPC_ENUM_TRAITS_MAX_VALUE(content::FetchRequestMode,
+ content::FETCH_REQUEST_MODE_LAST)
+
+IPC_ENUM_TRAITS_MAX_VALUE(content::FetchCredentialsMode,
+ content::FETCH_CREDENTIALS_MODE_LAST)
+
IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseHead)
IPC_STRUCT_TRAITS_PARENT(content::ResourceResponseInfo)
IPC_STRUCT_TRAITS_MEMBER(request_start)
IPC_STRUCT_TRAITS_MEMBER(npn_negotiated_protocol)
IPC_STRUCT_TRAITS_MEMBER(socket_address)
IPC_STRUCT_TRAITS_MEMBER(was_fetched_via_service_worker)
+ IPC_STRUCT_TRAITS_MEMBER(was_fallback_required_by_service_worker)
IPC_STRUCT_TRAITS_MEMBER(original_url_via_service_worker)
+ IPC_STRUCT_TRAITS_MEMBER(response_type_via_service_worker)
IPC_STRUCT_TRAITS_MEMBER(service_worker_fetch_start)
IPC_STRUCT_TRAITS_MEMBER(service_worker_fetch_ready)
IPC_STRUCT_TRAITS_MEMBER(service_worker_fetch_end)
+ IPC_STRUCT_TRAITS_MEMBER(proxy_server)
IPC_STRUCT_TRAITS_END()
IPC_STRUCT_TRAITS_BEGIN(net::RedirectInfo)
// True if the request should not be handled by the ServiceWorker.
IPC_STRUCT_MEMBER(bool, skip_service_worker)
+ // The request mode passed to the ServiceWorker.
+ IPC_STRUCT_MEMBER(content::FetchRequestMode, fetch_request_mode)
+
+ // The credentials mode passed to the ServiceWorker.
+ IPC_STRUCT_MEMBER(content::FetchCredentialsMode, fetch_credentials_mode)
+
+ // The request context passed to the ServiceWorker.
+ IPC_STRUCT_MEMBER(content::RequestContextType, fetch_request_context_type)
+
+ // The frame type passed to the ServiceWorker.
+ IPC_STRUCT_MEMBER(content::RequestContextFrameType, fetch_frame_type)
+
// Optional resource request body (may be null).
IPC_STRUCT_MEMBER(scoped_refptr<content::ResourceRequestBody>,
request_body)
// True if load timing data should be collected for request.
IPC_STRUCT_MEMBER(bool, enable_load_timing)
+ // True if upload progress should be available for request.
+ IPC_STRUCT_MEMBER(bool, enable_upload_progress)
+
// The routing id of the RenderFrame.
IPC_STRUCT_MEMBER(int, render_frame_id)