tor-browser

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

nsISDBConnection.idl (986B)


      1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* vim: set ts=2 et sw=2 tw=80: */
      3 /* This Source Code Form is subject to the terms of the Mozilla Public
      4 * License, v. 2.0. If a copy of the MPL was not distributed with this
      5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      6 
      7 #include "nsISupports.idl"
      8 
      9 interface nsIPrincipal;
     10 interface nsISDBCloseCallback;
     11 interface nsISDBRequest;
     12 
     13 [scriptable, builtinclass, uuid(ea420fdd-548f-44f9-9286-59aad6a40f01)]
     14 interface nsISDBConnection : nsISupports
     15 {
     16  [must_use] void
     17  init(in nsIPrincipal aPrincipal, [optional] in ACString aPersistenceType);
     18 
     19  [must_use] nsISDBRequest
     20  open(in AString aName);
     21 
     22  [must_use] nsISDBRequest
     23  seek(in unsigned long long offset);
     24 
     25  [must_use] nsISDBRequest
     26  read(in unsigned long long size);
     27 
     28  [must_use, implicit_jscontext] nsISDBRequest
     29  write(in jsval value);
     30 
     31  [must_use] nsISDBRequest
     32  close();
     33 
     34  attribute nsISDBCloseCallback closeCallback;
     35 };