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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: content/common/service_worker/service_worker_provider_struct_traits.cc
diff --git a/content/common/service_worker/service_worker_provider_struct_traits.cc b/content/common/service_worker/service_worker_provider_struct_traits.cc
new file mode 100644
index 0000000000000000000000000000000000000000..c4a43071e6aff6a42a5fbd1f908ced97d500a988
--- /dev/null
+++ b/content/common/service_worker/service_worker_provider_struct_traits.cc
@@ -0,0 +1,22 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/common/service_worker/service_worker_provider_struct_traits.h"
+#include "content/common/service_worker/service_worker_types_struct_traits.h"
+
+namespace mojo {
+
+bool StructTraits<content::mojom::ServiceWorkerProviderHostInfoDataView,
+ content::ServiceWorkerProviderHostInfo>::
+ Read(content::mojom::ServiceWorkerProviderHostInfoDataView in,
+ content::ServiceWorkerProviderHostInfo* out) {
+ if (!in.ReadType(&out->type))
+ return false;
+ out->provider_id = in.provider_id();
+ out->route_id = in.route_id();
+ out->is_parent_frame_secure = in.is_parent_frame_secure();
+ return true;
+}
+
+} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698