| 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 <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| 11 #include "content/common/service_worker/service_worker_status_code.h" | 11 #include "content/common/service_worker/service_worker_status_code.h" |
| 12 #include "content/common/service_worker/service_worker_types.h" | 12 #include "content/common/service_worker/service_worker_types.h" |
| 13 #include "ipc/ipc_message_macros.h" | 13 #include "ipc/ipc_message_macros.h" |
| 14 #include "ipc/ipc_param_traits.h" | 14 #include "ipc/ipc_param_traits.h" |
| 15 #include "third_party/WebKit/public/platform/WebCircularGeofencingRegion.h" |
| 16 #include "third_party/WebKit/public/platform/WebGeofencingEventType.h" |
| 15 #include "third_party/WebKit/public/platform/WebServiceWorkerCacheError.h" | 17 #include "third_party/WebKit/public/platform/WebServiceWorkerCacheError.h" |
| 16 #include "third_party/WebKit/public/platform/WebServiceWorkerError.h" | 18 #include "third_party/WebKit/public/platform/WebServiceWorkerError.h" |
| 17 #include "third_party/WebKit/public/platform/WebServiceWorkerEventResult.h" | 19 #include "third_party/WebKit/public/platform/WebServiceWorkerEventResult.h" |
| 18 #include "url/gurl.h" | 20 #include "url/gurl.h" |
| 19 | 21 |
| 20 #undef IPC_MESSAGE_EXPORT | 22 #undef IPC_MESSAGE_EXPORT |
| 21 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 23 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 22 | 24 |
| 23 #define IPC_MESSAGE_START ServiceWorkerMsgStart | 25 #define IPC_MESSAGE_START ServiceWorkerMsgStart |
| 24 | 26 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerVersionAttributes) | 95 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerVersionAttributes) |
| 94 IPC_STRUCT_TRAITS_MEMBER(installing) | 96 IPC_STRUCT_TRAITS_MEMBER(installing) |
| 95 IPC_STRUCT_TRAITS_MEMBER(waiting) | 97 IPC_STRUCT_TRAITS_MEMBER(waiting) |
| 96 IPC_STRUCT_TRAITS_MEMBER(active) | 98 IPC_STRUCT_TRAITS_MEMBER(active) |
| 97 IPC_STRUCT_TRAITS_END() | 99 IPC_STRUCT_TRAITS_END() |
| 98 | 100 |
| 99 IPC_ENUM_TRAITS_MAX_VALUE( | 101 IPC_ENUM_TRAITS_MAX_VALUE( |
| 100 blink::WebServiceWorkerCacheError, | 102 blink::WebServiceWorkerCacheError, |
| 101 blink::WebServiceWorkerCacheErrorLast) | 103 blink::WebServiceWorkerCacheErrorLast) |
| 102 | 104 |
| 105 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebGeofencingEventType, |
| 106 blink::WebGeofencingEventTypeLast) |
| 107 |
| 103 //--------------------------------------------------------------------------- | 108 //--------------------------------------------------------------------------- |
| 104 // Messages sent from the child process to the browser. | 109 // Messages sent from the child process to the browser. |
| 105 | 110 |
| 106 IPC_MESSAGE_CONTROL5(ServiceWorkerHostMsg_RegisterServiceWorker, | 111 IPC_MESSAGE_CONTROL5(ServiceWorkerHostMsg_RegisterServiceWorker, |
| 107 int /* thread_id */, | 112 int /* thread_id */, |
| 108 int /* request_id */, | 113 int /* request_id */, |
| 109 int /* provider_id */, | 114 int /* provider_id */, |
| 110 GURL /* scope */, | 115 GURL /* scope */, |
| 111 GURL /* script_url */) | 116 GURL /* script_url */) |
| 112 | 117 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 int /* request_id */, | 174 int /* request_id */, |
| 170 blink::WebServiceWorkerEventResult) | 175 blink::WebServiceWorkerEventResult) |
| 171 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_FetchEventFinished, | 176 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_FetchEventFinished, |
| 172 int /* request_id */, | 177 int /* request_id */, |
| 173 content::ServiceWorkerFetchEventResult, | 178 content::ServiceWorkerFetchEventResult, |
| 174 content::ServiceWorkerResponse) | 179 content::ServiceWorkerResponse) |
| 175 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_SyncEventFinished, | 180 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_SyncEventFinished, |
| 176 int /* request_id */) | 181 int /* request_id */) |
| 177 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_PushEventFinished, | 182 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_PushEventFinished, |
| 178 int /* request_id */) | 183 int /* request_id */) |
| 184 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GeofencingEventFinished, |
| 185 int /* request_id */) |
| 179 | 186 |
| 180 // Asks the browser to retrieve documents controlled by the sender | 187 // Asks the browser to retrieve documents controlled by the sender |
| 181 // ServiceWorker. | 188 // ServiceWorker. |
| 182 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GetClientDocuments, | 189 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GetClientDocuments, |
| 183 int /* request_id */) | 190 int /* request_id */) |
| 184 | 191 |
| 185 // Sends a 'message' event to a client document (renderer->browser). | 192 // Sends a 'message' event to a client document (renderer->browser). |
| 186 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_PostMessageToDocument, | 193 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_PostMessageToDocument, |
| 187 int /* client_id */, | 194 int /* client_id */, |
| 188 base::string16 /* message */, | 195 base::string16 /* message */, |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent, | 350 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent, |
| 344 int /* request_id */) | 351 int /* request_id */) |
| 345 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FetchEvent, | 352 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FetchEvent, |
| 346 int /* request_id */, | 353 int /* request_id */, |
| 347 content::ServiceWorkerFetchRequest) | 354 content::ServiceWorkerFetchRequest) |
| 348 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_SyncEvent, | 355 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_SyncEvent, |
| 349 int /* request_id */) | 356 int /* request_id */) |
| 350 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_PushEvent, | 357 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_PushEvent, |
| 351 int /* request_id */, | 358 int /* request_id */, |
| 352 std::string /* data */) | 359 std::string /* data */) |
| 360 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_GeofencingEvent, |
| 361 int /* request_id */, |
| 362 blink::WebGeofencingEventType /* event_type */, |
| 363 std::string /* region_id */, |
| 364 blink::WebCircularGeofencingRegion /* region */) |
| 353 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_MessageToWorker, | 365 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_MessageToWorker, |
| 354 base::string16 /* message */, | 366 base::string16 /* message */, |
| 355 std::vector<int> /* sent_message_port_ids */, | 367 std::vector<int> /* sent_message_port_ids */, |
| 356 std::vector<int> /* new_routing_ids */) | 368 std::vector<int> /* new_routing_ids */) |
| 357 | 369 |
| 358 // Sent via EmbeddedWorker as a response of GetClientDocuments. | 370 // Sent via EmbeddedWorker as a response of GetClientDocuments. |
| 359 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments, | 371 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments, |
| 360 int /* request_id */, | 372 int /* request_id */, |
| 361 std::vector<int> /* client_ids */) | 373 std::vector<int> /* client_ids */) |
| 362 | 374 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 blink::WebServiceWorkerCacheError) | 424 blink::WebServiceWorkerCacheError) |
| 413 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, | 425 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, |
| 414 int /* request_id */, | 426 int /* request_id */, |
| 415 blink::WebServiceWorkerCacheError) | 427 blink::WebServiceWorkerCacheError) |
| 416 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, | 428 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, |
| 417 int /* request_id */, | 429 int /* request_id */, |
| 418 blink::WebServiceWorkerCacheError) | 430 blink::WebServiceWorkerCacheError) |
| 419 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, | 431 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, |
| 420 int /* request_id */, | 432 int /* request_id */, |
| 421 blink::WebServiceWorkerCacheError) | 433 blink::WebServiceWorkerCacheError) |
| OLD | NEW |