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

View File

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

View File

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