Index: content/common/service_worker/service_worker_messages.h |
diff --git a/content/common/service_worker/service_worker_messages.h b/content/common/service_worker/service_worker_messages.h |
index 05f22dfb46b64d799e5f77e0d9c32798ce9e4b7b..412c0fc02fc48c98de5f25c487f200569629624f 100644 |
--- a/content/common/service_worker/service_worker_messages.h |
+++ b/content/common/service_worker/service_worker_messages.h |
@@ -203,10 +203,21 @@ IPC_MESSAGE_CONTROL5( |
// MSG_ROUTING_NONE. |provider_type| identifies whether this provider is for |
// Service Worker controllees (documents and Shared Workers) or for controllers |
// (Service Workers). |
-IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_ProviderCreated, |
+// |
+// |is_parent_frame_secure| is false if the provider is created for a |
+// document whose parent frame is not secure from the point of view of the |
+// document; that is, blink::WebFrame::canHaveSecureChild() returns false. |
+// This doesn't mean the document is necessarily an insecure context, |
+// because the document may have a URL whose scheme is granted an exception |
+// that allows bypassing the ancestor secure context check. See the |
+// comment in blink::Document::isSecureContextImpl for more details. |
+// If the provider is not created for a document, or the document does not have |
+// a parent frame, |is_parent_frame_secure| is true. |
+IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_ProviderCreated, |
int /* provider_id */, |
int /* route_id */, |
- content::ServiceWorkerProviderType /* provider_type */) |
+ content::ServiceWorkerProviderType /* provider_type */, |
+ bool /* is_parent_frame_secure */) |
// Informs the browser of a ServiceWorkerProvider being destroyed. |
IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed, |