Bug 1248550 - Part 1: Move main idle maintenance logic into a new object Maintenance; r=khuey

This commit is contained in:
Jan Varga 2016-03-01 10:44:39 +01:00
parent b4c662fefb
commit 7548797440
4 changed files with 472 additions and 426 deletions

File diff suppressed because it is too large Load Diff

View File

@ -3773,6 +3773,7 @@ QuotaManager::OpenDirectory(PersistenceType aPersistenceType,
void void
QuotaManager::OpenDirectoryInternal(Nullable<PersistenceType> aPersistenceType, QuotaManager::OpenDirectoryInternal(Nullable<PersistenceType> aPersistenceType,
const OriginScope& aOriginScope, const OriginScope& aOriginScope,
Nullable<Client::Type> aClientType,
bool aExclusive, bool aExclusive,
OpenDirectoryListener* aOpenListener) OpenDirectoryListener* aOpenListener)
{ {
@ -3783,7 +3784,7 @@ QuotaManager::OpenDirectoryInternal(Nullable<PersistenceType> aPersistenceType,
EmptyCString(), EmptyCString(),
aOriginScope, aOriginScope,
Nullable<bool>(), Nullable<bool>(),
Nullable<Client::Type>(), Nullable<Client::Type>(aClientType),
aExclusive, aExclusive,
true, true,
aOpenListener); aOpenListener);
@ -5029,6 +5030,7 @@ NormalOriginOperationBase::Open()
QuotaManager::Get()->OpenDirectoryInternal(mPersistenceType, QuotaManager::Get()->OpenDirectoryInternal(mPersistenceType,
mOriginScope, mOriginScope,
Nullable<Client::Type>(),
mExclusive, mExclusive,
this); this);
} }

View File

@ -230,6 +230,7 @@ public:
void void
OpenDirectoryInternal(Nullable<PersistenceType> aPersistenceType, OpenDirectoryInternal(Nullable<PersistenceType> aPersistenceType,
const OriginScope& aOriginScope, const OriginScope& aOriginScope,
Nullable<Client::Type> aClientType,
bool aExclusive, bool aExclusive,
OpenDirectoryListener* aOpenListener); OpenDirectoryListener* aOpenListener);

View File

@ -16,6 +16,7 @@ EXPORTS.mozilla.dom.quota += [
'ActorsParent.h', 'ActorsParent.h',
'Client.h', 'Client.h',
'FileStreams.h', 'FileStreams.h',
'OriginScope.h',
'PersistenceType.h', 'PersistenceType.h',
'QuotaCommon.h', 'QuotaCommon.h',
'QuotaManager.h', 'QuotaManager.h',