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

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

Issue 2352173004: Mojoify FetchEvent of Service Worker. (Closed)
Patch Set: incorporated dcheng's comment Created 4 years, 2 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 #ifndef CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_STATUS_CODE_TRAITS_H_
6 #define CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_STATUS_CODE_TRAITS_H_
7
8 #include "content/common/service_worker/service_worker_status_code.h"
9 #include "third_party/WebKit/public/platform/modules/serviceworker/service_worke r_event_status.mojom.h"
10
11 namespace mojo {
12
13 template <>
14 struct EnumTraits<blink::mojom::ServiceWorkerEventStatus,
15 content::ServiceWorkerStatusCode> {
16 static blink::mojom::ServiceWorkerEventStatus ToMojom(
17 content::ServiceWorkerStatusCode input);
18
19 static bool FromMojom(blink::mojom::ServiceWorkerEventStatus input,
20 content::ServiceWorkerStatusCode* out);
21 };
22
23 } // namespace mojo
24
25 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_STATUS_CODE_TRAITS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698