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 #include "content/common/service_worker/service_worker_provider_struct_traits.h" | 5 #include "content/common/service_worker/service_worker_provider_struct_traits.h" |
6 #include "content/common/service_worker/service_worker_types_struct_traits.h" | 6 #include "content/common/service_worker/service_worker_types_struct_traits.h" |
7 | 7 |
8 namespace mojo { | 8 namespace mojo { |
9 | 9 |
10 bool StructTraits<content::mojom::ServiceWorkerProviderHostInfoDataView, | 10 bool StructTraits<content::mojom::ServiceWorkerProviderHostInfoDataView, |
11 content::ServiceWorkerProviderHostInfo>:: | 11 content::ServiceWorkerProviderHostInfo>:: |
12 Read(content::mojom::ServiceWorkerProviderHostInfoDataView in, | 12 Read(content::mojom::ServiceWorkerProviderHostInfoDataView in, |
13 content::ServiceWorkerProviderHostInfo* out) { | 13 content::ServiceWorkerProviderHostInfo* out) { |
14 if (!in.ReadType(&out->type)) | 14 if (!in.ReadType(&out->type)) |
15 return false; | 15 return false; |
16 out->provider_id = in.provider_id(); | 16 out->provider_id = in.provider_id(); |
17 out->route_id = in.route_id(); | 17 out->route_id = in.route_id(); |
18 out->is_parent_frame_secure = in.is_parent_frame_secure(); | 18 out->is_parent_frame_secure = in.is_parent_frame_secure(); |
| 19 out->host_request = in.TakeHostRequest< |
| 20 content::mojom::ServiceWorkerProviderHostAssociatedRequest>(); |
| 21 out->client_ptr_info = in.TakeClientPtrInfo< |
| 22 content::mojom::ServiceWorkerProviderAssociatedPtrInfo>(); |
19 return true; | 23 return true; |
20 } | 24 } |
21 | 25 |
22 } // namespace mojo | 26 } // namespace mojo |
OLD | NEW |