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

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

Issue 871853002: ServiceWorker: add ServiceWorkerClients.claim() support (2/3). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove assignment within conditional expression Created 5 years, 10 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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 content::ServiceWorkerClientInfo) 233 content::ServiceWorkerClientInfo)
234 234
235 // Response to ServiceWorkerMsg_GetClientInfo. 235 // Response to ServiceWorkerMsg_GetClientInfo.
236 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GetClientInfoError, 236 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GetClientInfoError,
237 int /* request_id */) 237 int /* request_id */)
238 238
239 // Asks the browser to force this worker to become activated. 239 // Asks the browser to force this worker to become activated.
240 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_SkipWaiting, 240 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_SkipWaiting,
241 int /* request_id */) 241 int /* request_id */)
242 242
243 // Asks the browser to have this worker take control of pages that match
244 // its scope.
245 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_ClaimClients,
246 int /* request_id */)
247
243 // CacheStorage operations in the browser. 248 // CacheStorage operations in the browser.
244 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageHas, 249 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageHas,
245 int /* request_id */, 250 int /* request_id */,
246 base::string16 /* fetch_store_name */) 251 base::string16 /* fetch_store_name */)
247 252
248 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageOpen, 253 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageOpen,
249 int /* request_id */, 254 int /* request_id */,
250 base::string16 /* fetch_store_name */) 255 base::string16 /* fetch_store_name */)
251 256
252 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageDelete, 257 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageDelete,
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 base::string16 /* message */, 440 base::string16 /* message */,
436 std::vector<int> /* sent_message_port_ids */, 441 std::vector<int> /* sent_message_port_ids */,
437 std::vector<int> /* new_routing_ids */) 442 std::vector<int> /* new_routing_ids */)
438 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_CrossOriginMessageToWorker, 443 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_CrossOriginMessageToWorker,
439 content::NavigatorConnectClient /* client */, 444 content::NavigatorConnectClient /* client */,
440 base::string16 /* message */, 445 base::string16 /* message */,
441 std::vector<int> /* sent_message_port_ids */, 446 std::vector<int> /* sent_message_port_ids */,
442 std::vector<int> /* new_routing_ids */) 447 std::vector<int> /* new_routing_ids */)
443 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidSkipWaiting, 448 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidSkipWaiting,
444 int /* request_id */) 449 int /* request_id */)
450 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidClaimClients,
451 int /* request_id */)
452 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ClaimClientsError,
453 int /* request_id */,
454 blink::WebServiceWorkerError::ErrorType /* code */,
455 base::string16 /* message */)
445 456
446 // Sent via EmbeddedWorker as a response of GetClientDocuments. 457 // Sent via EmbeddedWorker as a response of GetClientDocuments.
447 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments, 458 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments,
448 int /* request_id */, 459 int /* request_id */,
449 std::vector<content::ServiceWorkerClientInfo>) 460 std::vector<content::ServiceWorkerClientInfo>)
450 461
451 // Sent via EmbeddedWorker as a response of FocusClient. 462 // Sent via EmbeddedWorker as a response of FocusClient.
452 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, 463 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse,
453 int /* request_id */, 464 int /* request_id */,
454 bool /* result */) 465 bool /* result */)
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 blink::WebServiceWorkerCacheError) 516 blink::WebServiceWorkerCacheError)
506 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, 517 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError,
507 int /* request_id */, 518 int /* request_id */,
508 blink::WebServiceWorkerCacheError) 519 blink::WebServiceWorkerCacheError)
509 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, 520 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError,
510 int /* request_id */, 521 int /* request_id */,
511 blink::WebServiceWorkerCacheError) 522 blink::WebServiceWorkerCacheError)
512 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, 523 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError,
513 int /* request_id */, 524 int /* request_id */,
514 blink::WebServiceWorkerCacheError) 525 blink::WebServiceWorkerCacheError)
OLDNEW
« no previous file with comments | « content/child/service_worker/service_worker_dispatcher.cc ('k') | content/common/service_worker/service_worker_status_code.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698