From ca3489faea89ebf8c8db55b29a6e125028139ae6 Mon Sep 17 00:00:00 2001 From: Jeffrey Kardatzke Date: Thu, 16 Aug 2018 11:52:14 -0700 Subject: 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 Tested-by: Jeffrey Kardatzke Reviewed-by: Dan Erat Reviewed-by: Stephen Barber --- dbus/vm_applications/apps.proto | 16 ++++++++++++++++ dbus/vm_applications/dbus-constants.h | 1 + 2 files changed, 17 insertions(+) (limited to 'dbus') 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 @@ message TerminalParams { // 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 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 kVmApplicationsServiceInterface[] = "org.chromium.VmApplicationsServi const char kVmApplicationsServiceUpdateApplicationListMethod[] = "UpdateApplicationList"; const char kVmApplicationsServiceLaunchTerminalMethod[] = "LaunchTerminal"; +const char kVmApplicationsServiceUpdateMimeTypesMethod[] = "UpdateMimeTypes"; } // namespace apps } // namespace vm_tools -- cgit v1.2.3