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

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

Issue 2748213003: Service Worker event dispatcher for Background Fetch (Closed)
Patch Set: uma fix Created 3 years, 9 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/renderer/service_worker/service_worker_type_converters.h
diff --git a/content/renderer/service_worker/service_worker_type_converters.h b/content/renderer/service_worker/service_worker_type_converters.h
index 905af61afe7c089366c45ec3d77ee6f296aaa919..e5dc1f68b46e8db0166a3809c66a974f292808ad 100644
--- a/content/renderer/service_worker/service_worker_type_converters.h
+++ b/content/renderer/service_worker/service_worker_type_converters.h
@@ -6,9 +6,11 @@
#define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_TYPE_CONVERTERS_H_
#include "components/payments/content/payment_app.mojom.h"
+#include "content/common/service_worker/service_worker_event_dispatcher.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"
+#include "third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextProxy.h"
namespace mojo {
@@ -53,6 +55,13 @@ struct TypeConverter<blink::WebPaymentDetailsModifier,
const payments::mojom::PaymentDetailsModifierPtr& input);
};
+template <>
+struct TypeConverter<blink::WebServiceWorkerContextProxy::BackgroundFetchState,
+ content::mojom::BackgroundFetchState> {
+ static blink::WebServiceWorkerContextProxy::BackgroundFetchState Convert(
+ content::mojom::BackgroundFetchState input);
+};
+
} // namespace
#endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_TYPE_CONVERTERS_H_

Powered by Google App Engine
This is Rietveld 408576698