| // Copyright 2014 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_MESSAGES_H_ |
| #define CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_MESSAGES_H_ |
| |
| #include <stdint.h> |
| |
| #include <string> |
| #include <vector> |
| |
| #include "base/strings/string16.h" |
| #include "base/time/time.h" |
| #include "content/common/service_worker/service_worker_types.h" |
| #include "content/public/common/platform_notification_data.h" |
| #include "ipc/ipc_message_macros.h" |
| #include "ipc/ipc_param_traits.h" |
| #include "services/network/public/mojom/fetch_api.mojom.h" |
| #include "third_party/blink/public/common/service_worker/service_worker_status_code.h" |
| #include "third_party/blink/public/platform/modules/service_worker/web_service_worker_error.h" |
| |
| #undef IPC_MESSAGE_EXPORT |
| #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| |
| #define IPC_MESSAGE_START ServiceWorkerMsgStart |
| |
| // TODO(leonhsl): Figure out what's the purpose of all these traits then |
| // eliminate this file finally. |
| IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerFetchRequest) |
| IPC_STRUCT_TRAITS_MEMBER(mode) |
| IPC_STRUCT_TRAITS_MEMBER(is_main_resource_load) |
| IPC_STRUCT_TRAITS_MEMBER(request_context_type) |
| IPC_STRUCT_TRAITS_MEMBER(frame_type) |
| IPC_STRUCT_TRAITS_MEMBER(url) |
| IPC_STRUCT_TRAITS_MEMBER(method) |
| IPC_STRUCT_TRAITS_MEMBER(headers) |
| IPC_STRUCT_TRAITS_MEMBER(referrer) |
| IPC_STRUCT_TRAITS_MEMBER(credentials_mode) |
| IPC_STRUCT_TRAITS_MEMBER(redirect_mode) |
| IPC_STRUCT_TRAITS_MEMBER(integrity) |
| IPC_STRUCT_TRAITS_MEMBER(keepalive) |
| IPC_STRUCT_TRAITS_MEMBER(client_id) |
| IPC_STRUCT_TRAITS_MEMBER(is_reload) |
| IPC_STRUCT_TRAITS_END() |
| |
| #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_MESSAGES_H_ |