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

Unified Diff: content/common/service_worker/service_worker_type_converters.h

Issue 2678273011: Move service_worker_type_converters to content/renderer to avoid WebString() usage in browser (Closed)
Patch Set: move _type_converter security OWNERS entry to renderer/ too 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_type_converters.h
diff --git a/content/common/service_worker/service_worker_type_converters.h b/content/common/service_worker/service_worker_type_converters.h
deleted file mode 100644
index 777d91cc98b76edb3c46f7f0ab8a1c68914a92ac..0000000000000000000000000000000000000000
--- a/content/common/service_worker/service_worker_type_converters.h
+++ /dev/null
@@ -1,58 +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.
-
-#ifndef CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPE_CONVERTERS_H_
-#define CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPE_CONVERTERS_H_
-
-#include "components/payments/payment_app.mojom.h"
-#include "content/common/service_worker/service_worker_status_code.h"
-#include "third_party/WebKit/public/platform/modules/payments/WebPaymentAppRequest.h"
-#include "third_party/WebKit/public/platform/modules/serviceworker/service_worker_event_status.mojom.h"
-
-namespace mojo {
-
-template <>
-struct CONTENT_EXPORT TypeConverter<content::ServiceWorkerStatusCode,
- blink::mojom::ServiceWorkerEventStatus> {
- static content::ServiceWorkerStatusCode Convert(
- blink::mojom::ServiceWorkerEventStatus status);
-};
-
-template <>
-struct TypeConverter<blink::WebPaymentAppRequest,
- payments::mojom::PaymentAppRequestPtr> {
- static blink::WebPaymentAppRequest Convert(
- const payments::mojom::PaymentAppRequestPtr& input);
-};
-
-template <>
-struct TypeConverter<blink::WebPaymentMethodData,
- payments::mojom::PaymentMethodDataPtr> {
- static blink::WebPaymentMethodData Convert(
- const payments::mojom::PaymentMethodDataPtr& input);
-};
-
-template <>
-struct TypeConverter<blink::WebPaymentItem, payments::mojom::PaymentItemPtr> {
- static blink::WebPaymentItem Convert(
- const payments::mojom::PaymentItemPtr& input);
-};
-
-template <>
-struct TypeConverter<blink::WebPaymentCurrencyAmount,
- payments::mojom::PaymentCurrencyAmountPtr> {
- static blink::WebPaymentCurrencyAmount Convert(
- const payments::mojom::PaymentCurrencyAmountPtr& input);
-};
-
-template <>
-struct TypeConverter<blink::WebPaymentDetailsModifier,
- payments::mojom::PaymentDetailsModifierPtr> {
- static blink::WebPaymentDetailsModifier Convert(
- const payments::mojom::PaymentDetailsModifierPtr& input);
-};
-
-} // namespace
-
-#endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPE_CONVERTERS_H_
« no previous file with comments | « content/common/service_worker/OWNERS ('k') | content/common/service_worker/service_worker_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698