Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Message definition file, included multiple times, hence no include guard. | 5 // Message definition file, included multiple times, hence no include guard. |
| 6 | 6 |
| 7 #include "base/strings/string16.h" | 7 #include "base/strings/string16.h" |
| 8 #include "content/common/service_worker/service_worker_status_code.h" | 8 #include "content/common/service_worker/service_worker_status_code.h" |
| 9 #include "content/common/service_worker/service_worker_types.h" | 9 #include "content/common/service_worker/service_worker_types.h" |
| 10 #include "ipc/ipc_message_macros.h" | 10 #include "ipc/ipc_message_macros.h" |
| 11 #include "ipc/ipc_param_traits.h" | 11 #include "ipc/ipc_param_traits.h" |
| 12 #include "third_party/WebKit/public/platform/WebServiceWorkerError.h" | 12 #include "third_party/WebKit/public/platform/WebServiceWorkerError.h" |
| 13 #include "url/gurl.h" | 13 #include "url/gurl.h" |
| 14 | 14 |
| 15 #undef IPC_MESSAGE_EXPORT | 15 #undef IPC_MESSAGE_EXPORT |
| 16 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 16 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 17 | 17 |
| 18 #define IPC_MESSAGE_START ServiceWorkerMsgStart | 18 #define IPC_MESSAGE_START ServiceWorkerMsgStart |
| 19 | 19 |
| 20 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerError::ErrorType, | 20 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerError::ErrorType, |
| 21 blink::WebServiceWorkerError::ErrorTypeLast) | 21 blink::WebServiceWorkerError::ErrorTypeLast) |
| 22 | 22 |
| 23 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerFetchRequest) | 23 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerFetchRequest) |
| 24 IPC_STRUCT_TRAITS_MEMBER(url) | 24 IPC_STRUCT_TRAITS_MEMBER(url) |
| 25 IPC_STRUCT_TRAITS_MEMBER(method) | 25 IPC_STRUCT_TRAITS_MEMBER(method) |
| 26 IPC_STRUCT_TRAITS_MEMBER(headers) | 26 IPC_STRUCT_TRAITS_MEMBER(headers) |
| 27 IPC_STRUCT_TRAITS_END() | 27 IPC_STRUCT_TRAITS_END() |
| 28 | 28 |
| 29 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerFetchResponse) | 29 IPC_ENUM_TRAITS(content::ServiceWorkerFetchEventResult) |
|
Tom Sepez
2014/03/05 19:45:02
use IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWork
falken
2014/03/06 15:58:54
Done.
| |
| 30 | |
| 31 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerResponse) | |
| 30 IPC_STRUCT_TRAITS_MEMBER(status_code) | 32 IPC_STRUCT_TRAITS_MEMBER(status_code) |
| 31 IPC_STRUCT_TRAITS_MEMBER(status_text) | 33 IPC_STRUCT_TRAITS_MEMBER(status_text) |
| 32 IPC_STRUCT_TRAITS_MEMBER(method) | 34 IPC_STRUCT_TRAITS_MEMBER(method) |
| 33 IPC_STRUCT_TRAITS_MEMBER(headers) | 35 IPC_STRUCT_TRAITS_MEMBER(headers) |
| 34 IPC_STRUCT_TRAITS_END() | 36 IPC_STRUCT_TRAITS_END() |
| 35 | 37 |
| 36 // Messages sent from the child process to the browser. | 38 // Messages sent from the child process to the browser. |
| 37 | 39 |
| 38 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_RegisterServiceWorker, | 40 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_RegisterServiceWorker, |
| 39 int32 /* thread_id */, | 41 int32 /* thread_id */, |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 83 // Informs the browser of a ServiceWorkerProvider being destroyed. | 85 // Informs the browser of a ServiceWorkerProvider being destroyed. |
| 84 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed, | 86 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed, |
| 85 int /* provider_id */) | 87 int /* provider_id */) |
| 86 | 88 |
| 87 // Informs the browser that install event handling has finished. | 89 // Informs the browser that install event handling has finished. |
| 88 // Sent via EmbeddedWorker. If there was an exception during the | 90 // Sent via EmbeddedWorker. If there was an exception during the |
| 89 // event handling it'll be reported back separately (to be propagated | 91 // event handling it'll be reported back separately (to be propagated |
| 90 // to the documents). | 92 // to the documents). |
| 91 IPC_MESSAGE_CONTROL0(ServiceWorkerHostMsg_InstallEventFinished) | 93 IPC_MESSAGE_CONTROL0(ServiceWorkerHostMsg_InstallEventFinished) |
| 92 | 94 |
| 93 // Informs the browser that fetch event handling has finished. | 95 // Informs the browser that fetch event handling has finished. |
| 94 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_FetchEventFinished, | 96 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_FetchEventFinished, |
| 95 content::ServiceWorkerFetchResponse) | 97 content::ServiceWorkerFetchEventResult, |
| 98 content::ServiceWorkerResponse) | |
| OLD | NEW |