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

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

Issue 894973003: ServiceWorker: Make "ready" fetches registration from browser process(2/3). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 9 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
« no previous file with comments | « content/child/service_worker/web_service_worker_provider_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 int /* request_id */, 146 int /* request_id */,
147 int /* provider_id */, 147 int /* provider_id */,
148 GURL /* scope (url pattern) */) 148 GURL /* scope (url pattern) */)
149 149
150 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_GetRegistration, 150 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_GetRegistration,
151 int /* thread_id */, 151 int /* thread_id */,
152 int /* request_id */, 152 int /* request_id */,
153 int /* provider_id */, 153 int /* provider_id */,
154 GURL /* document_url */) 154 GURL /* document_url */)
155 155
156 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_GetRegistrationForReady,
157 int /* thread_id */,
158 int /* request_id */,
159 int /* provider_id */)
160
156 // Sends a 'message' event to a service worker (renderer->browser). 161 // Sends a 'message' event to a service worker (renderer->browser).
157 IPC_MESSAGE_CONTROL3( 162 IPC_MESSAGE_CONTROL3(
158 ServiceWorkerHostMsg_PostMessageToWorker, 163 ServiceWorkerHostMsg_PostMessageToWorker,
159 int /* handle_id */, 164 int /* handle_id */,
160 base::string16 /* message */, 165 base::string16 /* message */,
161 std::vector<content::TransferredMessagePort> /* sent_message_ports */) 166 std::vector<content::TransferredMessagePort> /* sent_message_ports */)
162 167
163 // Informs the browser of a new ServiceWorkerProvider in the child process, 168 // Informs the browser of a new ServiceWorkerProvider in the child process,
164 // |provider_id| is unique within its child process. 169 // |provider_id| is unique within its child process.
165 // |render_frame_id| identifies the frame associated with the provider, it will 170 // |render_frame_id| identifies the frame associated with the provider, it will
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 int /* request_id */, 370 int /* request_id */,
366 bool /* is_success */) 371 bool /* is_success */)
367 372
368 // Response to ServiceWorkerHostMsg_GetRegistration. 373 // Response to ServiceWorkerHostMsg_GetRegistration.
369 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistration, 374 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistration,
370 int /* thread_id */, 375 int /* thread_id */,
371 int /* request_id */, 376 int /* request_id */,
372 content::ServiceWorkerRegistrationObjectInfo, 377 content::ServiceWorkerRegistrationObjectInfo,
373 content::ServiceWorkerVersionAttributes) 378 content::ServiceWorkerVersionAttributes)
374 379
380 // Response to ServiceWorkerHostMsg_GetRegistrationForReady.
381 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistrationForReady,
382 int /* thread_id */,
383 int /* request_id */,
384 content::ServiceWorkerRegistrationObjectInfo,
385 content::ServiceWorkerVersionAttributes)
386
375 // Sent when any kind of registration error occurs during a 387 // Sent when any kind of registration error occurs during a
376 // RegisterServiceWorker handler above. 388 // RegisterServiceWorker handler above.
377 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, 389 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError,
378 int /* thread_id */, 390 int /* thread_id */,
379 int /* request_id */, 391 int /* request_id */,
380 blink::WebServiceWorkerError::ErrorType /* code */, 392 blink::WebServiceWorkerError::ErrorType /* code */,
381 base::string16 /* message */) 393 base::string16 /* message */)
382 394
383 // Sent when any kind of registration error occurs during a 395 // Sent when any kind of registration error occurs during a
384 // UnregisterServiceWorker handler above. 396 // UnregisterServiceWorker handler above.
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 blink::WebServiceWorkerCacheError) 564 blink::WebServiceWorkerCacheError)
553 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, 565 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError,
554 int /* request_id */, 566 int /* request_id */,
555 blink::WebServiceWorkerCacheError) 567 blink::WebServiceWorkerCacheError)
556 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, 568 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError,
557 int /* request_id */, 569 int /* request_id */,
558 blink::WebServiceWorkerCacheError) 570 blink::WebServiceWorkerCacheError)
559 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, 571 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError,
560 int /* request_id */, 572 int /* request_id */,
561 blink::WebServiceWorkerCacheError) 573 blink::WebServiceWorkerCacheError)
OLDNEW
« no previous file with comments | « content/child/service_worker/web_service_worker_provider_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698