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

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

Issue 1149383004: [3/5 chromium] Shows the clients which are controlled by ServiceWorker in DevTools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 // Sends a 'message' event to a service worker (renderer->browser). 139 // Sends a 'message' event to a service worker (renderer->browser).
140 IPC_MESSAGE_CONTROL3( 140 IPC_MESSAGE_CONTROL3(
141 ServiceWorkerHostMsg_PostMessageToWorker, 141 ServiceWorkerHostMsg_PostMessageToWorker,
142 int /* handle_id */, 142 int /* handle_id */,
143 base::string16 /* message */, 143 base::string16 /* message */,
144 std::vector<content::TransferredMessagePort> /* sent_message_ports */) 144 std::vector<content::TransferredMessagePort> /* sent_message_ports */)
145 145
146 // Informs the browser of a new ServiceWorkerProvider in the child process, 146 // Informs the browser of a new ServiceWorkerProvider in the child process,
147 // |provider_id| is unique within its child process. 147 // |provider_id| is unique within its child process.
148 // |render_frame_id| identifies the frame associated with the provider, it will 148 // |render_frame_id| identifies the frame associated with the provider, it will
149 // it will be MSG_ROUTING_NONE if the context is a worker instead of a document. 149 // be MSG_ROUTING_NONE if the context is a worker instead of a document.
150 // |provider_type| identifies whether this provider is for ServiceWorker 150 // |shared_worker_route_id| identifies the SharedWorker associated with the
151 // controllees (documents and SharedWorkers) or for controllers 151 // provider, it will be MSG_ROUTING_NONE if the context is not SharedWorker.
152 // (ServiceWorkers). 152 // When the context is ServiceWorker, both |render_frame_id| and
153 // |shared_worker_route_id| are MSG_ROUTING_NONE.
153 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_ProviderCreated, 154 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_ProviderCreated,
154 int /* provider_id */, 155 int /* provider_id */,
155 int /* render_frame_id */, 156 int /* render_frame_id */,
156 content::ServiceWorkerProviderType /* provider_type */) 157 int /* shared_worker_route_id */)
157 158
158 // Informs the browser of a ServiceWorkerProvider being destroyed. 159 // Informs the browser of a ServiceWorkerProvider being destroyed.
159 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed, 160 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed,
160 int /* provider_id */) 161 int /* provider_id */)
161 162
162 // Increments and decrements the ServiceWorker object's reference 163 // Increments and decrements the ServiceWorker object's reference
163 // counting in the browser side. The ServiceWorker object is created 164 // counting in the browser side. The ServiceWorker object is created
164 // with ref-count==1 initially. 165 // with ref-count==1 initially.
165 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_IncrementServiceWorkerRefCount, 166 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_IncrementServiceWorkerRefCount,
166 int /* handle_id */) 167 int /* handle_id */)
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, 446 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse,
446 int /* request_id */, 447 int /* request_id */,
447 content::ServiceWorkerClientInfo /* client */) 448 content::ServiceWorkerClientInfo /* client */)
448 449
449 // Sent via EmbeddedWorker to transfer a stashed message port to the worker. 450 // Sent via EmbeddedWorker to transfer a stashed message port to the worker.
450 IPC_MESSAGE_CONTROL3( 451 IPC_MESSAGE_CONTROL3(
451 ServiceWorkerMsg_SendStashedMessagePorts, 452 ServiceWorkerMsg_SendStashedMessagePorts,
452 std::vector<content::TransferredMessagePort> /* stashed_message_ports */, 453 std::vector<content::TransferredMessagePort> /* stashed_message_ports */,
453 std::vector<int> /* new_routing_ids */, 454 std::vector<int> /* new_routing_ids */,
454 std::vector<base::string16> /* port_names */) 455 std::vector<base::string16> /* port_names */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698