Index: extensions/common/manifest_location_struct_traits.h |
diff --git a/extensions/common/manifest_location_struct_traits.h b/extensions/common/manifest_location_struct_traits.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..495af668c280b0fd3959a252e03ff6f608435e9a |
--- /dev/null |
+++ b/extensions/common/manifest_location_struct_traits.h |
@@ -0,0 +1,25 @@ |
+// Copyright 2017 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 EXTENSIONS_COMMON_MANIFEST_LOCATION_STRUCT_TRAITS_H |
+#define EXTENSIONS_COMMON_MANIFEST_LOCATION_STRUCT_TRAITS_H |
+ |
+#include "extensions/common/manifest.h" |
+#include "extensions/common/manifest_location.mojom-shared.h" |
+ |
+namespace mojo { |
+ |
+template <> |
+struct EnumTraits<::extensions::mojom::ManifestLocation, |
+ ::extensions::Manifest::Location> { |
+ static ::extensions::mojom::ManifestLocation ToMojom( |
+ ::extensions::Manifest::Location input); |
+ |
+ static bool FromMojom(::extensions::mojom::ManifestLocation input, |
+ ::extensions::Manifest::Location* output); |
+}; |
+ |
+} // namespace mojo |
+ |
+#endif // EXTENSIONS_COMMON_MANIFEST_LOCATION_STRUCT_TRAITS_H |