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

Side by Side Diff: content/common/service_worker/service_worker_types_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 2016 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_types_struct_traits.h"
6
7 namespace mojo {
8
9 content::mojom::ServiceWorkerProviderType
10 EnumTraits<content::mojom::ServiceWorkerProviderType,
11 content::ServiceWorkerProviderType>::
12 ToMojom(content::ServiceWorkerProviderType input) {
13 return static_cast<content::mojom::ServiceWorkerProviderType>(input);
14 }
15
16 bool EnumTraits<content::mojom::ServiceWorkerProviderType,
17 content::ServiceWorkerProviderType>::
18 FromMojom(content::mojom::ServiceWorkerProviderType input,
19 content::ServiceWorkerProviderType* out) {
20 *out = static_cast<content::ServiceWorkerProviderType>(input);
21 return true;
22 }
23
24 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698