| 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 8bdb5ca29cb819f89b7f62f3240cc772931f7dfc..6684a4c5ad25af3bac2354c93137b331059c1e21 100644
|
| --- a/content/common/service_worker/service_worker_messages.h
|
| +++ b/content/common/service_worker/service_worker_messages.h
|
| @@ -202,10 +202,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,
|
|
|