| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 IPC_STRUCT_TRAITS_MEMBER(registration_id) | 104 IPC_STRUCT_TRAITS_MEMBER(registration_id) |
| 105 IPC_STRUCT_TRAITS_END() | 105 IPC_STRUCT_TRAITS_END() |
| 106 | 106 |
| 107 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerVersionAttributes) | 107 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerVersionAttributes) |
| 108 IPC_STRUCT_TRAITS_MEMBER(installing) | 108 IPC_STRUCT_TRAITS_MEMBER(installing) |
| 109 IPC_STRUCT_TRAITS_MEMBER(waiting) | 109 IPC_STRUCT_TRAITS_MEMBER(waiting) |
| 110 IPC_STRUCT_TRAITS_MEMBER(active) | 110 IPC_STRUCT_TRAITS_MEMBER(active) |
| 111 IPC_STRUCT_TRAITS_END() | 111 IPC_STRUCT_TRAITS_END() |
| 112 | 112 |
| 113 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerClientInfo) | 113 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerClientInfo) |
| 114 IPC_STRUCT_TRAITS_MEMBER(client_id) | 114 IPC_STRUCT_TRAITS_MEMBER(client_uuid) |
| 115 IPC_STRUCT_TRAITS_MEMBER(page_visibility_state) | 115 IPC_STRUCT_TRAITS_MEMBER(page_visibility_state) |
| 116 IPC_STRUCT_TRAITS_MEMBER(is_focused) | 116 IPC_STRUCT_TRAITS_MEMBER(is_focused) |
| 117 IPC_STRUCT_TRAITS_MEMBER(url) | 117 IPC_STRUCT_TRAITS_MEMBER(url) |
| 118 IPC_STRUCT_TRAITS_MEMBER(frame_type) | 118 IPC_STRUCT_TRAITS_MEMBER(frame_type) |
| 119 IPC_STRUCT_TRAITS_MEMBER(client_type) | 119 IPC_STRUCT_TRAITS_MEMBER(client_type) |
| 120 IPC_STRUCT_TRAITS_END() | 120 IPC_STRUCT_TRAITS_END() |
| 121 | 121 |
| 122 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerClientQueryOptions) | 122 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerClientQueryOptions) |
| 123 IPC_STRUCT_TRAITS_MEMBER(client_type) | 123 IPC_STRUCT_TRAITS_MEMBER(client_type) |
| 124 IPC_STRUCT_TRAITS_MEMBER(include_uncontrolled) | 124 IPC_STRUCT_TRAITS_MEMBER(include_uncontrolled) |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 | 231 |
| 232 // Responds to a Ping from the browser. | 232 // Responds to a Ping from the browser. |
| 233 // Routed to the target ServiceWorkerVersion. | 233 // Routed to the target ServiceWorkerVersion. |
| 234 IPC_MESSAGE_ROUTED0(ServiceWorkerHostMsg_Pong) | 234 IPC_MESSAGE_ROUTED0(ServiceWorkerHostMsg_Pong) |
| 235 | 235 |
| 236 // Asks the browser to retrieve clients of the sender ServiceWorker. | 236 // Asks the browser to retrieve clients of the sender ServiceWorker. |
| 237 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClients, | 237 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClients, |
| 238 int /* request_id */, | 238 int /* request_id */, |
| 239 content::ServiceWorkerClientQueryOptions) | 239 content::ServiceWorkerClientQueryOptions) |
| 240 | 240 |
| 241 // Sends a 'message' event to a client document (renderer->browser). | 241 // Sends a 'message' event to a client (renderer->browser). |
| 242 IPC_MESSAGE_ROUTED3( | 242 IPC_MESSAGE_ROUTED3( |
| 243 ServiceWorkerHostMsg_PostMessageToDocument, | 243 ServiceWorkerHostMsg_PostMessageToClient, |
| 244 int /* client_id */, | 244 std::string /* uuid */, |
| 245 base::string16 /* message */, | 245 base::string16 /* message */, |
| 246 std::vector<content::TransferredMessagePort> /* sent_message_ports */) | 246 std::vector<content::TransferredMessagePort> /* sent_message_ports */) |
| 247 | 247 |
| 248 // ServiceWorker -> Browser message to request that the ServiceWorkerStorage | 248 // ServiceWorker -> Browser message to request that the ServiceWorkerStorage |
| 249 // cache |data| associated with |url|. | 249 // cache |data| associated with |url|. |
| 250 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_SetCachedMetadata, | 250 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_SetCachedMetadata, |
| 251 GURL /* url */, | 251 GURL /* url */, |
| 252 std::vector<char> /* data */) | 252 std::vector<char> /* data */) |
| 253 | 253 |
| 254 // ServiceWorker -> Browser message to request that the ServiceWorkerStorage | 254 // ServiceWorker -> Browser message to request that the ServiceWorkerStorage |
| 255 // clear the cache associated with |url|. | 255 // clear the cache associated with |url|. |
| 256 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_ClearCachedMetadata, GURL /* url */) | 256 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_ClearCachedMetadata, GURL /* url */) |
| 257 | 257 |
| 258 // Ask the browser to open a tab/window (renderer->browser). | 258 // Ask the browser to open a tab/window (renderer->browser). |
| 259 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_OpenWindow, | 259 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_OpenWindow, |
| 260 int /* request_id */, | 260 int /* request_id */, |
| 261 GURL /* url */) | 261 GURL /* url */) |
| 262 | 262 |
| 263 // Ask the browser to focus a client (renderer->browser). | 263 // Ask the browser to focus a client (renderer->browser). |
| 264 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_FocusClient, | 264 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_FocusClient, |
| 265 int /* request_id */, | 265 int /* request_id */, |
| 266 int /* client_id */) | 266 std::string /* uuid */) |
| 267 | 267 |
| 268 // Asks the browser to force this worker to become activated. | 268 // Asks the browser to force this worker to become activated. |
| 269 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_SkipWaiting, | 269 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_SkipWaiting, |
| 270 int /* request_id */) | 270 int /* request_id */) |
| 271 | 271 |
| 272 // Asks the browser to have this worker take control of pages that match | 272 // Asks the browser to have this worker take control of pages that match |
| 273 // its scope. | 273 // its scope. |
| 274 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_ClaimClients, | 274 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_ClaimClients, |
| 275 int /* request_id */) | 275 int /* request_id */) |
| 276 | 276 |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 552 blink::WebServiceWorkerCacheError) | 552 blink::WebServiceWorkerCacheError) |
| 553 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, | 553 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, |
| 554 int /* request_id */, | 554 int /* request_id */, |
| 555 blink::WebServiceWorkerCacheError) | 555 blink::WebServiceWorkerCacheError) |
| 556 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, | 556 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, |
| 557 int /* request_id */, | 557 int /* request_id */, |
| 558 blink::WebServiceWorkerCacheError) | 558 blink::WebServiceWorkerCacheError) |
| 559 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, | 559 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, |
| 560 int /* request_id */, | 560 int /* request_id */, |
| 561 blink::WebServiceWorkerCacheError) | 561 blink::WebServiceWorkerCacheError) |
| OLD | NEW |