Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(460)

Side by Side Diff: content/common/background_fetch/background_fetch_struct_traits.cc

Issue 2762303002: Enable transmitting Fetch Requests over Mojo (Closed)
Patch Set: Enable transmitting Fetch Requests over Mojo Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/common/DEPS ('k') | content/common/service_worker/service_worker_event_dispatcher.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698