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

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

Issue 970693003: ServiceWorker: plumbing for ClientQueryOptions (2/2, chromium) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 22 matching lines...) Expand all
33 33
34 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerEventResult, 34 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerEventResult,
35 blink::WebServiceWorkerEventResultLast) 35 blink::WebServiceWorkerEventResultLast)
36 36
37 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerState, 37 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerState,
38 blink::WebServiceWorkerStateLast) 38 blink::WebServiceWorkerStateLast)
39 39
40 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerResponseType, 40 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerResponseType,
41 blink::WebServiceWorkerResponseTypeLast) 41 blink::WebServiceWorkerResponseTypeLast)
42 42
43 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerClientType,
44 blink::WebServiceWorkerClientTypeLast)
45
43 IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWorkerProviderType, 46 IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWorkerProviderType,
44 content::SERVICE_WORKER_PROVIDER_TYPE_LAST) 47 content::SERVICE_WORKER_PROVIDER_TYPE_LAST)
45 48
46 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerFetchRequest) 49 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerFetchRequest)
47 IPC_STRUCT_TRAITS_MEMBER(mode) 50 IPC_STRUCT_TRAITS_MEMBER(mode)
48 IPC_STRUCT_TRAITS_MEMBER(request_context_type) 51 IPC_STRUCT_TRAITS_MEMBER(request_context_type)
49 IPC_STRUCT_TRAITS_MEMBER(frame_type) 52 IPC_STRUCT_TRAITS_MEMBER(frame_type)
50 IPC_STRUCT_TRAITS_MEMBER(url) 53 IPC_STRUCT_TRAITS_MEMBER(url)
51 IPC_STRUCT_TRAITS_MEMBER(method) 54 IPC_STRUCT_TRAITS_MEMBER(method)
52 IPC_STRUCT_TRAITS_MEMBER(headers) 55 IPC_STRUCT_TRAITS_MEMBER(headers)
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 IPC_STRUCT_TRAITS_MEMBER(waiting) 110 IPC_STRUCT_TRAITS_MEMBER(waiting)
108 IPC_STRUCT_TRAITS_MEMBER(active) 111 IPC_STRUCT_TRAITS_MEMBER(active)
109 IPC_STRUCT_TRAITS_END() 112 IPC_STRUCT_TRAITS_END()
110 113
111 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerClientInfo) 114 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerClientInfo)
112 IPC_STRUCT_TRAITS_MEMBER(client_id) 115 IPC_STRUCT_TRAITS_MEMBER(client_id)
113 IPC_STRUCT_TRAITS_MEMBER(page_visibility_state) 116 IPC_STRUCT_TRAITS_MEMBER(page_visibility_state)
114 IPC_STRUCT_TRAITS_MEMBER(is_focused) 117 IPC_STRUCT_TRAITS_MEMBER(is_focused)
115 IPC_STRUCT_TRAITS_MEMBER(url) 118 IPC_STRUCT_TRAITS_MEMBER(url)
116 IPC_STRUCT_TRAITS_MEMBER(frame_type) 119 IPC_STRUCT_TRAITS_MEMBER(frame_type)
120 IPC_STRUCT_TRAITS_MEMBER(client_type)
121 IPC_STRUCT_TRAITS_END()
122
123 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerClientQueryOptions)
124 IPC_STRUCT_TRAITS_MEMBER(client_type)
125 IPC_STRUCT_TRAITS_MEMBER(include_uncontrolled)
Tom Sepez 2015/03/06 17:53:21 nit: "uncontrolled" is an adjective, I'd like a no
kinuko 2015/03/07 12:11:38 Yup I agree that a noun'd be better... while this
117 IPC_STRUCT_TRAITS_END() 126 IPC_STRUCT_TRAITS_END()
118 127
119 IPC_ENUM_TRAITS_MAX_VALUE( 128 IPC_ENUM_TRAITS_MAX_VALUE(
120 blink::WebServiceWorkerCacheError, 129 blink::WebServiceWorkerCacheError,
121 blink::WebServiceWorkerCacheErrorLast) 130 blink::WebServiceWorkerCacheErrorLast)
122 131
123 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebGeofencingEventType, 132 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebGeofencingEventType,
124 blink::WebGeofencingEventTypeLast) 133 blink::WebGeofencingEventTypeLast)
125 134
126 //--------------------------------------------------------------------------- 135 //---------------------------------------------------------------------------
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GeofencingEventFinished, 227 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GeofencingEventFinished,
219 int /* request_id */) 228 int /* request_id */)
220 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CrossOriginConnectEventFinished, 229 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CrossOriginConnectEventFinished,
221 int /* request_id */, 230 int /* request_id */,
222 bool /* accept_connection */) 231 bool /* accept_connection */)
223 232
224 // Responds to a Ping from the browser. 233 // Responds to a Ping from the browser.
225 // Routed to the target ServiceWorkerVersion. 234 // Routed to the target ServiceWorkerVersion.
226 IPC_MESSAGE_ROUTED0(ServiceWorkerHostMsg_Pong) 235 IPC_MESSAGE_ROUTED0(ServiceWorkerHostMsg_Pong)
227 236
228 // Asks the browser to retrieve documents controlled by the sender 237 // Asks the browser to retrieve clients controlled by the sender
falken 2015/03/04 07:16:43 I guess "controlled" is now wrong too, since there
kinuko 2015/03/07 12:11:38 Done.
229 // ServiceWorker. 238 // ServiceWorker.
230 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GetClientDocuments, 239 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClients,
231 int /* request_id */) 240 int /* request_id */,
241 content::ServiceWorkerClientQueryOptions)
232 242
233 // Sends a 'message' event to a client document (renderer->browser). 243 // Sends a 'message' event to a client document (renderer->browser).
234 IPC_MESSAGE_ROUTED3( 244 IPC_MESSAGE_ROUTED3(
235 ServiceWorkerHostMsg_PostMessageToDocument, 245 ServiceWorkerHostMsg_PostMessageToDocument,
236 int /* client_id */, 246 int /* client_id */,
237 base::string16 /* message */, 247 base::string16 /* message */,
238 std::vector<content::TransferredMessagePort> /* sent_message_ports */) 248 std::vector<content::TransferredMessagePort> /* sent_message_ports */)
239 249
240 // ServiceWorker -> Browser message to request that the ServiceWorkerStorage 250 // ServiceWorker -> Browser message to request that the ServiceWorkerStorage
241 // cache |data| associated with |url|. 251 // cache |data| associated with |url|.
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidClaimClients, 477 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidClaimClients,
468 int /* request_id */) 478 int /* request_id */)
469 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ClaimClientsError, 479 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ClaimClientsError,
470 int /* request_id */, 480 int /* request_id */,
471 blink::WebServiceWorkerError::ErrorType /* code */, 481 blink::WebServiceWorkerError::ErrorType /* code */,
472 base::string16 /* message */) 482 base::string16 /* message */)
473 483
474 // Sent via EmbeddedWorker to Ping the worker, expecting a Pong in response. 484 // Sent via EmbeddedWorker to Ping the worker, expecting a Pong in response.
475 IPC_MESSAGE_CONTROL0(ServiceWorkerMsg_Ping) 485 IPC_MESSAGE_CONTROL0(ServiceWorkerMsg_Ping)
476 486
477 // Sent via EmbeddedWorker as a response of GetClientDocuments. 487 // Sent via EmbeddedWorker as a response of GetClients.
478 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments, 488 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClients,
479 int /* request_id */, 489 int /* request_id */,
480 std::vector<content::ServiceWorkerClientInfo>) 490 std::vector<content::ServiceWorkerClientInfo>)
481 491
482 // Sent via EmbeddedWorker as a response of OpenWindow. 492 // Sent via EmbeddedWorker as a response of OpenWindow.
483 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowResponse, 493 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowResponse,
484 int /* request_id */, 494 int /* request_id */,
485 content::ServiceWorkerClientInfo /* client */) 495 content::ServiceWorkerClientInfo /* client */)
486 496
487 // Sent via EmbeddedWorker as an error response of OpenWindow. 497 // Sent via EmbeddedWorker as an error response of OpenWindow.
488 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_OpenWindowError, 498 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_OpenWindowError,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 blink::WebServiceWorkerCacheError) 555 blink::WebServiceWorkerCacheError)
546 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, 556 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError,
547 int /* request_id */, 557 int /* request_id */,
548 blink::WebServiceWorkerCacheError) 558 blink::WebServiceWorkerCacheError)
549 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, 559 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError,
550 int /* request_id */, 560 int /* request_id */,
551 blink::WebServiceWorkerCacheError) 561 blink::WebServiceWorkerCacheError)
552 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, 562 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError,
553 int /* request_id */, 563 int /* request_id */,
554 blink::WebServiceWorkerCacheError) 564 blink::WebServiceWorkerCacheError)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698