summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/manifest/image_resource_type_converters.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/manifest/image_resource_type_converters.h')
-rw-r--r--chromium/third_party/blink/renderer/modules/manifest/image_resource_type_converters.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/modules/manifest/image_resource_type_converters.h b/chromium/third_party/blink/renderer/modules/manifest/image_resource_type_converters.h
new file mode 100644
index 00000000000..4f0f1a45cc7
--- /dev/null
+++ b/chromium/third_party/blink/renderer/modules/manifest/image_resource_type_converters.h
@@ -0,0 +1,24 @@
+// Copyright 2018 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 THIRD_PARTY_BLINK_RENDERER_MODULES_MANIFEST_IMAGE_RESOURCE_TYPE_CONVERTERS_H_
+#define THIRD_PARTY_BLINK_RENDERER_MODULES_MANIFEST_IMAGE_RESOURCE_TYPE_CONVERTERS_H_
+
+#include "third_party/blink/public/mojom/manifest/manifest.mojom-blink.h"
+#include "third_party/blink/renderer/modules/manifest/image_resource.h"
+#include "third_party/blink/renderer/modules/modules_export.h"
+
+namespace mojo {
+
+template <>
+struct MODULES_EXPORT
+ TypeConverter<blink::mojom::blink::ManifestImageResourcePtr,
+ blink::ManifestImageResource> {
+ static blink::mojom::blink::ManifestImageResourcePtr Convert(
+ const blink::ManifestImageResource& image_resource);
+};
+
+} // namespace mojo
+
+#endif // THIRD_PARTY_BLINK_RENDERER_MODULES_MANIFEST_IMAGE_RESOURCE_TYPE_CONVERTERS_H_