Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Side by Side Diff: content/common/service_worker/service_worker_messages.h

Issue 535753002: ServiceWorker: Implement navigator.serviceWorker.getRegistration [2/3] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 int /* provider_id */, 83 int /* provider_id */,
84 GURL /* scope */, 84 GURL /* scope */,
85 GURL /* script_url */) 85 GURL /* script_url */)
86 86
87 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_UnregisterServiceWorker, 87 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_UnregisterServiceWorker,
88 int /* thread_id */, 88 int /* thread_id */,
89 int /* request_id */, 89 int /* request_id */,
90 int /* provider_id */, 90 int /* provider_id */,
91 GURL /* scope (url pattern) */) 91 GURL /* scope (url pattern) */)
92 92
93 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_GetRegistration,
94 int /* thread_id */,
95 int /* request_id */,
96 int /* provider_id */,
97 GURL /* document_url */)
98
93 // Sends a 'message' event to a service worker (renderer->browser). 99 // Sends a 'message' event to a service worker (renderer->browser).
94 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_PostMessageToWorker, 100 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_PostMessageToWorker,
95 int /* handle_id */, 101 int /* handle_id */,
96 base::string16 /* message */, 102 base::string16 /* message */,
97 std::vector<int> /* sent_message_port_ids */) 103 std::vector<int> /* sent_message_port_ids */)
98 104
99 // Informs the browser of a new ServiceWorkerProvider in the child process, 105 // Informs the browser of a new ServiceWorkerProvider in the child process,
100 // |provider_id| is unique within its child process. 106 // |provider_id| is unique within its child process.
101 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderCreated, 107 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderCreated,
102 int /* provider_id */) 108 int /* provider_id */)
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 int /* thread_id */, 195 int /* thread_id */,
190 int /* request_id */, 196 int /* request_id */,
191 content::ServiceWorkerRegistrationObjectInfo, 197 content::ServiceWorkerRegistrationObjectInfo,
192 content::ServiceWorkerVersionAttributes) 198 content::ServiceWorkerVersionAttributes)
193 199
194 // Response to ServiceWorkerMsg_UnregisterServiceWorker. 200 // Response to ServiceWorkerMsg_UnregisterServiceWorker.
195 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_ServiceWorkerUnregistered, 201 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_ServiceWorkerUnregistered,
196 int /* thread_id */, 202 int /* thread_id */,
197 int /* request_id */) 203 int /* request_id */)
198 204
205 // Response to ServiceWorkerHostMsg_GetRegistration.
206 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistration,
207 int /* thread_id */,
208 int /* request_id */,
209 content::ServiceWorkerRegistrationObjectInfo,
210 content::ServiceWorkerVersionAttributes)
211
199 // Sent when any kind of registration error occurs during a 212 // Sent when any kind of registration error occurs during a
200 // RegisterServiceWorker / UnregisterServiceWorker handler above. 213 // RegisterServiceWorker / UnregisterServiceWorker / GetRegistration
214 // handler above.
201 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, 215 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError,
202 int /* thread_id */, 216 int /* thread_id */,
203 int /* request_id */, 217 int /* request_id */,
204 blink::WebServiceWorkerError::ErrorType /* code */, 218 blink::WebServiceWorkerError::ErrorType /* code */,
205 base::string16 /* message */) 219 base::string16 /* message */)
206 220
207 // Informs the child process that the ServiceWorker's state has changed. 221 // Informs the child process that the ServiceWorker's state has changed.
208 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerStateChanged, 222 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerStateChanged,
209 int /* thread_id */, 223 int /* thread_id */,
210 int /* handle_id */, 224 int /* handle_id */,
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 blink::WebServiceWorkerCacheError /* reason */) 301 blink::WebServiceWorkerCacheError /* reason */)
288 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageCreateError, 302 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageCreateError,
289 int /* request_id */, 303 int /* request_id */,
290 blink::WebServiceWorkerCacheError /* reason */) 304 blink::WebServiceWorkerCacheError /* reason */)
291 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageDeleteError, 305 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageDeleteError,
292 int /* request_id */, 306 int /* request_id */,
293 blink::WebServiceWorkerCacheError /* reason */) 307 blink::WebServiceWorkerCacheError /* reason */)
294 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageKeysError, 308 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageKeysError,
295 int /* request_id */, 309 int /* request_id */,
296 blink::WebServiceWorkerCacheError /* reason */) 310 blink::WebServiceWorkerCacheError /* reason */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698