OLD | NEW |
---|---|
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 #ifndef CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_INFO_H_ | 5 #ifndef CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_INFO_H_ |
6 #define CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_INFO_H_ | 6 #define CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_INFO_H_ |
7 | 7 |
8 #include "content/common/service_worker/service_worker_provider_interfaces.mojom .h" | |
8 #include "content/common/service_worker/service_worker_types.h" | 9 #include "content/common/service_worker/service_worker_types.h" |
9 | 10 |
10 namespace content { | 11 namespace content { |
11 | 12 |
12 struct CONTENT_EXPORT ServiceWorkerProviderHostInfo { | 13 struct CONTENT_EXPORT ServiceWorkerProviderHostInfo { |
13 ServiceWorkerProviderHostInfo(); | 14 ServiceWorkerProviderHostInfo(); |
14 ServiceWorkerProviderHostInfo(ServiceWorkerProviderHostInfo&& other); | 15 ServiceWorkerProviderHostInfo(ServiceWorkerProviderHostInfo&& other); |
15 ServiceWorkerProviderHostInfo(int provider_id, | 16 ServiceWorkerProviderHostInfo(int provider_id, |
16 int route_id, | 17 int route_id, |
17 ServiceWorkerProviderType type, | 18 ServiceWorkerProviderType type, |
(...skipping 19 matching lines...) Expand all Loading... | |
37 // whose parent frame is not secure from the point of view of the document; | 38 // whose parent frame is not secure from the point of view of the document; |
38 // that is, blink::WebFrame::canHaveSecureChild() returns false. This doesn't | 39 // that is, blink::WebFrame::canHaveSecureChild() returns false. This doesn't |
39 // mean the document is necessarily an insecure context, because the document | 40 // mean the document is necessarily an insecure context, because the document |
40 // may have a URL whose scheme is granted an exception that allows bypassing | 41 // may have a URL whose scheme is granted an exception that allows bypassing |
41 // the ancestor secure context check. See the comment in | 42 // the ancestor secure context check. See the comment in |
42 // blink::Document::isSecureContextImpl for more details. If the provider is | 43 // blink::Document::isSecureContextImpl for more details. If the provider is |
43 // not created for a document, or the document does not have a parent frame, | 44 // not created for a document, or the document does not have a parent frame, |
44 // is_parent_frame_secure| is true. | 45 // is_parent_frame_secure| is true. |
45 bool is_parent_frame_secure; | 46 bool is_parent_frame_secure; |
46 | 47 |
48 mojom::ServiceWorkerProviderHostAssociatedRequest host_request; | |
49 mojom::ServiceWorkerProviderAssociatedPtrInfo client_ptr_info; | |
falken
2017/03/28 06:29:43
Can you add documentation? I know this is WIP but
shimazu
2017/05/08 08:34:29
Done.
| |
50 | |
47 private: | 51 private: |
48 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHostInfo); | 52 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHostInfo); |
49 }; | 53 }; |
50 | 54 |
51 } // namespace content | 55 } // namespace content |
52 | 56 |
53 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_INFO_H_ | 57 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_INFO_H_ |
OLD | NEW |