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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
80 | 80 |
81 // Informs the browser of a new ServiceWorkerProvider in the child process, | 81 // Informs the browser of a new ServiceWorkerProvider in the child process, |
82 // |provider_id| is unique within its child process. | 82 // |provider_id| is unique within its child process. |
83 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderCreated, | 83 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderCreated, |
84 int /* provider_id */) | 84 int /* provider_id */) |
85 | 85 |
86 // Informs the browser of a ServiceWorkerProvider being destroyed. | 86 // Informs the browser of a ServiceWorkerProvider being destroyed. |
87 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed, | 87 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed, |
88 int /* provider_id */) | 88 int /* provider_id */) |
89 | 89 |
90 // Informs the browser that |provider_id| is associated | |
dcheng
2014/03/17 22:12:10
The comment for this block of IPC messages is "Mes
michaeln
2014/03/17 22:53:58
You're right, a bunch of them (most i think) are i
michaeln
2014/03/17 23:27:04
Done.
| |
91 // with a service worker script running context and | |
92 // |version_id| identifies which ServcieWorkerVersion. | |
93 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_SetVersionId, | |
94 int /* provider_id */, | |
95 int64 /* version_id */) | |
96 | |
90 // Informs the browser of a new scriptable API client in the child process. | 97 // Informs the browser of a new scriptable API client in the child process. |
91 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_AddScriptClient, | 98 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_AddScriptClient, |
92 int /* thread_id */, | 99 int /* thread_id */, |
93 int /* provider_id */) | 100 int /* provider_id */) |
94 | 101 |
95 // Informs the browser that the scriptable API client is unregistered. | 102 // Informs the browser that the scriptable API client is unregistered. |
96 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_RemoveScriptClient, | 103 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_RemoveScriptClient, |
97 int /* thread_id */, | 104 int /* thread_id */, |
98 int /* provider_id */) | 105 int /* provider_id */) |
99 | 106 |
100 // Informs the browser that install event handling has finished. | 107 // Informs the browser that install event handling has finished. |
101 // Sent via EmbeddedWorker. If there was an exception during the | 108 // Sent via EmbeddedWorker. If there was an exception during the |
102 // event handling it'll be reported back separately (to be propagated | 109 // event handling it'll be reported back separately (to be propagated |
103 // to the documents). | 110 // to the documents). |
104 IPC_MESSAGE_CONTROL0(ServiceWorkerHostMsg_InstallEventFinished) | 111 IPC_MESSAGE_CONTROL0(ServiceWorkerHostMsg_InstallEventFinished) |
105 | 112 |
106 // Informs the browser that fetch event handling has finished. | 113 // Informs the browser that fetch event handling has finished. |
107 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_FetchEventFinished, | 114 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_FetchEventFinished, |
108 content::ServiceWorkerFetchEventResult, | 115 content::ServiceWorkerFetchEventResult, |
109 content::ServiceWorkerResponse) | 116 content::ServiceWorkerResponse) |
OLD | NEW |