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 content::ServiceWorkerProviderType type; | |
15 if (!in.ReadType(&type)) | |
16 return false; | |
17 out->provider_id = in.provider_id(); | |
18 out->route_id = in.route_id(); | |
19 out->type = type; | |
dcheng
2017/02/14 08:47:46
Nit: it'd be OK to just ReadType() directly into t
shimazu
2017/02/15 02:24:19
Done.
| |
20 out->is_parent_frame_secure = in.is_parent_frame_secure(); | |
21 return true; | |
22 } | |
23 | |
24 } // namespace mojo | |
OLD | NEW |