Add protobuf for mime type mappings in Crostini.

BUG=chromium:869747
TEST=Builds

Change-Id: Id2d59d432b8037a4fcc0f2d2c0c267fac5b088f2
Reviewed-on: https://chromium-review.googlesource.com/1188447
Commit-Ready: Jeffrey Kardatzke <jkardatzke@google.com>
Tested-by: Jeffrey Kardatzke <jkardatzke@google.com>
Reviewed-by: Dan Erat <derat@chromium.org>
Reviewed-by: Stephen Barber <smbarber@chromium.org>
diff --git a/dbus/vm_applications/apps.proto b/dbus/vm_applications/apps.proto
index 2b473a0..cf76bed 100644
--- a/dbus/vm_applications/apps.proto
+++ b/dbus/vm_applications/apps.proto
@@ -58,3 +58,19 @@
   // The owner of the VM and container.
   string owner_id = 4;
 }
+
+// MIME type mapping information internal to the container.
+message MimeTypes {
+  // MIME type mappings with file extension as the key without a period prefix
+  // and MIME type as the value.
+  map<string, string> mime_type_mappings = 1;
+
+  // Name of the VM this came from.
+  string vm_name = 2;
+
+  // Name of the container this came from.
+  string container_name = 3;
+
+  // The owner of the VM and container.
+  string owner_id = 4;
+}
diff --git a/dbus/vm_applications/dbus-constants.h b/dbus/vm_applications/dbus-constants.h
index fc0b65e..2e36178 100644
--- a/dbus/vm_applications/dbus-constants.h
+++ b/dbus/vm_applications/dbus-constants.h
@@ -14,6 +14,7 @@
 
 const char kVmApplicationsServiceUpdateApplicationListMethod[] = "UpdateApplicationList";
 const char kVmApplicationsServiceLaunchTerminalMethod[] = "LaunchTerminal";
+const char kVmApplicationsServiceUpdateMimeTypesMethod[] = "UpdateMimeTypes";
 
 }  // namespace apps
 }  // namespace vm_tools