| 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" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerEventResult, | 34 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerEventResult, |
| 35 blink::WebServiceWorkerEventResultLast) | 35 blink::WebServiceWorkerEventResultLast) |
| 36 | 36 |
| 37 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerState, | 37 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerState, |
| 38 blink::WebServiceWorkerStateLast) | 38 blink::WebServiceWorkerStateLast) |
| 39 | 39 |
| 40 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerResponseType, | 40 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerResponseType, |
| 41 blink::WebServiceWorkerResponseTypeLast) | 41 blink::WebServiceWorkerResponseTypeLast) |
| 42 | 42 |
| 43 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerClientType, |
| 44 blink::WebServiceWorkerClientTypeLast) |
| 45 |
| 43 IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWorkerProviderType, | 46 IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWorkerProviderType, |
| 44 content::SERVICE_WORKER_PROVIDER_TYPE_LAST) | 47 content::SERVICE_WORKER_PROVIDER_TYPE_LAST) |
| 45 | 48 |
| 46 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerFetchRequest) | 49 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerFetchRequest) |
| 47 IPC_STRUCT_TRAITS_MEMBER(mode) | 50 IPC_STRUCT_TRAITS_MEMBER(mode) |
| 48 IPC_STRUCT_TRAITS_MEMBER(request_context_type) | 51 IPC_STRUCT_TRAITS_MEMBER(request_context_type) |
| 49 IPC_STRUCT_TRAITS_MEMBER(frame_type) | 52 IPC_STRUCT_TRAITS_MEMBER(frame_type) |
| 50 IPC_STRUCT_TRAITS_MEMBER(url) | 53 IPC_STRUCT_TRAITS_MEMBER(url) |
| 51 IPC_STRUCT_TRAITS_MEMBER(method) | 54 IPC_STRUCT_TRAITS_MEMBER(method) |
| 52 IPC_STRUCT_TRAITS_MEMBER(headers) | 55 IPC_STRUCT_TRAITS_MEMBER(headers) |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 IPC_STRUCT_TRAITS_MEMBER(waiting) | 109 IPC_STRUCT_TRAITS_MEMBER(waiting) |
| 107 IPC_STRUCT_TRAITS_MEMBER(active) | 110 IPC_STRUCT_TRAITS_MEMBER(active) |
| 108 IPC_STRUCT_TRAITS_END() | 111 IPC_STRUCT_TRAITS_END() |
| 109 | 112 |
| 110 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerClientInfo) | 113 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerClientInfo) |
| 111 IPC_STRUCT_TRAITS_MEMBER(client_id) | 114 IPC_STRUCT_TRAITS_MEMBER(client_id) |
| 112 IPC_STRUCT_TRAITS_MEMBER(page_visibility_state) | 115 IPC_STRUCT_TRAITS_MEMBER(page_visibility_state) |
| 113 IPC_STRUCT_TRAITS_MEMBER(is_focused) | 116 IPC_STRUCT_TRAITS_MEMBER(is_focused) |
| 114 IPC_STRUCT_TRAITS_MEMBER(url) | 117 IPC_STRUCT_TRAITS_MEMBER(url) |
| 115 IPC_STRUCT_TRAITS_MEMBER(frame_type) | 118 IPC_STRUCT_TRAITS_MEMBER(frame_type) |
| 119 IPC_STRUCT_TRAITS_MEMBER(client_type) |
| 120 IPC_STRUCT_TRAITS_END() |
| 121 |
| 122 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerClientQueryOptions) |
| 123 IPC_STRUCT_TRAITS_MEMBER(client_type) |
| 124 IPC_STRUCT_TRAITS_MEMBER(include_uncontrolled) |
| 116 IPC_STRUCT_TRAITS_END() | 125 IPC_STRUCT_TRAITS_END() |
| 117 | 126 |
| 118 IPC_ENUM_TRAITS_MAX_VALUE( | 127 IPC_ENUM_TRAITS_MAX_VALUE( |
| 119 blink::WebServiceWorkerCacheError, | 128 blink::WebServiceWorkerCacheError, |
| 120 blink::WebServiceWorkerCacheErrorLast) | 129 blink::WebServiceWorkerCacheErrorLast) |
| 121 | 130 |
| 122 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebGeofencingEventType, | 131 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebGeofencingEventType, |
| 123 blink::WebGeofencingEventTypeLast) | 132 blink::WebGeofencingEventTypeLast) |
| 124 | 133 |
| 125 //--------------------------------------------------------------------------- | 134 //--------------------------------------------------------------------------- |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GeofencingEventFinished, | 226 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GeofencingEventFinished, |
| 218 int /* request_id */) | 227 int /* request_id */) |
| 219 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CrossOriginConnectEventFinished, | 228 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CrossOriginConnectEventFinished, |
| 220 int /* request_id */, | 229 int /* request_id */, |
| 221 bool /* accept_connection */) | 230 bool /* accept_connection */) |
| 222 | 231 |
| 223 // Responds to a Ping from the browser. | 232 // Responds to a Ping from the browser. |
| 224 // Routed to the target ServiceWorkerVersion. | 233 // Routed to the target ServiceWorkerVersion. |
| 225 IPC_MESSAGE_ROUTED0(ServiceWorkerHostMsg_Pong) | 234 IPC_MESSAGE_ROUTED0(ServiceWorkerHostMsg_Pong) |
| 226 | 235 |
| 227 // Asks the browser to retrieve documents controlled by the sender | 236 // Asks the browser to retrieve clients of the sender ServiceWorker. |
| 228 // ServiceWorker. | 237 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClients, |
| 229 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GetClientDocuments, | 238 int /* request_id */, |
| 230 int /* request_id */) | 239 content::ServiceWorkerClientQueryOptions) |
| 231 | 240 |
| 232 // Sends a 'message' event to a client document (renderer->browser). | 241 // Sends a 'message' event to a client document (renderer->browser). |
| 233 IPC_MESSAGE_ROUTED3( | 242 IPC_MESSAGE_ROUTED3( |
| 234 ServiceWorkerHostMsg_PostMessageToDocument, | 243 ServiceWorkerHostMsg_PostMessageToDocument, |
| 235 int /* client_id */, | 244 int /* client_id */, |
| 236 base::string16 /* message */, | 245 base::string16 /* message */, |
| 237 std::vector<content::TransferredMessagePort> /* sent_message_ports */) | 246 std::vector<content::TransferredMessagePort> /* sent_message_ports */) |
| 238 | 247 |
| 239 // ServiceWorker -> Browser message to request that the ServiceWorkerStorage | 248 // ServiceWorker -> Browser message to request that the ServiceWorkerStorage |
| 240 // cache |data| associated with |url|. | 249 // cache |data| associated with |url|. |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidClaimClients, | 474 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidClaimClients, |
| 466 int /* request_id */) | 475 int /* request_id */) |
| 467 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ClaimClientsError, | 476 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ClaimClientsError, |
| 468 int /* request_id */, | 477 int /* request_id */, |
| 469 blink::WebServiceWorkerError::ErrorType /* code */, | 478 blink::WebServiceWorkerError::ErrorType /* code */, |
| 470 base::string16 /* message */) | 479 base::string16 /* message */) |
| 471 | 480 |
| 472 // Sent via EmbeddedWorker to Ping the worker, expecting a Pong in response. | 481 // Sent via EmbeddedWorker to Ping the worker, expecting a Pong in response. |
| 473 IPC_MESSAGE_CONTROL0(ServiceWorkerMsg_Ping) | 482 IPC_MESSAGE_CONTROL0(ServiceWorkerMsg_Ping) |
| 474 | 483 |
| 475 // Sent via EmbeddedWorker as a response of GetClientDocuments. | 484 // Sent via EmbeddedWorker as a response of GetClients. |
| 476 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments, | 485 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClients, |
| 477 int /* request_id */, | 486 int /* request_id */, |
| 478 std::vector<content::ServiceWorkerClientInfo>) | 487 std::vector<content::ServiceWorkerClientInfo>) |
| 479 | 488 |
| 480 // Sent via EmbeddedWorker as a response of OpenWindow. | 489 // Sent via EmbeddedWorker as a response of OpenWindow. |
| 481 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowResponse, | 490 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowResponse, |
| 482 int /* request_id */, | 491 int /* request_id */, |
| 483 content::ServiceWorkerClientInfo /* client */) | 492 content::ServiceWorkerClientInfo /* client */) |
| 484 | 493 |
| 485 // Sent via EmbeddedWorker as an error response of OpenWindow. | 494 // Sent via EmbeddedWorker as an error response of OpenWindow. |
| 486 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_OpenWindowError, | 495 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_OpenWindowError, |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 543 blink::WebServiceWorkerCacheError) | 552 blink::WebServiceWorkerCacheError) |
| 544 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, | 553 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, |
| 545 int /* request_id */, | 554 int /* request_id */, |
| 546 blink::WebServiceWorkerCacheError) | 555 blink::WebServiceWorkerCacheError) |
| 547 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, | 556 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, |
| 548 int /* request_id */, | 557 int /* request_id */, |
| 549 blink::WebServiceWorkerCacheError) | 558 blink::WebServiceWorkerCacheError) |
| 550 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, | 559 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, |
| 551 int /* request_id */, | 560 int /* request_id */, |
| 552 blink::WebServiceWorkerCacheError) | 561 blink::WebServiceWorkerCacheError) |
| OLD | NEW |