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

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

Issue 843583005: [ServiceWorker] Implement WebServiceWorkerContextClient::openWindow(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@content_browser_client_openurl
Patch Set: rebase and review comments 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"
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 // ServiceWorker. 216 // ServiceWorker.
217 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GetClientDocuments, 217 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GetClientDocuments,
218 int /* request_id */) 218 int /* request_id */)
219 219
220 // Sends a 'message' event to a client document (renderer->browser). 220 // Sends a 'message' event to a client document (renderer->browser).
221 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_PostMessageToDocument, 221 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_PostMessageToDocument,
222 int /* client_id */, 222 int /* client_id */,
223 base::string16 /* message */, 223 base::string16 /* message */,
224 std::vector<int> /* sent_message_port_ids */) 224 std::vector<int> /* sent_message_port_ids */)
225 225
226 // Ask the browser to open a tab/window (renderer->browser).
227 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_OpenWindow,
228 int /* request_id */,
229 GURL /* url */)
230
226 // Ask the browser to focus a client (renderer->browser). 231 // Ask the browser to focus a client (renderer->browser).
227 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_FocusClient, 232 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_FocusClient,
228 int /* request_id */, 233 int /* request_id */,
229 int /* client_id */) 234 int /* client_id */)
230 235
231 // Asks the browser to force this worker to become activated. 236 // Asks the browser to force this worker to become activated.
232 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_SkipWaiting, 237 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_SkipWaiting,
233 int /* request_id */) 238 int /* request_id */)
234 239
235 // CacheStorage operations in the browser. 240 // CacheStorage operations in the browser.
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 std::vector<int> /* sent_message_port_ids */, 431 std::vector<int> /* sent_message_port_ids */,
427 std::vector<int> /* new_routing_ids */) 432 std::vector<int> /* new_routing_ids */)
428 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidSkipWaiting, 433 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidSkipWaiting,
429 int /* request_id */) 434 int /* request_id */)
430 435
431 // Sent via EmbeddedWorker as a response of GetClientDocuments. 436 // Sent via EmbeddedWorker as a response of GetClientDocuments.
432 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments, 437 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments,
433 int /* request_id */, 438 int /* request_id */,
434 std::vector<content::ServiceWorkerClientInfo>) 439 std::vector<content::ServiceWorkerClientInfo>)
435 440
441 // Sent via EmbeddedWorker as a response of OpenWindow.
442 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowResponse,
443 int /* request_id */,
444 content::ServiceWorkerClientInfo /* client */)
445
446 // Sent via EmbeddedWorker as an error response of OpenWindow.
447 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_OpenWindowError,
448 int /* request_id */ )
449
436 // Sent via EmbeddedWorker as a response of FocusClient. 450 // Sent via EmbeddedWorker as a response of FocusClient.
437 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, 451 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse,
438 int /* request_id */, 452 int /* request_id */,
439 bool /* result */) 453 bool /* result */)
440 454
441 // Sent via EmbeddedWorker at successful completion of CacheStorage operations. 455 // Sent via EmbeddedWorker at successful completion of CacheStorage operations.
442 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_CacheStorageHasSuccess, 456 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_CacheStorageHasSuccess,
443 int /* request_id */) 457 int /* request_id */)
444 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageOpenSuccess, 458 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageOpenSuccess,
445 int /* request_id */, 459 int /* request_id */,
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 blink::WebServiceWorkerCacheError) 504 blink::WebServiceWorkerCacheError)
491 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, 505 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError,
492 int /* request_id */, 506 int /* request_id */,
493 blink::WebServiceWorkerCacheError) 507 blink::WebServiceWorkerCacheError)
494 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, 508 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError,
495 int /* request_id */, 509 int /* request_id */,
496 blink::WebServiceWorkerCacheError) 510 blink::WebServiceWorkerCacheError)
497 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, 511 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError,
498 int /* request_id */, 512 int /* request_id */,
499 blink::WebServiceWorkerCacheError) 513 blink::WebServiceWorkerCacheError)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698