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

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

Issue 1636483002: Update the PushEvent to have a nullable PushMessageData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review comments and include Created 4 years, 11 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 <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/navigator_connect_client.h" 17 #include "content/public/common/navigator_connect_client.h"
18 #include "content/public/common/platform_notification_data.h" 18 #include "content/public/common/platform_notification_data.h"
19 #include "content/public/common/push_event_payload.h"
19 #include "ipc/ipc_message_macros.h" 20 #include "ipc/ipc_message_macros.h"
20 #include "ipc/ipc_param_traits.h" 21 #include "ipc/ipc_param_traits.h"
21 #include "third_party/WebKit/public/platform/WebCircularGeofencingRegion.h" 22 #include "third_party/WebKit/public/platform/WebCircularGeofencingRegion.h"
22 #include "third_party/WebKit/public/platform/WebGeofencingEventType.h" 23 #include "third_party/WebKit/public/platform/WebGeofencingEventType.h"
23 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerError.h" 24 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerError.h"
24 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerEventResult.h" 25 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerEventResult.h"
25 #include "url/gurl.h" 26 #include "url/gurl.h"
26 27
27 #undef IPC_MESSAGE_EXPORT 28 #undef IPC_MESSAGE_EXPORT
28 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 29 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 127
127 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebGeofencingEventType, 128 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebGeofencingEventType,
128 blink::WebGeofencingEventTypeLast) 129 blink::WebGeofencingEventTypeLast)
129 130
130 IPC_STRUCT_TRAITS_BEGIN(content::NavigatorConnectClient) 131 IPC_STRUCT_TRAITS_BEGIN(content::NavigatorConnectClient)
131 IPC_STRUCT_TRAITS_MEMBER(target_url) 132 IPC_STRUCT_TRAITS_MEMBER(target_url)
132 IPC_STRUCT_TRAITS_MEMBER(origin) 133 IPC_STRUCT_TRAITS_MEMBER(origin)
133 IPC_STRUCT_TRAITS_MEMBER(message_port_id) 134 IPC_STRUCT_TRAITS_MEMBER(message_port_id)
134 IPC_STRUCT_TRAITS_END() 135 IPC_STRUCT_TRAITS_END()
135 136
137 IPC_STRUCT_TRAITS_BEGIN(content::PushEventPayload)
138 IPC_STRUCT_TRAITS_MEMBER(data)
139 IPC_STRUCT_TRAITS_MEMBER(is_null)
140 IPC_STRUCT_TRAITS_END()
141
136 //--------------------------------------------------------------------------- 142 //---------------------------------------------------------------------------
137 // Messages sent from the child process to the browser. 143 // Messages sent from the child process to the browser.
138 144
139 IPC_MESSAGE_CONTROL5(ServiceWorkerHostMsg_RegisterServiceWorker, 145 IPC_MESSAGE_CONTROL5(ServiceWorkerHostMsg_RegisterServiceWorker,
140 int /* thread_id */, 146 int /* thread_id */,
141 int /* request_id */, 147 int /* request_id */,
142 int /* provider_id */, 148 int /* provider_id */,
143 GURL /* scope */, 149 GURL /* scope */,
144 GURL /* script_url */) 150 GURL /* script_url */)
145 151
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FetchEvent, 444 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FetchEvent,
439 int /* request_id */, 445 int /* request_id */,
440 content::ServiceWorkerFetchRequest) 446 content::ServiceWorkerFetchRequest)
441 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_NotificationClickEvent, 447 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_NotificationClickEvent,
442 int /* request_id */, 448 int /* request_id */,
443 int64_t /* persistent_notification_id */, 449 int64_t /* persistent_notification_id */,
444 content::PlatformNotificationData /* notification_data */, 450 content::PlatformNotificationData /* notification_data */,
445 int /* action_index */) 451 int /* action_index */)
446 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_PushEvent, 452 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_PushEvent,
447 int /* request_id */, 453 int /* request_id */,
448 std::string /* data */) 454 content::PushEventPayload /* data */)
449 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_GeofencingEvent, 455 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_GeofencingEvent,
450 int /* request_id */, 456 int /* request_id */,
451 blink::WebGeofencingEventType /* event_type */, 457 blink::WebGeofencingEventType /* event_type */,
452 std::string /* region_id */, 458 std::string /* region_id */,
453 blink::WebCircularGeofencingRegion /* region */) 459 blink::WebCircularGeofencingRegion /* region */)
454 IPC_MESSAGE_CONTROL3( 460 IPC_MESSAGE_CONTROL3(
455 ServiceWorkerMsg_MessageToWorker, 461 ServiceWorkerMsg_MessageToWorker,
456 base::string16 /* message */, 462 base::string16 /* message */,
457 std::vector<content::TransferredMessagePort> /* sent_message_ports */, 463 std::vector<content::TransferredMessagePort> /* sent_message_ports */,
458 std::vector<int> /* new_routing_ids */) 464 std::vector<int> /* new_routing_ids */)
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 502
497 // Sent via EmbeddedWorker as a response of NavigateClient. 503 // Sent via EmbeddedWorker as a response of NavigateClient.
498 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, 504 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse,
499 int /* request_id */, 505 int /* request_id */,
500 content::ServiceWorkerClientInfo /* client */) 506 content::ServiceWorkerClientInfo /* client */)
501 507
502 // Sent via EmbeddedWorker as an error response of NavigateClient. 508 // Sent via EmbeddedWorker as an error response of NavigateClient.
503 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, 509 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError,
504 int /* request_id */, 510 int /* request_id */,
505 GURL /* url */) 511 GURL /* url */)
OLDNEW
« no previous file with comments | « content/browser/service_worker/embedded_worker_test_helper.cc ('k') | content/public/browser/browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698