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

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

Issue 2638313002: Manage ServiceWorkerDispatcherHost in ServiceWorkerContextCore (Closed)
Patch Set: Fix an include guard 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 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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698