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_client_info.h" |
11 #include "content/common/service_worker/service_worker_status_code.h" | 12 #include "content/common/service_worker/service_worker_status_code.h" |
12 #include "content/common/service_worker/service_worker_types.h" | 13 #include "content/common/service_worker/service_worker_types.h" |
13 #include "content/public/common/navigator_connect_client.h" | 14 #include "content/public/common/navigator_connect_client.h" |
14 #include "content/public/common/platform_notification_data.h" | 15 #include "content/public/common/platform_notification_data.h" |
15 #include "ipc/ipc_message_macros.h" | 16 #include "ipc/ipc_message_macros.h" |
16 #include "ipc/ipc_param_traits.h" | 17 #include "ipc/ipc_param_traits.h" |
17 #include "third_party/WebKit/public/platform/WebCircularGeofencingRegion.h" | 18 #include "third_party/WebKit/public/platform/WebCircularGeofencingRegion.h" |
18 #include "third_party/WebKit/public/platform/WebGeofencingEventType.h" | 19 #include "third_party/WebKit/public/platform/WebGeofencingEventType.h" |
19 #include "third_party/WebKit/public/platform/WebServiceWorkerCacheError.h" | 20 #include "third_party/WebKit/public/platform/WebServiceWorkerCacheError.h" |
20 #include "third_party/WebKit/public/platform/WebServiceWorkerError.h" | 21 #include "third_party/WebKit/public/platform/WebServiceWorkerError.h" |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_PostMessageToDocument, | 221 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_PostMessageToDocument, |
221 int /* client_id */, | 222 int /* client_id */, |
222 base::string16 /* message */, | 223 base::string16 /* message */, |
223 std::vector<int> /* sent_message_port_ids */) | 224 std::vector<int> /* sent_message_port_ids */) |
224 | 225 |
225 // Ask the browser to focus a client (renderer->browser). | 226 // Ask the browser to focus a client (renderer->browser). |
226 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_FocusClient, | 227 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_FocusClient, |
227 int /* request_id */, | 228 int /* request_id */, |
228 int /* client_id */) | 229 int /* client_id */) |
229 | 230 |
230 // Response to ServiceWorkerMsg_GetClientInfo. | |
231 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClientInfoSuccess, | |
232 int /* request_id */, | |
233 content::ServiceWorkerClientInfo) | |
234 | |
235 // Response to ServiceWorkerMsg_GetClientInfo. | |
236 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GetClientInfoError, | |
237 int /* request_id */) | |
238 | |
239 // Asks the browser to force this worker to become activated. | 231 // Asks the browser to force this worker to become activated. |
240 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_SkipWaiting, | 232 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_SkipWaiting, |
241 int /* request_id */) | 233 int /* request_id */) |
242 | 234 |
243 // CacheStorage operations in the browser. | 235 // CacheStorage operations in the browser. |
244 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageHas, | 236 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageHas, |
245 int /* request_id */, | 237 int /* request_id */, |
246 base::string16 /* fetch_store_name */) | 238 base::string16 /* fetch_store_name */) |
247 | 239 |
248 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageOpen, | 240 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageOpen, |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 bool /* should_notify_controllerchange */) | 383 bool /* should_notify_controllerchange */) |
392 | 384 |
393 // Sends a 'message' event to a client document (browser->renderer). | 385 // Sends a 'message' event to a client document (browser->renderer). |
394 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_MessageToDocument, | 386 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_MessageToDocument, |
395 int /* thread_id */, | 387 int /* thread_id */, |
396 int /* provider_id */, | 388 int /* provider_id */, |
397 base::string16 /* message */, | 389 base::string16 /* message */, |
398 std::vector<int> /* sent_message_port_ids */, | 390 std::vector<int> /* sent_message_port_ids */, |
399 std::vector<int> /* new_routing_ids */) | 391 std::vector<int> /* new_routing_ids */) |
400 | 392 |
401 // Sent to client documents to request document properties. | |
402 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_GetClientInfo, | |
403 int /* thread_id */, | |
404 int /* embedded_worker_id */, | |
405 int /* request_id */, | |
406 int /* provider_id */) | |
407 | |
408 // Sent via EmbeddedWorker to dispatch events. | 393 // Sent via EmbeddedWorker to dispatch events. |
409 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_InstallEvent, | 394 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_InstallEvent, |
410 int /* request_id */, | 395 int /* request_id */, |
411 int /* active_version_id */) | 396 int /* active_version_id */) |
412 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent, | 397 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent, |
413 int /* request_id */) | 398 int /* request_id */) |
414 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FetchEvent, | 399 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FetchEvent, |
415 int /* request_id */, | 400 int /* request_id */, |
416 content::ServiceWorkerFetchRequest) | 401 content::ServiceWorkerFetchRequest) |
417 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_SyncEvent, | 402 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_SyncEvent, |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
505 blink::WebServiceWorkerCacheError) | 490 blink::WebServiceWorkerCacheError) |
506 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, | 491 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, |
507 int /* request_id */, | 492 int /* request_id */, |
508 blink::WebServiceWorkerCacheError) | 493 blink::WebServiceWorkerCacheError) |
509 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, | 494 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, |
510 int /* request_id */, | 495 int /* request_id */, |
511 blink::WebServiceWorkerCacheError) | 496 blink::WebServiceWorkerCacheError) |
512 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, | 497 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, |
513 int /* request_id */, | 498 int /* request_id */, |
514 blink::WebServiceWorkerCacheError) | 499 blink::WebServiceWorkerCacheError) |
OLD | NEW |