dom/mobilemessage/interfaces/nsISmsService.idl

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     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 file,
     3  * You can obtain one at http://mozilla.org/MPL/2.0/. */
     5 #include "nsISupports.idl"
     7 interface nsIDOMMozSmsMessage;
     8 interface nsIDOMMozSmsSegmentInfo;
     9 interface nsIMobileMessageCallback;
    11 %{C++
    12 #define SMS_SERVICE_CID { 0xbada3cb8, 0xa568, 0x4dff, { 0xb5, 0x43, 0x52, 0xbb, 0xb3, 0x14, 0x31, 0x21 } }
    13 #define SMS_SERVICE_CONTRACTID "@mozilla.org/sms/smsservice;1"
    14 %}
    16 [scriptable, builtinclass, uuid(cb7d7b60-01f1-4241-a0ae-2ff035c3fbe5)]
    17 interface nsISmsService : nsISupports
    18 {
    19   readonly attribute unsigned long smsDefaultServiceId;
    21   void getSegmentInfoForText(in DOMString text,
    22                              in nsIMobileMessageCallback request);
    24   void send(in unsigned long serviceId,
    25             in DOMString number,
    26             in DOMString message,
    27             in boolean silent,
    28             in nsIMobileMessageCallback request);
    30   boolean isSilentNumber(in DOMString number);
    31   void addSilentNumber(in DOMString number);
    32   void removeSilentNumber(in DOMString number);
    34   void getSmscAddress(in unsigned long serviceId,
    35                       in nsIMobileMessageCallback request);
    36 };

mercurial