Bug 1892041 - Part 1: Update test262 features. r=spidermonkey-reviewers,dminor
[gecko.git] / dom / filesystem / PFileSystemParams.ipdlh
blob40b1e095f12769ed8708f35a2afe052c9b6fd0d9
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 namespace mozilla {
6 namespace dom {
8 struct FileSystemGetDirectoryListingParams
10   nsString filesystem;
11   nsString realPath;
12   nsString domPath;
14   // 'filters' could be an array rather than a semicolon separated string
15   // (we'd then use nsTArray<nsString> internally), but that is
16   // wasteful.  E10s requires us to pass the filters over as a string anyway,
17   // so avoiding using an array avoids serialization on the side passing the
18   // filters.  Since an nsString can share its buffer when copied,
19   // using that instead of nsTArray<nsString> makes copying the filters
20   // around in any given process a bit more efficient too, since copying a
21   // single nsString is cheaper than copying nsTArray member data and
22   // each nsString that it contains.
23   nsString filters;
26 struct FileSystemGetFilesParams
28   nsString filesystem;
29   nsString realPath;
30   nsString domPath;
31   bool recursiveFlag;
34 struct FileSystemGetFileOrDirectoryParams
36   nsString filesystem;
37   nsString realPath;
40 union FileSystemParams
42   FileSystemGetDirectoryListingParams;
43   FileSystemGetFilesParams;
44   FileSystemGetFileOrDirectoryParams;
47 } // dom namespace
48 } // mozilla namespace