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

Side by Side Diff: content/common/service_worker/service_worker_provider_struct_traits.cc

Issue 2638313002: Manage ServiceWorkerDispatcherHost in ServiceWorkerContextCore (Closed)
Patch Set: Rebase Created 3 years, 10 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
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698