diff options
author | Jeffrey Kardatzke <jkardatzke@google.com> | 2018-08-16 11:52:14 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-08-29 16:09:29 -0700 |
commit | ca3489faea89ebf8c8db55b29a6e125028139ae6 (patch) | |
tree | 3b1074da0f7b58f8572890402b2c7a0c79f6e3d2 /dbus | |
parent | bbae6045ae9aaa1a2cfc5da4cce3e988131f47b1 (diff) | |
download | system_api-ca3489faea89ebf8c8db55b29a6e125028139ae6.tar.gz |
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>
Diffstat (limited to 'dbus')
-rw-r--r-- | dbus/vm_applications/apps.proto | 16 | ||||
-rw-r--r-- | dbus/vm_applications/dbus-constants.h | 1 |
2 files changed, 17 insertions, 0 deletions
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<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 kVmApplicationsServiceInterface[] = "org.chromium.VmApplicationsServi const char kVmApplicationsServiceUpdateApplicationListMethod[] = "UpdateApplicationList"; const char kVmApplicationsServiceLaunchTerminalMethod[] = "LaunchTerminal"; +const char kVmApplicationsServiceUpdateMimeTypesMethod[] = "UpdateMimeTypes"; } // namespace apps } // namespace vm_tools |