Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj
This commit is contained in:
16
netwerk/cache/nsCacheService.cpp
vendored
16
netwerk/cache/nsCacheService.cpp
vendored
@@ -222,7 +222,7 @@ NS_IMPL_ISUPPORTS(nsSetDiskSmartSizeCallback, nsITimerCallback)
|
||||
|
||||
// Runnable sent to main thread after the cache IO thread calculates available
|
||||
// disk space, so that there is no race in setting mDiskCacheCapacity.
|
||||
class nsSetSmartSizeEvent: public nsRunnable
|
||||
class nsSetSmartSizeEvent: public Runnable
|
||||
{
|
||||
public:
|
||||
explicit nsSetSmartSizeEvent(int32_t smartSize)
|
||||
@@ -259,7 +259,7 @@ private:
|
||||
|
||||
|
||||
// Runnable sent from main thread to cacheIO thread
|
||||
class nsGetSmartSizeEvent: public nsRunnable
|
||||
class nsGetSmartSizeEvent: public Runnable
|
||||
{
|
||||
public:
|
||||
nsGetSmartSizeEvent(const nsAString& cachePath, uint32_t currentSize,
|
||||
@@ -287,7 +287,7 @@ private:
|
||||
bool mShouldUseOldMaxSmartSize;
|
||||
};
|
||||
|
||||
class nsBlockOnCacheThreadEvent : public nsRunnable {
|
||||
class nsBlockOnCacheThreadEvent : public Runnable {
|
||||
public:
|
||||
nsBlockOnCacheThreadEvent()
|
||||
{
|
||||
@@ -966,7 +966,7 @@ nsCacheProfilePrefObserver::CacheCompressionLevel()
|
||||
* nsProcessRequestEvent
|
||||
*****************************************************************************/
|
||||
|
||||
class nsProcessRequestEvent : public nsRunnable {
|
||||
class nsProcessRequestEvent : public Runnable {
|
||||
public:
|
||||
explicit nsProcessRequestEvent(nsCacheRequest *aRequest)
|
||||
{
|
||||
@@ -1004,7 +1004,7 @@ private:
|
||||
* nsDoomEvent
|
||||
*****************************************************************************/
|
||||
|
||||
class nsDoomEvent : public nsRunnable {
|
||||
class nsDoomEvent : public Runnable {
|
||||
public:
|
||||
nsDoomEvent(nsCacheSession *session,
|
||||
const nsACString &key,
|
||||
@@ -1321,7 +1321,7 @@ nsCacheService::EvictEntriesForSession(nsCacheSession * session)
|
||||
|
||||
namespace {
|
||||
|
||||
class EvictionNotifierRunnable : public nsRunnable
|
||||
class EvictionNotifierRunnable : public Runnable
|
||||
{
|
||||
public:
|
||||
explicit EvictionNotifierRunnable(nsISupports* aSubject)
|
||||
@@ -1638,7 +1638,7 @@ nsCacheService::CreateDiskDevice()
|
||||
}
|
||||
|
||||
// Runnable sent from cache thread to main thread
|
||||
class nsDisableOldMaxSmartSizePrefEvent: public nsRunnable
|
||||
class nsDisableOldMaxSmartSizePrefEvent: public Runnable
|
||||
{
|
||||
public:
|
||||
nsDisableOldMaxSmartSizePrefEvent() {}
|
||||
@@ -1848,7 +1848,7 @@ nsCacheService::CreateRequest(nsCacheSession * session,
|
||||
}
|
||||
|
||||
|
||||
class nsCacheListenerEvent : public nsRunnable
|
||||
class nsCacheListenerEvent : public Runnable
|
||||
{
|
||||
public:
|
||||
nsCacheListenerEvent(nsICacheListener *listener,
|
||||
|
||||
Reference in New Issue
Block a user