Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions
nsCacheService.cpp File Reference
#include "necko-config.h"
#include "nsCache.h"
#include "nsCacheService.h"
#include "nsCacheRequest.h"
#include "nsCacheEntry.h"
#include "nsCacheEntryDescriptor.h"
#include "nsCacheDevice.h"
#include "nsMemoryCacheDevice.h"
#include "nsICacheVisitor.h"
#include "nsDiskCacheDevice.h"
#include "nsAutoLock.h"
#include "nsIEventQueue.h"
#include "nsIObserverService.h"
#include "nsIPrefService.h"
#include "nsIPrefBranch.h"
#include "nsIPrefBranch2.h"
#include "nsILocalFile.h"
#include "nsDirectoryServiceDefs.h"
#include "nsAppDirectoryServiceDefs.h"
#include "nsVoidArray.h"
#include "nsDeleteDir.h"
#include <math.h>

Go to the source code of this file.

Classes

class  nsCacheProfilePrefObserver

Defines

#define DISK_CACHE_ENABLE_PREF   "browser.cache.disk.enable"
#define DISK_CACHE_DIR_PREF   "browser.cache.disk.parent_directory"
#define DISK_CACHE_CAPACITY_PREF   "browser.cache.disk.capacity"
#define DISK_CACHE_MAX_ENTRY_SIZE_PREF   "browser.cache.disk.max_entry_size"
#define DISK_CACHE_CAPACITY   51200
#define MEMORY_CACHE_ENABLE_PREF   "browser.cache.memory.enable"
#define MEMORY_CACHE_CAPACITY_PREF   "browser.cache.memory.capacity"
#define MEMORY_CACHE_MAX_ENTRY_SIZE_PREF   "browser.cache.memory.max_entry_size"
#define MEMORY_CACHE_CAPACITY   4096
#define BROWSER_CACHE_MEMORY_CAPACITY   4096

Functions

static void *PR_CALLBACK EventHandler (PLEvent *self)
static void PR_CALLBACK DestroyHandler (PLEvent *self)

Define Documentation

Definition at line 90 of file nsCacheService.cpp.

Definition at line 83 of file nsCacheService.cpp.

#define DISK_CACHE_CAPACITY_PREF   "browser.cache.disk.capacity"

Definition at line 81 of file nsCacheService.cpp.

#define DISK_CACHE_DIR_PREF   "browser.cache.disk.parent_directory"

Definition at line 80 of file nsCacheService.cpp.

#define DISK_CACHE_ENABLE_PREF   "browser.cache.disk.enable"

Definition at line 79 of file nsCacheService.cpp.

#define DISK_CACHE_MAX_ENTRY_SIZE_PREF   "browser.cache.disk.max_entry_size"

Definition at line 82 of file nsCacheService.cpp.

Definition at line 88 of file nsCacheService.cpp.

#define MEMORY_CACHE_CAPACITY_PREF   "browser.cache.memory.capacity"

Definition at line 86 of file nsCacheService.cpp.

#define MEMORY_CACHE_ENABLE_PREF   "browser.cache.memory.enable"

Definition at line 85 of file nsCacheService.cpp.

#define MEMORY_CACHE_MAX_ENTRY_SIZE_PREF   "browser.cache.memory.max_entry_size"

Definition at line 87 of file nsCacheService.cpp.


Function Documentation

static void PR_CALLBACK DestroyHandler ( PLEvent self) [static]

Definition at line 1134 of file nsCacheService.cpp.

{
    delete self;
}

Here is the caller graph for this function:

static void* PR_CALLBACK EventHandler ( PLEvent self) [static]

Definition at line 1125 of file nsCacheService.cpp.

{
    nsISupports * object = (nsISupports *)PL_GetEventOwner(self);
    NS_RELEASE(object);
    return 0;
}

Here is the call graph for this function: