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

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

Issue 861373002: Refactor navigator.connect code to make it more flexible. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo Created 5 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
« no previous file with comments | « content/common/navigator_connect_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 <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/navigator_connect_types.h"
12 #include "content/common/service_worker/service_worker_status_code.h" 11 #include "content/common/service_worker/service_worker_status_code.h"
13 #include "content/common/service_worker/service_worker_types.h" 12 #include "content/common/service_worker/service_worker_types.h"
13 #include "content/public/common/navigator_connect_client.h"
14 #include "content/public/common/platform_notification_data.h" 14 #include "content/public/common/platform_notification_data.h"
15 #include "ipc/ipc_message_macros.h" 15 #include "ipc/ipc_message_macros.h"
16 #include "ipc/ipc_param_traits.h" 16 #include "ipc/ipc_param_traits.h"
17 #include "third_party/WebKit/public/platform/WebCircularGeofencingRegion.h" 17 #include "third_party/WebKit/public/platform/WebCircularGeofencingRegion.h"
18 #include "third_party/WebKit/public/platform/WebGeofencingEventType.h" 18 #include "third_party/WebKit/public/platform/WebGeofencingEventType.h"
19 #include "third_party/WebKit/public/platform/WebServiceWorkerCacheError.h" 19 #include "third_party/WebKit/public/platform/WebServiceWorkerCacheError.h"
20 #include "third_party/WebKit/public/platform/WebServiceWorkerError.h" 20 #include "third_party/WebKit/public/platform/WebServiceWorkerError.h"
21 #include "third_party/WebKit/public/platform/WebServiceWorkerEventResult.h" 21 #include "third_party/WebKit/public/platform/WebServiceWorkerEventResult.h"
22 #include "url/gurl.h" 22 #include "url/gurl.h"
23 23
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_PushEvent, 423 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_PushEvent,
424 int /* request_id */, 424 int /* request_id */,
425 std::string /* data */) 425 std::string /* data */)
426 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_GeofencingEvent, 426 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_GeofencingEvent,
427 int /* request_id */, 427 int /* request_id */,
428 blink::WebGeofencingEventType /* event_type */, 428 blink::WebGeofencingEventType /* event_type */,
429 std::string /* region_id */, 429 std::string /* region_id */,
430 blink::WebCircularGeofencingRegion /* region */) 430 blink::WebCircularGeofencingRegion /* region */)
431 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CrossOriginConnectEvent, 431 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CrossOriginConnectEvent,
432 int /* request_id */, 432 int /* request_id */,
433 content::CrossOriginServiceWorkerClient /* client */) 433 content::NavigatorConnectClient /* client */)
434 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_MessageToWorker, 434 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_MessageToWorker,
435 base::string16 /* message */, 435 base::string16 /* message */,
436 std::vector<int> /* sent_message_port_ids */, 436 std::vector<int> /* sent_message_port_ids */,
437 std::vector<int> /* new_routing_ids */) 437 std::vector<int> /* new_routing_ids */)
438 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_CrossOriginMessageToWorker, 438 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_CrossOriginMessageToWorker,
439 content::CrossOriginServiceWorkerClient /* client */, 439 content::NavigatorConnectClient /* client */,
440 base::string16 /* message */, 440 base::string16 /* message */,
441 std::vector<int> /* sent_message_port_ids */, 441 std::vector<int> /* sent_message_port_ids */,
442 std::vector<int> /* new_routing_ids */) 442 std::vector<int> /* new_routing_ids */)
443 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidSkipWaiting, 443 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidSkipWaiting,
444 int /* request_id */) 444 int /* request_id */)
445 445
446 // Sent via EmbeddedWorker as a response of GetClientDocuments. 446 // Sent via EmbeddedWorker as a response of GetClientDocuments.
447 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments, 447 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments,
448 int /* request_id */, 448 int /* request_id */,
449 std::vector<content::ServiceWorkerClientInfo>) 449 std::vector<content::ServiceWorkerClientInfo>)
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 blink::WebServiceWorkerCacheError) 505 blink::WebServiceWorkerCacheError)
506 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, 506 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError,
507 int /* request_id */, 507 int /* request_id */,
508 blink::WebServiceWorkerCacheError) 508 blink::WebServiceWorkerCacheError)
509 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, 509 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError,
510 int /* request_id */, 510 int /* request_id */,
511 blink::WebServiceWorkerCacheError) 511 blink::WebServiceWorkerCacheError)
512 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, 512 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError,
513 int /* request_id */, 513 int /* request_id */,
514 blink::WebServiceWorkerCacheError) 514 blink::WebServiceWorkerCacheError)
OLDNEW
« no previous file with comments | « content/common/navigator_connect_types.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698