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

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

Issue 2009453002: service worker: Don't control a subframe of an insecure context (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: selfreview Created 4 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 <stdint.h> 7 #include <stdint.h>
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 url::Origin /* source_origin */, 195 url::Origin /* source_origin */,
196 std::vector<int> /* sent_message_ports */) 196 std::vector<int> /* sent_message_ports */)
197 197
198 // Informs the browser of a new ServiceWorkerProvider in the child process, 198 // Informs the browser of a new ServiceWorkerProvider in the child process,
199 // |provider_id| is unique within its child process. When this provider is 199 // |provider_id| is unique within its child process. When this provider is
200 // created for a document, |route_id| is the frame ID of it. When this provider 200 // created for a document, |route_id| is the frame ID of it. When this provider
201 // is created for a Shared Worker, |route_id| is the Shared Worker route ID. 201 // is created for a Shared Worker, |route_id| is the Shared Worker route ID.
202 // When this provider is created for a Service Worker, |route_id| is 202 // When this provider is created for a Service Worker, |route_id| is
203 // MSG_ROUTING_NONE. |provider_type| identifies whether this provider is for 203 // MSG_ROUTING_NONE. |provider_type| identifies whether this provider is for
204 // Service Worker controllees (documents and Shared Workers) or for controllers 204 // Service Worker controllees (documents and Shared Workers) or for controllers
205 // (Service Workers). 205 // (Service Workers).
alexmos 2016/06/02 23:54:47 Update this comment to describe |is_parent_frame_s
falken 2016/06/03 08:22:05 Done.
206 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_ProviderCreated, 206 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_ProviderCreated,
207 int /* provider_id */, 207 int /* provider_id */,
208 int /* route_id */, 208 int /* route_id */,
209 content::ServiceWorkerProviderType /* provider_type */) 209 content::ServiceWorkerProviderType /* provider_type */,
210 bool /* is_parent_frame_secure */)
210 211
211 // Informs the browser of a ServiceWorkerProvider being destroyed. 212 // Informs the browser of a ServiceWorkerProvider being destroyed.
212 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed, 213 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed,
213 int /* provider_id */) 214 int /* provider_id */)
214 215
215 // Increments and decrements the ServiceWorker object's reference 216 // Increments and decrements the ServiceWorker object's reference
216 // counting in the browser side. The ServiceWorker object is created 217 // counting in the browser side. The ServiceWorker object is created
217 // with ref-count==1 initially. 218 // with ref-count==1 initially.
218 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_IncrementServiceWorkerRefCount, 219 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_IncrementServiceWorkerRefCount,
219 int /* handle_id */) 220 int /* handle_id */)
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 522
522 // Sent via EmbeddedWorker as a response of NavigateClient. 523 // Sent via EmbeddedWorker as a response of NavigateClient.
523 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, 524 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse,
524 int /* request_id */, 525 int /* request_id */,
525 content::ServiceWorkerClientInfo /* client */) 526 content::ServiceWorkerClientInfo /* client */)
526 527
527 // Sent via EmbeddedWorker as an error response of NavigateClient. 528 // Sent via EmbeddedWorker as an error response of NavigateClient.
528 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, 529 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError,
529 int /* request_id */, 530 int /* request_id */,
530 GURL /* url */) 531 GURL /* url */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698