2016-04-09 21:17:02 +03:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
include protocol PBlob;
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
|
|
|
|
struct FileSystemGetDirectoryListingParams
|
|
|
|
{
|
|
|
|
nsString filesystem;
|
|
|
|
nsString realPath;
|
2017-02-01 09:33:18 +03:00
|
|
|
nsString domPath;
|
2016-04-18 10:32:30 +03:00
|
|
|
|
2016-04-09 21:17:02 +03:00
|
|
|
// 'filters' could be an array rather than a semicolon separated string
|
|
|
|
// (we'd then use InfallibleTArray<nsString> internally), but that is
|
|
|
|
// wasteful. E10s requires us to pass the filters over as a string anyway,
|
|
|
|
// so avoiding using an array avoids serialization on the side passing the
|
|
|
|
// filters. Since an nsString can share its buffer when copied,
|
|
|
|
// using that instead of InfallibleTArray<nsString> makes copying the filters
|
|
|
|
// around in any given process a bit more efficient too, since copying a
|
|
|
|
// single nsString is cheaper than copying InfallibleTArray member data and
|
|
|
|
// each nsString that it contains.
|
|
|
|
nsString filters;
|
|
|
|
};
|
|
|
|
|
2016-04-13 14:15:56 +03:00
|
|
|
struct FileSystemGetFilesParams
|
|
|
|
{
|
|
|
|
nsString filesystem;
|
|
|
|
nsString realPath;
|
2016-05-13 14:11:38 +03:00
|
|
|
nsString domPath;
|
2016-04-13 14:15:56 +03:00
|
|
|
bool recursiveFlag;
|
|
|
|
};
|
|
|
|
|
2016-04-09 21:17:02 +03:00
|
|
|
struct FileSystemGetFileOrDirectoryParams
|
|
|
|
{
|
|
|
|
nsString filesystem;
|
|
|
|
nsString realPath;
|
|
|
|
};
|
|
|
|
|
|
|
|
union FileSystemParams
|
|
|
|
{
|
|
|
|
FileSystemGetDirectoryListingParams;
|
2016-04-13 14:15:56 +03:00
|
|
|
FileSystemGetFilesParams;
|
2016-04-09 21:17:02 +03:00
|
|
|
FileSystemGetFileOrDirectoryParams;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // dom namespace
|
|
|
|
} // mozilla namespace
|