blob: 0bd9d041442f18c7b224367ddc7c7aa5c4490906 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Copyright 2016 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.
-->
<node name="/org/chromium/ImageLoader"
xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
<interface name="org.chromium.ImageLoaderInterface">
<method name="RegisterComponent">
<tp:docstring>
Registers a component with ImageLoader. ImageLoader will verify
the integrity and Google signature of the component and, if and
only if valid, copy the component into its internal storage.
</tp:docstring>
<arg name="name" type="s" direction="in">
<tp:docstring>
The name of the component.
</tp:docstring>
</arg>
<arg name="version" type="s" direction="in">
<tp:docstring>
The version of the component.
</tp:docstring>
</arg>
<arg name="component_folder_abs_path" type="s" direction="in">
<tp:docstring>
The absolute path to the current component folder that ImageLoader
will verify and copy the component from.
</tp:docstring>
</arg>
<arg name="success" type="b" direction="out">
<tp:docstring>
The result of the component registration (success or failure).
</tp:docstring>
</arg>
</method>
<method name="GetComponentVersion">
<tp:docstring>
Returns the currently registered version of the given component.
</tp:docstring>
<arg name="name" type="s" direction="in">
<tp:docstring>
The name of the component.
</tp:docstring>
</arg>
<arg name="version" type="s" direction="out">
<tp:docstring>
The returned version of the component.
</tp:docstring>
</arg>
</method>
<method name="LoadComponent">
<tp:docstring>
Loads the component, if and only if the component verifies the
signature check, and returns the mount point.
</tp:docstring>
<arg name="name" type="s" direction="in">
<tp:docstring>
The name of the component.
</tp:docstring>
</arg>
<arg name="mount_point" type="s" direction="out">
<tp:docstring>
The mount point of the verified and mounted component.
</tp:docstring>
</arg>
</method>
<method name="LoadComponentAtPath">
<tp:docstring>
Loads the component at the given path, if and only if the component
verifies the signature check, and returns the mount point.
</tp:docstring>
<arg name="name" type="s" direction="in">
<tp:docstring>
The name of the component.
</tp:docstring>
</arg>
<arg name="absolute_path" type="s" direction="in">
<tp:docstring>
The absolute path where the component is located.
</tp:docstring>
</arg>
<arg name="mount_point" type="s" direction="out">
<tp:docstring>
The mount point of the verified and mounted component.
</tp:docstring>
</arg>
</method>
<method name="RemoveComponent">
<tp:docstring>
Remove all versions of a component if removable.
</tp:docstring>
<arg name="name" type="s" direction="in">
<tp:docstring>
The name of the component.
</tp:docstring>
</arg>
<arg name="success" type="b" direction="out">
<tp:docstring>
The result of the component removal (success or failure).
</tp:docstring>
</arg>
</method>
<method name="GetComponentMetadata">
<tp:docstring>
Get the metadata for a registered component.
</tp:docstring>
<arg name="name" type="s" direction="in">
<tp:docstring>
The name of the component.
</tp:docstring>
</arg>
<arg name="metadata" type="a{ss}" direction="out">
<tp:docstring>
The metadata associated with this component.
</tp:docstring>
</arg>
</method>
<method name="UnmountComponent">
<tp:docstring>
Unmount all mount points of a component.
</tp:docstring>
<arg name="name" type="s" direction="in">
<tp:docstring>
The name of the component.
</tp:docstring>
</arg>
<arg name="success" type="b" direction="out">
<tp:docstring>
The result of the component unmount (success or failure).
</tp:docstring>
</arg>
</method>
</interface>
</node>