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

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

Issue 1974613002: Remove code that was only used by navigator.connect. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix comment Created 4 years, 7 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/common/message_port_messages.h ('k') | content/common/view_messages.h » ('j') | 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 <stdint.h> 7 #include <stdint.h>
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "content/common/service_worker/service_worker_client_info.h" 13 #include "content/common/service_worker/service_worker_client_info.h"
14 #include "content/common/service_worker/service_worker_status_code.h" 14 #include "content/common/service_worker/service_worker_status_code.h"
15 #include "content/common/service_worker/service_worker_types.h" 15 #include "content/common/service_worker/service_worker_types.h"
16 #include "content/public/common/message_port_types.h"
17 #include "content/public/common/platform_notification_data.h" 16 #include "content/public/common/platform_notification_data.h"
18 #include "content/public/common/push_event_payload.h" 17 #include "content/public/common/push_event_payload.h"
19 #include "ipc/ipc_message_macros.h" 18 #include "ipc/ipc_message_macros.h"
20 #include "ipc/ipc_param_traits.h" 19 #include "ipc/ipc_param_traits.h"
21 #include "third_party/WebKit/public/platform/WebCircularGeofencingRegion.h" 20 #include "third_party/WebKit/public/platform/WebCircularGeofencingRegion.h"
22 #include "third_party/WebKit/public/platform/WebGeofencingEventType.h" 21 #include "third_party/WebKit/public/platform/WebGeofencingEventType.h"
23 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerError.h" 22 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerError.h"
24 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerEventResult.h" 23 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerEventResult.h"
25 #include "url/gurl.h" 24 #include "url/gurl.h"
26 #include "url/origin.h" 25 #include "url/origin.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 IPC_STRUCT_TRAITS_END() 123 IPC_STRUCT_TRAITS_END()
125 124
126 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerClientQueryOptions) 125 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerClientQueryOptions)
127 IPC_STRUCT_TRAITS_MEMBER(client_type) 126 IPC_STRUCT_TRAITS_MEMBER(client_type)
128 IPC_STRUCT_TRAITS_MEMBER(include_uncontrolled) 127 IPC_STRUCT_TRAITS_MEMBER(include_uncontrolled)
129 IPC_STRUCT_TRAITS_END() 128 IPC_STRUCT_TRAITS_END()
130 129
131 IPC_STRUCT_BEGIN(ServiceWorkerMsg_ExtendableMessageEvent_Params) 130 IPC_STRUCT_BEGIN(ServiceWorkerMsg_ExtendableMessageEvent_Params)
132 IPC_STRUCT_MEMBER(base::string16, message) 131 IPC_STRUCT_MEMBER(base::string16, message)
133 IPC_STRUCT_MEMBER(url::Origin, source_origin) 132 IPC_STRUCT_MEMBER(url::Origin, source_origin)
134 IPC_STRUCT_MEMBER(std::vector<content::TransferredMessagePort>, message_ports) 133 IPC_STRUCT_MEMBER(std::vector<int>, message_ports)
135 IPC_STRUCT_MEMBER(std::vector<int>, new_routing_ids) 134 IPC_STRUCT_MEMBER(std::vector<int>, new_routing_ids)
136 IPC_STRUCT_MEMBER(content::ExtendableMessageEventSource, source) 135 IPC_STRUCT_MEMBER(content::ExtendableMessageEventSource, source)
137 IPC_STRUCT_END() 136 IPC_STRUCT_END()
138 137
139 IPC_STRUCT_BEGIN(ServiceWorkerMsg_MessageToDocument_Params) 138 IPC_STRUCT_BEGIN(ServiceWorkerMsg_MessageToDocument_Params)
140 IPC_STRUCT_MEMBER(int, thread_id) 139 IPC_STRUCT_MEMBER(int, thread_id)
141 IPC_STRUCT_MEMBER(int, provider_id) 140 IPC_STRUCT_MEMBER(int, provider_id)
142 IPC_STRUCT_MEMBER(content::ServiceWorkerObjectInfo, service_worker_info) 141 IPC_STRUCT_MEMBER(content::ServiceWorkerObjectInfo, service_worker_info)
143 IPC_STRUCT_MEMBER(base::string16, message) 142 IPC_STRUCT_MEMBER(base::string16, message)
144 IPC_STRUCT_MEMBER(std::vector<content::TransferredMessagePort>, message_ports) 143 IPC_STRUCT_MEMBER(std::vector<int>, message_ports)
145 IPC_STRUCT_MEMBER(std::vector<int>, new_routing_ids) 144 IPC_STRUCT_MEMBER(std::vector<int>, new_routing_ids)
146 IPC_STRUCT_END() 145 IPC_STRUCT_END()
147 146
148 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebGeofencingEventType, 147 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebGeofencingEventType,
149 blink::WebGeofencingEventTypeLast) 148 blink::WebGeofencingEventTypeLast)
150 149
151 IPC_STRUCT_TRAITS_BEGIN(content::PushEventPayload) 150 IPC_STRUCT_TRAITS_BEGIN(content::PushEventPayload)
152 IPC_STRUCT_TRAITS_MEMBER(data) 151 IPC_STRUCT_TRAITS_MEMBER(data)
153 IPC_STRUCT_TRAITS_MEMBER(is_null) 152 IPC_STRUCT_TRAITS_MEMBER(is_null)
154 IPC_STRUCT_TRAITS_END() 153 IPC_STRUCT_TRAITS_END()
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 int /* request_id */, 190 int /* request_id */,
192 int /* provider_id */) 191 int /* provider_id */)
193 192
194 // Sends ExtendableMessageEvent to a service worker (renderer->browser). 193 // Sends ExtendableMessageEvent to a service worker (renderer->browser).
195 IPC_MESSAGE_CONTROL5( 194 IPC_MESSAGE_CONTROL5(
196 ServiceWorkerHostMsg_PostMessageToWorker, 195 ServiceWorkerHostMsg_PostMessageToWorker,
197 int /* handle_id */, 196 int /* handle_id */,
198 int /* provider_id */, 197 int /* provider_id */,
199 base::string16 /* message */, 198 base::string16 /* message */,
200 url::Origin /* source_origin */, 199 url::Origin /* source_origin */,
201 std::vector<content::TransferredMessagePort> /* sent_message_ports */) 200 std::vector<int> /* sent_message_ports */)
202 201
203 // Informs the browser of a new ServiceWorkerProvider in the child process, 202 // Informs the browser of a new ServiceWorkerProvider in the child process,
204 // |provider_id| is unique within its child process. When this provider is 203 // |provider_id| is unique within its child process. When this provider is
205 // created for a document, |route_id| is the frame ID of it. When this provider 204 // created for a document, |route_id| is the frame ID of it. When this provider
206 // is created for a Shared Worker, |route_id| is the Shared Worker route ID. 205 // is created for a Shared Worker, |route_id| is the Shared Worker route ID.
207 // When this provider is created for a Service Worker, |route_id| is 206 // When this provider is created for a Service Worker, |route_id| is
208 // MSG_ROUTING_NONE. |provider_type| identifies whether this provider is for 207 // MSG_ROUTING_NONE. |provider_type| identifies whether this provider is for
209 // Service Worker controllees (documents and Shared Workers) or for controllers 208 // Service Worker controllees (documents and Shared Workers) or for controllers
210 // (Service Workers). 209 // (Service Workers).
211 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_ProviderCreated, 210 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_ProviderCreated,
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 // Asks the browser to retrieve clients of the sender ServiceWorker. 284 // Asks the browser to retrieve clients of the sender ServiceWorker.
286 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClients, 285 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClients,
287 int /* request_id */, 286 int /* request_id */,
288 content::ServiceWorkerClientQueryOptions) 287 content::ServiceWorkerClientQueryOptions)
289 288
290 // Sends MessageEvent to a client (renderer->browser). 289 // Sends MessageEvent to a client (renderer->browser).
291 IPC_MESSAGE_ROUTED3( 290 IPC_MESSAGE_ROUTED3(
292 ServiceWorkerHostMsg_PostMessageToClient, 291 ServiceWorkerHostMsg_PostMessageToClient,
293 std::string /* uuid */, 292 std::string /* uuid */,
294 base::string16 /* message */, 293 base::string16 /* message */,
295 std::vector<content::TransferredMessagePort> /* sent_message_ports */) 294 std::vector<int> /* sent_message_ports */)
296 295
297 // ServiceWorker -> Browser message to request that the ServiceWorkerStorage 296 // ServiceWorker -> Browser message to request that the ServiceWorkerStorage
298 // cache |data| associated with |url|. 297 // cache |data| associated with |url|.
299 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_SetCachedMetadata, 298 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_SetCachedMetadata,
300 GURL /* url */, 299 GURL /* url */,
301 std::vector<char> /* data */) 300 std::vector<char> /* data */)
302 301
303 // ServiceWorker -> Browser message to request that the ServiceWorkerStorage 302 // ServiceWorker -> Browser message to request that the ServiceWorkerStorage
304 // clear the cache associated with |url|. 303 // clear the cache associated with |url|.
305 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_ClearCachedMetadata, GURL /* url */) 304 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_ClearCachedMetadata, GURL /* url */)
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 531
533 // Sent via EmbeddedWorker as a response of NavigateClient. 532 // Sent via EmbeddedWorker as a response of NavigateClient.
534 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, 533 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse,
535 int /* request_id */, 534 int /* request_id */,
536 content::ServiceWorkerClientInfo /* client */) 535 content::ServiceWorkerClientInfo /* client */)
537 536
538 // Sent via EmbeddedWorker as an error response of NavigateClient. 537 // Sent via EmbeddedWorker as an error response of NavigateClient.
539 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, 538 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError,
540 int /* request_id */, 539 int /* request_id */,
541 GURL /* url */) 540 GURL /* url */)
OLDNEW
« no previous file with comments | « content/common/message_port_messages.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698