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