| 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 std::vector<content::TransferredMessagePort> /* sent_message_ports */) | 172 std::vector<content::TransferredMessagePort> /* sent_message_ports */) |
| 173 | 173 |
| 174 // Informs the browser of a new ServiceWorkerProvider in the child process, | 174 // Informs the browser of a new ServiceWorkerProvider in the child process, |
| 175 // |provider_id| is unique within its child process. When this provider is | 175 // |provider_id| is unique within its child process. When this provider is |
| 176 // created for a document, |route_id| is the frame ID of it. When this provider | 176 // created for a document, |route_id| is the frame ID of it. When this provider |
| 177 // is created for a Shared Worker, |route_id| is the Shared Worker route ID. | 177 // is created for a Shared Worker, |route_id| is the Shared Worker route ID. |
| 178 // When this provider is created for a Service Worker, |route_id| is | 178 // When this provider is created for a Service Worker, |route_id| is |
| 179 // MSG_ROUTING_NONE. |provider_type| identifies whether this provider is for | 179 // MSG_ROUTING_NONE. |provider_type| identifies whether this provider is for |
| 180 // Service Worker controllees (documents and Shared Workers) or for controllers | 180 // Service Worker controllees (documents and Shared Workers) or for controllers |
| 181 // (Service Workers). | 181 // (Service Workers). |
| 182 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_ProviderCreated, | 182 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_ProviderCreated, |
| 183 int /* provider_id */, | 183 int /* provider_id */, |
| 184 int /* route_id */, | 184 int /* route_id */, |
| 185 content::ServiceWorkerProviderType /* provider_type */) | 185 content::ServiceWorkerProviderType /* provider_type */, |
| 186 int /* navigation_provider_id */) |
| 186 | 187 |
| 187 // Informs the browser of a ServiceWorkerProvider being destroyed. | 188 // Informs the browser of a ServiceWorkerProvider being destroyed. |
| 188 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed, | 189 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed, |
| 189 int /* provider_id */) | 190 int /* provider_id */) |
| 190 | 191 |
| 191 // Increments and decrements the ServiceWorker object's reference | 192 // Increments and decrements the ServiceWorker object's reference |
| 192 // counting in the browser side. The ServiceWorker object is created | 193 // counting in the browser side. The ServiceWorker object is created |
| 193 // with ref-count==1 initially. | 194 // with ref-count==1 initially. |
| 194 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_IncrementServiceWorkerRefCount, | 195 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_IncrementServiceWorkerRefCount, |
| 195 int /* handle_id */) | 196 int /* handle_id */) |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 | 462 |
| 462 // Sent via EmbeddedWorker as an error response of OpenWindow. | 463 // Sent via EmbeddedWorker as an error response of OpenWindow. |
| 463 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowError, | 464 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowError, |
| 464 int /* request_id */, | 465 int /* request_id */, |
| 465 std::string /* message */ ) | 466 std::string /* message */ ) |
| 466 | 467 |
| 467 // Sent via EmbeddedWorker as a response of FocusClient. | 468 // Sent via EmbeddedWorker as a response of FocusClient. |
| 468 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, | 469 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, |
| 469 int /* request_id */, | 470 int /* request_id */, |
| 470 content::ServiceWorkerClientInfo /* client */) | 471 content::ServiceWorkerClientInfo /* client */) |
| OLD | NEW |