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

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

Issue 893783002: Revert of Gather the ServiceWorker client information in the browser process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rfh_getvisibilitystate
Patch Set: Created 5 years, 10 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 <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_client_info.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"
14 #include "content/public/common/navigator_connect_client.h" 13 #include "content/public/common/navigator_connect_client.h"
15 #include "content/public/common/platform_notification_data.h" 14 #include "content/public/common/platform_notification_data.h"
16 #include "ipc/ipc_message_macros.h" 15 #include "ipc/ipc_message_macros.h"
17 #include "ipc/ipc_param_traits.h" 16 #include "ipc/ipc_param_traits.h"
18 #include "third_party/WebKit/public/platform/WebCircularGeofencingRegion.h" 17 #include "third_party/WebKit/public/platform/WebCircularGeofencingRegion.h"
19 #include "third_party/WebKit/public/platform/WebGeofencingEventType.h" 18 #include "third_party/WebKit/public/platform/WebGeofencingEventType.h"
20 #include "third_party/WebKit/public/platform/WebServiceWorkerCacheError.h" 19 #include "third_party/WebKit/public/platform/WebServiceWorkerCacheError.h"
21 #include "third_party/WebKit/public/platform/WebServiceWorkerError.h" 20 #include "third_party/WebKit/public/platform/WebServiceWorkerError.h"
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_PostMessageToDocument, 220 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_PostMessageToDocument,
222 int /* client_id */, 221 int /* client_id */,
223 base::string16 /* message */, 222 base::string16 /* message */,
224 std::vector<int> /* sent_message_port_ids */) 223 std::vector<int> /* sent_message_port_ids */)
225 224
226 // Ask the browser to focus a client (renderer->browser). 225 // Ask the browser to focus a client (renderer->browser).
227 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_FocusClient, 226 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_FocusClient,
228 int /* request_id */, 227 int /* request_id */,
229 int /* client_id */) 228 int /* client_id */)
230 229
230 // Response to ServiceWorkerMsg_GetClientInfo.
231 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClientInfoSuccess,
232 int /* request_id */,
233 content::ServiceWorkerClientInfo)
234
235 // Response to ServiceWorkerMsg_GetClientInfo.
236 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GetClientInfoError,
237 int /* request_id */)
238
231 // Asks the browser to force this worker to become activated. 239 // Asks the browser to force this worker to become activated.
232 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_SkipWaiting, 240 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_SkipWaiting,
233 int /* request_id */) 241 int /* request_id */)
234 242
235 // CacheStorage operations in the browser. 243 // CacheStorage operations in the browser.
236 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageHas, 244 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageHas,
237 int /* request_id */, 245 int /* request_id */,
238 base::string16 /* fetch_store_name */) 246 base::string16 /* fetch_store_name */)
239 247
240 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageOpen, 248 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageOpen,
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 bool /* should_notify_controllerchange */) 391 bool /* should_notify_controllerchange */)
384 392
385 // Sends a 'message' event to a client document (browser->renderer). 393 // Sends a 'message' event to a client document (browser->renderer).
386 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_MessageToDocument, 394 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_MessageToDocument,
387 int /* thread_id */, 395 int /* thread_id */,
388 int /* provider_id */, 396 int /* provider_id */,
389 base::string16 /* message */, 397 base::string16 /* message */,
390 std::vector<int> /* sent_message_port_ids */, 398 std::vector<int> /* sent_message_port_ids */,
391 std::vector<int> /* new_routing_ids */) 399 std::vector<int> /* new_routing_ids */)
392 400
401 // Sent to client documents to request document properties.
402 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_GetClientInfo,
403 int /* thread_id */,
404 int /* embedded_worker_id */,
405 int /* request_id */,
406 int /* provider_id */)
407
393 // Sent via EmbeddedWorker to dispatch events. 408 // Sent via EmbeddedWorker to dispatch events.
394 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_InstallEvent, 409 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_InstallEvent,
395 int /* request_id */, 410 int /* request_id */,
396 int /* active_version_id */) 411 int /* active_version_id */)
397 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent, 412 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent,
398 int /* request_id */) 413 int /* request_id */)
399 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FetchEvent, 414 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FetchEvent,
400 int /* request_id */, 415 int /* request_id */,
401 content::ServiceWorkerFetchRequest) 416 content::ServiceWorkerFetchRequest)
402 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_SyncEvent, 417 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_SyncEvent,
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 blink::WebServiceWorkerCacheError) 505 blink::WebServiceWorkerCacheError)
491 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, 506 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError,
492 int /* request_id */, 507 int /* request_id */,
493 blink::WebServiceWorkerCacheError) 508 blink::WebServiceWorkerCacheError)
494 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, 509 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError,
495 int /* request_id */, 510 int /* request_id */,
496 blink::WebServiceWorkerCacheError) 511 blink::WebServiceWorkerCacheError)
497 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, 512 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError,
498 int /* request_id */, 513 int /* request_id */,
499 blink::WebServiceWorkerCacheError) 514 blink::WebServiceWorkerCacheError)
OLDNEW
« no previous file with comments | « content/common/service_worker/service_worker_client_info.cc ('k') | content/common/service_worker/service_worker_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698