tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

PFileSystemParams.ipdlh (1383B)


      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/. */
      4 
      5 namespace mozilla {
      6 namespace dom {
      7 
      8 struct FileSystemGetDirectoryListingParams
      9 {
     10   nsString filesystem;
     11   nsString realPath;
     12   nsString domPath;
     13 
     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;
     24 };
     25 
     26 struct FileSystemGetFilesParams
     27 {
     28   nsString filesystem;
     29   nsString realPath;
     30   nsString domPath;
     31   bool recursiveFlag;
     32 };
     33 
     34 struct FileSystemGetFileOrDirectoryParams
     35 {
     36   nsString filesystem;
     37   nsString realPath;
     38 };
     39 
     40 union FileSystemParams
     41 {
     42   FileSystemGetDirectoryListingParams;
     43   FileSystemGetFilesParams;
     44   FileSystemGetFileOrDirectoryParams;
     45 };
     46 
     47 } // dom namespace
     48 } // mozilla namespace