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

Unified Diff: content/child/background_sync/background_sync_type_converters.cc

Issue 2517223002: Move content/renderer/background_sync to Blink (Closed)
Patch Set: Fix broken WebEmbeddedWorker test Created 4 years, 1 month 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
« no previous file with comments | « content/child/background_sync/background_sync_type_converters.h ('k') | content/renderer/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/background_sync/background_sync_type_converters.cc
diff --git a/content/child/background_sync/background_sync_type_converters.cc b/content/child/background_sync/background_sync_type_converters.cc
deleted file mode 100644
index d303e679cf3f2f26fee6aff1c70ca89d8608f111..0000000000000000000000000000000000000000
--- a/content/child/background_sync/background_sync_type_converters.cc
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2015 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/child/background_sync/background_sync_type_converters.h"
-
-#include "base/logging.h"
-
-namespace mojo {
-
-#define COMPILE_ASSERT_MATCHING_ENUM(mojo_name, blink_name) \
- static_assert(static_cast<int>(blink::mojo_name) == \
- static_cast<int>(blink::blink_name), \
- "mojo and blink enums must match")
-
-COMPILE_ASSERT_MATCHING_ENUM(
- mojom::BackgroundSyncEventLastChance::IS_NOT_LAST_CHANCE,
- WebServiceWorkerContextProxy::IsNotLastChance);
-COMPILE_ASSERT_MATCHING_ENUM(
- mojom::BackgroundSyncEventLastChance::IS_LAST_CHANCE,
- WebServiceWorkerContextProxy::IsLastChance);
-
-// static
-blink::WebServiceWorkerContextProxy::LastChanceOption
-TypeConverter<blink::WebServiceWorkerContextProxy::LastChanceOption,
- blink::mojom::BackgroundSyncEventLastChance>::
- Convert(blink::mojom::BackgroundSyncEventLastChance input) {
- return static_cast<blink::WebServiceWorkerContextProxy::LastChanceOption>(
- input);
-}
-
-// static
-blink::mojom::BackgroundSyncEventLastChance
-TypeConverter<blink::mojom::BackgroundSyncEventLastChance,
- blink::WebServiceWorkerContextProxy::LastChanceOption>::
- Convert(blink::WebServiceWorkerContextProxy::LastChanceOption input) {
- return static_cast<blink::mojom::BackgroundSyncEventLastChance>(input);
-}
-
-} // namespace mojo
« no previous file with comments | « content/child/background_sync/background_sync_type_converters.h ('k') | content/renderer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698