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

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

Issue 1972733002: Delete geofencing implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mark histogram suffix as obsolete 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/geofencing_types.cc ('k') | content/content_browser.gypi » ('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" 16 #include "content/public/common/message_port_types.h"
17 #include "content/public/common/platform_notification_data.h" 17 #include "content/public/common/platform_notification_data.h"
18 #include "content/public/common/push_event_payload.h" 18 #include "content/public/common/push_event_payload.h"
19 #include "ipc/ipc_message_macros.h" 19 #include "ipc/ipc_message_macros.h"
20 #include "ipc/ipc_param_traits.h" 20 #include "ipc/ipc_param_traits.h"
21 #include "third_party/WebKit/public/platform/WebCircularGeofencingRegion.h"
22 #include "third_party/WebKit/public/platform/WebGeofencingEventType.h"
23 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerError.h" 21 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerError.h"
24 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerEventResult.h" 22 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerEventResult.h"
25 #include "url/gurl.h" 23 #include "url/gurl.h"
26 #include "url/origin.h" 24 #include "url/origin.h"
27 25
28 #undef IPC_MESSAGE_EXPORT 26 #undef IPC_MESSAGE_EXPORT
29 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 27 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
30 28
31 #define IPC_MESSAGE_START ServiceWorkerMsgStart 29 #define IPC_MESSAGE_START ServiceWorkerMsgStart
32 30
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 136
139 IPC_STRUCT_BEGIN(ServiceWorkerMsg_MessageToDocument_Params) 137 IPC_STRUCT_BEGIN(ServiceWorkerMsg_MessageToDocument_Params)
140 IPC_STRUCT_MEMBER(int, thread_id) 138 IPC_STRUCT_MEMBER(int, thread_id)
141 IPC_STRUCT_MEMBER(int, provider_id) 139 IPC_STRUCT_MEMBER(int, provider_id)
142 IPC_STRUCT_MEMBER(content::ServiceWorkerObjectInfo, service_worker_info) 140 IPC_STRUCT_MEMBER(content::ServiceWorkerObjectInfo, service_worker_info)
143 IPC_STRUCT_MEMBER(base::string16, message) 141 IPC_STRUCT_MEMBER(base::string16, message)
144 IPC_STRUCT_MEMBER(std::vector<content::TransferredMessagePort>, message_ports) 142 IPC_STRUCT_MEMBER(std::vector<content::TransferredMessagePort>, message_ports)
145 IPC_STRUCT_MEMBER(std::vector<int>, new_routing_ids) 143 IPC_STRUCT_MEMBER(std::vector<int>, new_routing_ids)
146 IPC_STRUCT_END() 144 IPC_STRUCT_END()
147 145
148 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebGeofencingEventType,
149 blink::WebGeofencingEventTypeLast)
150
151 IPC_STRUCT_TRAITS_BEGIN(content::PushEventPayload) 146 IPC_STRUCT_TRAITS_BEGIN(content::PushEventPayload)
152 IPC_STRUCT_TRAITS_MEMBER(data) 147 IPC_STRUCT_TRAITS_MEMBER(data)
153 IPC_STRUCT_TRAITS_MEMBER(is_null) 148 IPC_STRUCT_TRAITS_MEMBER(is_null)
154 IPC_STRUCT_TRAITS_END() 149 IPC_STRUCT_TRAITS_END()
155 150
156 //--------------------------------------------------------------------------- 151 //---------------------------------------------------------------------------
157 // Messages sent from the child process to the browser. 152 // Messages sent from the child process to the browser.
158 153
159 IPC_MESSAGE_CONTROL5(ServiceWorkerHostMsg_RegisterServiceWorker, 154 IPC_MESSAGE_CONTROL5(ServiceWorkerHostMsg_RegisterServiceWorker,
160 int /* thread_id */, 155 int /* thread_id */,
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 content::ServiceWorkerResponse) 257 content::ServiceWorkerResponse)
263 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_NotificationClickEventFinished, 258 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_NotificationClickEventFinished,
264 int /* request_id */, 259 int /* request_id */,
265 blink::WebServiceWorkerEventResult) 260 blink::WebServiceWorkerEventResult)
266 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_NotificationCloseEventFinished, 261 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_NotificationCloseEventFinished,
267 int /* request_id */, 262 int /* request_id */,
268 blink::WebServiceWorkerEventResult) 263 blink::WebServiceWorkerEventResult)
269 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_PushEventFinished, 264 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_PushEventFinished,
270 int /* request_id */, 265 int /* request_id */,
271 blink::WebServiceWorkerEventResult) 266 blink::WebServiceWorkerEventResult)
272 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GeofencingEventFinished,
273 int /* request_id */,
274 blink::WebServiceWorkerEventResult)
275 267
276 // Responds to a Ping from the browser. 268 // Responds to a Ping from the browser.
277 // Routed to the target ServiceWorkerVersion. 269 // Routed to the target ServiceWorkerVersion.
278 IPC_MESSAGE_ROUTED0(ServiceWorkerHostMsg_Pong) 270 IPC_MESSAGE_ROUTED0(ServiceWorkerHostMsg_Pong)
279 271
280 // Asks the browser to retrieve client of the sender ServiceWorker. 272 // Asks the browser to retrieve client of the sender ServiceWorker.
281 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClient, 273 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClient,
282 int /* request_id */, 274 int /* request_id */,
283 std::string /* client_uuid */) 275 std::string /* client_uuid */)
284 276
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 int64_t /* persistent_notification_id */, 472 int64_t /* persistent_notification_id */,
481 content::PlatformNotificationData /* notification_data */, 473 content::PlatformNotificationData /* notification_data */,
482 int /* action_index */) 474 int /* action_index */)
483 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_NotificationCloseEvent, 475 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_NotificationCloseEvent,
484 int /* request_id */, 476 int /* request_id */,
485 int64_t /* persistent_notification_id */, 477 int64_t /* persistent_notification_id */,
486 content::PlatformNotificationData /* notification_data */) 478 content::PlatformNotificationData /* notification_data */)
487 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_PushEvent, 479 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_PushEvent,
488 int /* request_id */, 480 int /* request_id */,
489 content::PushEventPayload /* data */) 481 content::PushEventPayload /* data */)
490 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_GeofencingEvent,
491 int /* request_id */,
492 blink::WebGeofencingEventType /* event_type */,
493 std::string /* region_id */,
494 blink::WebCircularGeofencingRegion /* region */)
495 482
496 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidSkipWaiting, 483 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidSkipWaiting,
497 int /* request_id */) 484 int /* request_id */)
498 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidClaimClients, 485 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidClaimClients,
499 int /* request_id */) 486 int /* request_id */)
500 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ClaimClientsError, 487 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ClaimClientsError,
501 int /* request_id */, 488 int /* request_id */,
502 blink::WebServiceWorkerError::ErrorType /* code */, 489 blink::WebServiceWorkerError::ErrorType /* code */,
503 base::string16 /* message */) 490 base::string16 /* message */)
504 491
(...skipping 27 matching lines...) Expand all
532 519
533 // Sent via EmbeddedWorker as a response of NavigateClient. 520 // Sent via EmbeddedWorker as a response of NavigateClient.
534 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, 521 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse,
535 int /* request_id */, 522 int /* request_id */,
536 content::ServiceWorkerClientInfo /* client */) 523 content::ServiceWorkerClientInfo /* client */)
537 524
538 // Sent via EmbeddedWorker as an error response of NavigateClient. 525 // Sent via EmbeddedWorker as an error response of NavigateClient.
539 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, 526 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError,
540 int /* request_id */, 527 int /* request_id */,
541 GURL /* url */) 528 GURL /* url */)
OLDNEW
« no previous file with comments | « content/common/geofencing_types.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698