| 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/background_fetch/background_fetch_struct_traits.h" | 5 #include "content/common/background_fetch/background_fetch_struct_traits.h" |
| 6 | 6 |
| 7 #include "content/common/service_worker/service_worker_event_dispatcher.mojom.h" | 7 #include "content/common/service_worker/service_worker_event_dispatcher.mojom.h" |
| 8 #include "content/common/service_worker/service_worker_fetch_request_struct_trai
ts.h" |
| 8 #include "content/common/service_worker/service_worker_messages.h" | 9 #include "content/common/service_worker/service_worker_messages.h" |
| 9 #include "mojo/public/cpp/bindings/array_data_view.h" | 10 #include "mojo/public/cpp/bindings/array_data_view.h" |
| 10 | 11 |
| 11 namespace mojo { | 12 namespace mojo { |
| 12 | 13 |
| 13 // static | 14 // static |
| 14 bool StructTraits<blink::mojom::BackgroundFetchOptionsDataView, | 15 bool StructTraits<blink::mojom::BackgroundFetchOptionsDataView, |
| 15 content::BackgroundFetchOptions>:: | 16 content::BackgroundFetchOptions>:: |
| 16 Read(blink::mojom::BackgroundFetchOptionsDataView data, | 17 Read(blink::mojom::BackgroundFetchOptionsDataView data, |
| 17 content::BackgroundFetchOptions* options) { | 18 content::BackgroundFetchOptions* options) { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // static | 50 // static |
| 50 bool StructTraits< | 51 bool StructTraits< |
| 51 blink::mojom::IconDefinitionDataView, | 52 blink::mojom::IconDefinitionDataView, |
| 52 content::IconDefinition>::Read(blink::mojom::IconDefinitionDataView data, | 53 content::IconDefinition>::Read(blink::mojom::IconDefinitionDataView data, |
| 53 content::IconDefinition* definition) { | 54 content::IconDefinition* definition) { |
| 54 return data.ReadSrc(&definition->src) && data.ReadSizes(&definition->sizes) && | 55 return data.ReadSrc(&definition->src) && data.ReadSizes(&definition->sizes) && |
| 55 data.ReadType(&definition->type); | 56 data.ReadType(&definition->type); |
| 56 } | 57 } |
| 57 | 58 |
| 58 } // namespace mojo | 59 } // namespace mojo |
| OLD | NEW |