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 "base/strings/string16.h" | 7 #include "base/strings/string16.h" |
8 #include "content/common/service_worker/service_worker_status_code.h" | 8 #include "content/common/service_worker/service_worker_status_code.h" |
9 #include "content/common/service_worker/service_worker_types.h" | 9 #include "content/common/service_worker/service_worker_types.h" |
10 #include "ipc/ipc_message_macros.h" | 10 #include "ipc/ipc_message_macros.h" |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 77 |
78 // Informs the browser of a new ServiceWorkerProvider in the child process, | 78 // Informs the browser of a new ServiceWorkerProvider in the child process, |
79 // |provider_id| is unique within its child process. | 79 // |provider_id| is unique within its child process. |
80 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderCreated, | 80 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderCreated, |
81 int /* provider_id */) | 81 int /* provider_id */) |
82 | 82 |
83 // Informs the browser of a ServiceWorkerProvider being destroyed. | 83 // Informs the browser of a ServiceWorkerProvider being destroyed. |
84 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed, | 84 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed, |
85 int /* provider_id */) | 85 int /* provider_id */) |
86 | 86 |
| 87 // Informs the browser of a new scriptable API client in the child process. |
| 88 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_AddScriptClient, |
| 89 int /* thread_id */, |
| 90 int /* provider_id */) |
| 91 |
| 92 // Informs the browser that the scriptable API client is unregistered. |
| 93 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_RemoveScriptClient, |
| 94 int /* thread_id */, |
| 95 int /* provider_id */) |
| 96 |
87 // Informs the browser that install event handling has finished. | 97 // Informs the browser that install event handling has finished. |
88 // Sent via EmbeddedWorker. If there was an exception during the | 98 // Sent via EmbeddedWorker. If there was an exception during the |
89 // event handling it'll be reported back separately (to be propagated | 99 // event handling it'll be reported back separately (to be propagated |
90 // to the documents). | 100 // to the documents). |
91 IPC_MESSAGE_CONTROL0(ServiceWorkerHostMsg_InstallEventFinished) | 101 IPC_MESSAGE_CONTROL0(ServiceWorkerHostMsg_InstallEventFinished) |
92 | 102 |
93 // Informs the browser that fetch event handling has finished. | 103 // Informs the browser that fetch event handling has finished. |
94 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_FetchEventFinished, | 104 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_FetchEventFinished, |
95 content::ServiceWorkerFetchResponse) | 105 content::ServiceWorkerFetchResponse) |
OLD | NEW |