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/. */
8 struct FileSystemGetDirectoryListingParams
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.
26 struct FileSystemGetFilesParams
34 struct FileSystemGetFileOrDirectoryParams
40 union FileSystemParams
42 FileSystemGetDirectoryListingParams;
43 FileSystemGetFilesParams;
44 FileSystemGetFileOrDirectoryParams;
48 } // mozilla namespace