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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 // ServiceWorker. | 223 // ServiceWorker. |
224 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GetClientDocuments, | 224 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GetClientDocuments, |
225 int /* request_id */) | 225 int /* request_id */) |
226 | 226 |
227 // Sends a 'message' event to a client document (renderer->browser). | 227 // Sends a 'message' event to a client document (renderer->browser). |
228 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_PostMessageToDocument, | 228 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_PostMessageToDocument, |
229 int /* client_id */, | 229 int /* client_id */, |
230 base::string16 /* message */, | 230 base::string16 /* message */, |
231 std::vector<int> /* sent_message_port_ids */) | 231 std::vector<int> /* sent_message_port_ids */) |
232 | 232 |
| 233 // ServiceWorker -> Browser message to request that the ServiceWorkerStorage |
| 234 // cache |data| associated with |url|. |
| 235 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_SetCachedMetadata, |
| 236 GURL /* url */, |
| 237 std::vector<char> /* data */) |
| 238 |
| 239 // ServiceWorker -> Browser message to request that the ServiceWorkerStorage |
| 240 // clear the cache associated with |url|. |
| 241 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_ClearCachedMetadata, GURL /* url */) |
| 242 |
233 // Ask the browser to open a tab/window (renderer->browser). | 243 // Ask the browser to open a tab/window (renderer->browser). |
234 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_OpenWindow, | 244 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_OpenWindow, |
235 int /* request_id */, | 245 int /* request_id */, |
236 GURL /* url */) | 246 GURL /* url */) |
237 | 247 |
238 // Ask the browser to focus a client (renderer->browser). | 248 // Ask the browser to focus a client (renderer->browser). |
239 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_FocusClient, | 249 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_FocusClient, |
240 int /* request_id */, | 250 int /* request_id */, |
241 int /* client_id */) | 251 int /* client_id */) |
242 | 252 |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 blink::WebServiceWorkerCacheError) | 532 blink::WebServiceWorkerCacheError) |
523 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, | 533 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, |
524 int /* request_id */, | 534 int /* request_id */, |
525 blink::WebServiceWorkerCacheError) | 535 blink::WebServiceWorkerCacheError) |
526 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, | 536 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, |
527 int /* request_id */, | 537 int /* request_id */, |
528 blink::WebServiceWorkerCacheError) | 538 blink::WebServiceWorkerCacheError) |
529 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, | 539 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, |
530 int /* request_id */, | 540 int /* request_id */, |
531 blink::WebServiceWorkerCacheError) | 541 blink::WebServiceWorkerCacheError) |
OLD | NEW |