#include "sbDeviceFirmwareDownloader.h"
#include <nsIFile.h>
#include <nsIHttpChannel.h>
#include <nsIIOService.h>
#include <nsILocalFile.h>
#include <nsIMultiPartChannel.h>
#include <nsIProperties.h>
#include <nsIPropertyBag2.h>
#include <nsITextToSubURI.h>
#include <nsIURL.h>
#include <nsIUTF8ConverterService.h>
#include <nsIVariant.h>
#include <nsAppDirectoryServiceDefs.h>
#include <nsAutoLock.h>
#include <nsCRT.h>
#include <nsHashKeys.h>
#include <nsServiceManagerUtils.h>
#include <nsXPCOM.h>
#include <prmem.h>
#include <sbIDevice.h>
#include <sbIDeviceEventTarget.h>
#include <sbIDeviceProperties.h>
#include <sbProxiedComponentManager.h>
#include <sbStringUtils.h>
#include <sbVariantUtils.h>
#include "sbDeviceFirmwareUpdate.h"
Go to the source code of this file.
|
static PRInt32 | codetovalue (unsigned char c) |
|
static PRStatus | decode4to3 (const unsigned char *src, unsigned char *dest) |
|
static PRStatus | decode3to2 (const unsigned char *src, unsigned char *dest) |
|
static PRStatus | decode2to1 (const unsigned char *src, unsigned char *dest) |
|
static PRStatus | decode (const unsigned char *src, PRUint32 srclen, unsigned char *dest) |
|
static char * | SB_Base64Decode (const char *src, PRUint32 srclen, char *dest) |
|
static nsCString | GetContentDispositionFilename (const nsACString &contentDisposition) |
|
static nsresult | UnescapeFragment (const nsACString &aFragment, nsIURI *aURI, nsAString &aResult) |
|
static nsresult | UnescapeFragment (const nsACString &aFragment, nsIURI *aURI, nsACString &aResult) |
|
| NS_IMPL_THREADSAFE_ISUPPORTS1 (sbDeviceFirmwareDownloader, sbIFileDownloaderListener) sbDeviceFirmwareDownloader |
|
#define FIRMWARE_CACHE_LAYOUT_VERSION_2_NAME "v2" |
#define FIRMWARE_CACHE_ROOT_NAME "firmware_cache" |
#define FIRMWARE_FILE_PREF "firmware.cache.file" |
#define FIRMWARE_READABLE_PREF "firmware.cache.readableVersion" |
#define FIRMWARE_VERSION_PREF "firmware.cache.version" |
static PRInt32 codetovalue |
( |
unsigned char |
c | ) |
|
|
static |
static PRStatus decode |
( |
const unsigned char * |
src, |
|
|
PRUint32 |
srclen, |
|
|
unsigned char * |
dest |
|
) |
| |
|
static |
static PRStatus decode2to1 |
( |
const unsigned char * |
src, |
|
|
unsigned char * |
dest |
|
) |
| |
|
static |
static PRStatus decode3to2 |
( |
const unsigned char * |
src, |
|
|
unsigned char * |
dest |
|
) |
| |
|
static |
static PRStatus decode4to3 |
( |
const unsigned char * |
src, |
|
|
unsigned char * |
dest |
|
) |
| |
|
static |
static nsCString GetContentDispositionFilename |
( |
const nsACString & |
contentDisposition | ) |
|
|
static |
static char* SB_Base64Decode |
( |
const char * |
src, |
|
|
PRUint32 |
srclen, |
|
|
char * |
dest |
|
) |
| |
|
static |
static nsresult UnescapeFragment |
( |
const nsACString & |
aFragment, |
|
|
nsIURI * |
aURI, |
|
|
nsAString & |
aResult |
|
) |
| |
|
static |
static nsresult UnescapeFragment |
( |
const nsACString & |
aFragment, |
|
|
nsIURI * |
aURI, |
|
|
nsACString & |
aResult |
|
) |
| |
|
static |