mobile/android/base/SmsManager.java

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 /* -*- Mode: Java; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: nil; -*-
     2  * This Source Code Form is subject to the terms of the Mozilla Public
     3  * License, v. 2.0. If a copy of the MPL was not distributed with this
     4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     6 package org.mozilla.gecko;
     8 class SmsManager
     9 {
    10     static private ISmsManager sInstance = null;
    12     static public ISmsManager getInstance() {
    13         if (AppConstants.MOZ_WEBSMS_BACKEND) {
    14             if (sInstance == null) {
    15                 sInstance = new GeckoSmsManager();
    16             }
    17         }
    18         return sInstance;
    19     }
    20 }
    22 interface ISmsManager
    23 {
    24   public void start();
    25   public void stop();
    26   public void shutdown();
    28   public void send(String aNumber, String aMessage, int aRequestId);
    29   public void getMessage(int aMessageId, int aRequestId);
    30   public void deleteMessage(int aMessageId, int aRequestId);
    31   public void createMessageList(long aStartDate, long aEndDate, String[] aNumbers, int aNumbersCount, int aDeliveryState, boolean aReverse, int aRequestId);
    32   public void getNextMessageInList(int aListId, int aRequestId);
    33   public void clearMessageList(int aListId);
    34 }

mercurial