void BNetworkCookieJar::UrlIterator::_FindNext() { fLastIndex = fIndex; fLastElement = fElement; if (fLastList != NULL) fLastList->Unlock(); fLastList = fList; if (fLastList) fLastList->LockForReading(); if (fCookieJar->fCookieHashMap->Lock()) { while (!_FindPath()) { if (!_SuperDomain()) { fElement = NULL; fCookieJar->fCookieHashMap->Unlock(); return; } _FindDomain(); } fCookieJar->fCookieHashMap->Unlock(); } }
void BNetworkCookieJar::UrlIterator::_FindNext() { fLastIndex = fIndex; fLastElement = fElement; fLastList = fList; while (!_FindPath()) { if (!_SuperDomain()) { fElement = NULL; return; } _FindDomain(); } }