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

Side by Side Diff: content/common/service_worker/service_worker_types_struct_traits.h

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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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 #ifndef CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_TRAITS_H_ 5 #ifndef CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_STRUCT_TRAITS_H_
6 #define CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_TRAITS_H_ 6 #define CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_STRUCT_TRAITS_H_
7 7
8 #include "content/common/service_worker/service_worker_types.mojom.h" 8 #include "content/common/service_worker/service_worker_types.mojom.h"
9 9
10 namespace mojo { 10 namespace mojo {
11 11
12 template <> 12 template <>
13 struct EnumTraits<content::mojom::ServiceWorkerProviderType, 13 struct EnumTraits<content::mojom::ServiceWorkerProviderType,
14 content::ServiceWorkerProviderType> { 14 content::ServiceWorkerProviderType> {
15 static content::mojom::ServiceWorkerProviderType ToMojom( 15 static content::mojom::ServiceWorkerProviderType ToMojom(
16 content::ServiceWorkerProviderType input); 16 content::ServiceWorkerProviderType input);
17 17
18 static bool FromMojom(content::mojom::ServiceWorkerProviderType input, 18 static bool FromMojom(content::mojom::ServiceWorkerProviderType input,
19 content::ServiceWorkerProviderType* out); 19 content::ServiceWorkerProviderType* out);
20 }; 20 };
21 21
22 } // namespace mojo 22 } // namespace mojo
23 23
24 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_TRAITS_H_ 24 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_STRUCT_TRAITS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698