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

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: #13 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
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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 int /* request_id */, 137 int /* request_id */,
138 int /* provider_id */, 138 int /* provider_id */,
139 GURL /* scope (url pattern) */) 139 GURL /* scope (url pattern) */)
140 140
141 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_GetRegistration, 141 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_GetRegistration,
142 int /* thread_id */, 142 int /* thread_id */,
143 int /* request_id */, 143 int /* request_id */,
144 int /* provider_id */, 144 int /* provider_id */,
145 GURL /* document_url */) 145 GURL /* document_url */)
146 146
147 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_GetRegistrationForReady,
148 int /* thread_id */,
149 int /* request_id */,
150 int /* provider_id */)
151
147 // Sends a 'message' event to a service worker (renderer->browser). 152 // Sends a 'message' event to a service worker (renderer->browser).
148 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_PostMessageToWorker, 153 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_PostMessageToWorker,
149 int /* handle_id */, 154 int /* handle_id */,
150 base::string16 /* message */, 155 base::string16 /* message */,
151 std::vector<int> /* sent_message_port_ids */) 156 std::vector<int> /* sent_message_port_ids */)
152 157
153 // Informs the browser of a new ServiceWorkerProvider in the child process, 158 // Informs the browser of a new ServiceWorkerProvider in the child process,
154 // |provider_id| is unique within its child process. 159 // |provider_id| is unique within its child process.
155 // |render_frame_id| identifies the frame associated with the provider, it will 160 // |render_frame_id| identifies the frame associated with the provider, it will
156 // it will be MSG_ROUTING_NONE if the context is a worker instead of a document. 161 // it will be MSG_ROUTING_NONE if the context is a worker instead of a document.
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 int /* request_id */, 359 int /* request_id */,
355 bool /* is_success */) 360 bool /* is_success */)
356 361
357 // Response to ServiceWorkerHostMsg_GetRegistration. 362 // Response to ServiceWorkerHostMsg_GetRegistration.
358 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistration, 363 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistration,
359 int /* thread_id */, 364 int /* thread_id */,
360 int /* request_id */, 365 int /* request_id */,
361 content::ServiceWorkerRegistrationObjectInfo, 366 content::ServiceWorkerRegistrationObjectInfo,
362 content::ServiceWorkerVersionAttributes) 367 content::ServiceWorkerVersionAttributes)
363 368
369 // Response to ServiceWorkerHostMsg_GetRegistrationForReady.
370 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistrationForReady,
371 int /* thread_id */,
372 int /* request_id */,
373 content::ServiceWorkerRegistrationObjectInfo,
374 content::ServiceWorkerVersionAttributes)
375
364 // Sent when any kind of registration error occurs during a 376 // Sent when any kind of registration error occurs during a
365 // RegisterServiceWorker handler above. 377 // RegisterServiceWorker handler above.
366 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, 378 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError,
367 int /* thread_id */, 379 int /* thread_id */,
368 int /* request_id */, 380 int /* request_id */,
369 blink::WebServiceWorkerError::ErrorType /* code */, 381 blink::WebServiceWorkerError::ErrorType /* code */,
370 base::string16 /* message */) 382 base::string16 /* message */)
371 383
372 // Sent when any kind of registration error occurs during a 384 // Sent when any kind of registration error occurs during a
373 // UnregisterServiceWorker handler above. 385 // UnregisterServiceWorker handler above.
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 blink::WebServiceWorkerCacheError) 551 blink::WebServiceWorkerCacheError)
540 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, 552 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError,
541 int /* request_id */, 553 int /* request_id */,
542 blink::WebServiceWorkerCacheError) 554 blink::WebServiceWorkerCacheError)
543 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, 555 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError,
544 int /* request_id */, 556 int /* request_id */,
545 blink::WebServiceWorkerCacheError) 557 blink::WebServiceWorkerCacheError)
546 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, 558 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError,
547 int /* request_id */, 559 int /* request_id */,
548 blink::WebServiceWorkerCacheError) 560 blink::WebServiceWorkerCacheError)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698