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

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

Issue 629393002: Chromium side of geofencing event dispatching. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@geofencing_serviceworker
Patch Set: nit Created 6 years, 1 month 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/DEPS ('k') | content/renderer/service_worker/service_worker_script_context.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 <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
11 #include "content/common/service_worker/service_worker_status_code.h" 11 #include "content/common/service_worker/service_worker_status_code.h"
12 #include "content/common/service_worker/service_worker_types.h" 12 #include "content/common/service_worker/service_worker_types.h"
13 #include "ipc/ipc_message_macros.h" 13 #include "ipc/ipc_message_macros.h"
14 #include "ipc/ipc_param_traits.h" 14 #include "ipc/ipc_param_traits.h"
15 #include "third_party/WebKit/public/platform/WebCircularGeofencingRegion.h"
16 #include "third_party/WebKit/public/platform/WebGeofencingEventType.h"
15 #include "third_party/WebKit/public/platform/WebServiceWorkerCacheError.h" 17 #include "third_party/WebKit/public/platform/WebServiceWorkerCacheError.h"
16 #include "third_party/WebKit/public/platform/WebServiceWorkerError.h" 18 #include "third_party/WebKit/public/platform/WebServiceWorkerError.h"
17 #include "third_party/WebKit/public/platform/WebServiceWorkerEventResult.h" 19 #include "third_party/WebKit/public/platform/WebServiceWorkerEventResult.h"
18 #include "url/gurl.h" 20 #include "url/gurl.h"
19 21
20 #undef IPC_MESSAGE_EXPORT 22 #undef IPC_MESSAGE_EXPORT
21 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 23 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
22 24
23 #define IPC_MESSAGE_START ServiceWorkerMsgStart 25 #define IPC_MESSAGE_START ServiceWorkerMsgStart
24 26
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerVersionAttributes) 96 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerVersionAttributes)
95 IPC_STRUCT_TRAITS_MEMBER(installing) 97 IPC_STRUCT_TRAITS_MEMBER(installing)
96 IPC_STRUCT_TRAITS_MEMBER(waiting) 98 IPC_STRUCT_TRAITS_MEMBER(waiting)
97 IPC_STRUCT_TRAITS_MEMBER(active) 99 IPC_STRUCT_TRAITS_MEMBER(active)
98 IPC_STRUCT_TRAITS_END() 100 IPC_STRUCT_TRAITS_END()
99 101
100 IPC_ENUM_TRAITS_MAX_VALUE( 102 IPC_ENUM_TRAITS_MAX_VALUE(
101 blink::WebServiceWorkerCacheError, 103 blink::WebServiceWorkerCacheError,
102 blink::WebServiceWorkerCacheErrorLast) 104 blink::WebServiceWorkerCacheErrorLast)
103 105
106 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebGeofencingEventType,
107 blink::WebGeofencingEventTypeLast)
108
104 //--------------------------------------------------------------------------- 109 //---------------------------------------------------------------------------
105 // Messages sent from the child process to the browser. 110 // Messages sent from the child process to the browser.
106 111
107 IPC_MESSAGE_CONTROL5(ServiceWorkerHostMsg_RegisterServiceWorker, 112 IPC_MESSAGE_CONTROL5(ServiceWorkerHostMsg_RegisterServiceWorker,
108 int /* thread_id */, 113 int /* thread_id */,
109 int /* request_id */, 114 int /* request_id */,
110 int /* provider_id */, 115 int /* provider_id */,
111 GURL /* scope */, 116 GURL /* scope */,
112 GURL /* script_url */) 117 GURL /* script_url */)
113 118
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 int /* request_id */, 175 int /* request_id */,
171 blink::WebServiceWorkerEventResult) 176 blink::WebServiceWorkerEventResult)
172 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_FetchEventFinished, 177 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_FetchEventFinished,
173 int /* request_id */, 178 int /* request_id */,
174 content::ServiceWorkerFetchEventResult, 179 content::ServiceWorkerFetchEventResult,
175 content::ServiceWorkerResponse) 180 content::ServiceWorkerResponse)
176 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_SyncEventFinished, 181 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_SyncEventFinished,
177 int /* request_id */) 182 int /* request_id */)
178 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_PushEventFinished, 183 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_PushEventFinished,
179 int /* request_id */) 184 int /* request_id */)
185 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GeofencingEventFinished,
186 int /* request_id */)
180 187
181 // Asks the browser to retrieve documents controlled by the sender 188 // Asks the browser to retrieve documents controlled by the sender
182 // ServiceWorker. 189 // ServiceWorker.
183 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GetClientDocuments, 190 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GetClientDocuments,
184 int /* request_id */) 191 int /* request_id */)
185 192
186 // Sends a 'message' event to a client document (renderer->browser). 193 // Sends a 'message' event to a client document (renderer->browser).
187 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_PostMessageToDocument, 194 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_PostMessageToDocument,
188 int /* client_id */, 195 int /* client_id */,
189 base::string16 /* message */, 196 base::string16 /* message */,
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent, 347 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent,
341 int /* request_id */) 348 int /* request_id */)
342 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FetchEvent, 349 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FetchEvent,
343 int /* request_id */, 350 int /* request_id */,
344 content::ServiceWorkerFetchRequest) 351 content::ServiceWorkerFetchRequest)
345 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_SyncEvent, 352 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_SyncEvent,
346 int /* request_id */) 353 int /* request_id */)
347 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_PushEvent, 354 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_PushEvent,
348 int /* request_id */, 355 int /* request_id */,
349 std::string /* data */) 356 std::string /* data */)
357 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_GeofencingEvent,
358 int /* request_id */,
359 blink::WebGeofencingEventType /* event_type */,
360 std::string /* region_id */,
361 blink::WebCircularGeofencingRegion /* region */)
350 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_MessageToWorker, 362 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_MessageToWorker,
351 base::string16 /* message */, 363 base::string16 /* message */,
352 std::vector<int> /* sent_message_port_ids */, 364 std::vector<int> /* sent_message_port_ids */,
353 std::vector<int> /* new_routing_ids */) 365 std::vector<int> /* new_routing_ids */)
354 366
355 // Sent via EmbeddedWorker as a response of GetClientDocuments. 367 // Sent via EmbeddedWorker as a response of GetClientDocuments.
356 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments, 368 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments,
357 int /* request_id */, 369 int /* request_id */,
358 std::vector<int> /* client_ids */) 370 std::vector<int> /* client_ids */)
359 371
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 blink::WebServiceWorkerCacheError) 415 blink::WebServiceWorkerCacheError)
404 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, 416 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError,
405 int /* request_id */, 417 int /* request_id */,
406 blink::WebServiceWorkerCacheError) 418 blink::WebServiceWorkerCacheError)
407 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, 419 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError,
408 int /* request_id */, 420 int /* request_id */,
409 blink::WebServiceWorkerCacheError) 421 blink::WebServiceWorkerCacheError)
410 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, 422 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError,
411 int /* request_id */, 423 int /* request_id */,
412 blink::WebServiceWorkerCacheError) 424 blink::WebServiceWorkerCacheError)
OLDNEW
« no previous file with comments | « content/common/DEPS ('k') | content/renderer/service_worker/service_worker_script_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698