webengine/osswebengine/cache/src/HttpCacheManager.cpp
branchRCL_3
changeset 41 4bd5176e1bc8
parent 25 0ed94ceaa377
child 48 79859ed3eea9
equal deleted inserted replaced
40:8bfb9186a8b8 41:4bd5176e1bc8
   939     TDriveUnit drive = pathParser.Drive();
   939     TDriveUnit drive = pathParser.Drive();
   940 
   940 
   941     // get critical level
   941     // get critical level
   942     // RAM drive can have different critical level
   942     // RAM drive can have different critical level
   943     TVolumeInfo vinfo;
   943     TVolumeInfo vinfo;
   944     User::LeaveIfError(CCoeEnv::Static()->FsSession().Volume(vinfo, drive));
   944     RFs fsSession;
   945     //
   945     User::LeaveIfError(fsSession.Connect());
       
   946     CleanupClosePushL( fsSession );
       
   947     User::LeaveIfError(fsSession.Volume(vinfo, drive));
   946     User::LeaveIfError(aRepository.Get((vinfo.iDrive.iType == EMediaRam ? KRamDiskCriticalLevel : KDiskCriticalThreshold), aCriticalLevel));
   948     User::LeaveIfError(aRepository.Get((vinfo.iDrive.iType == EMediaRam ? KRamDiskCriticalLevel : KDiskCriticalThreshold), aCriticalLevel));
       
   949     CleanupStack::PopAndDestroy(&fsSession);
   947     }
   950     }
   948 
   951 
   949 void CHttpCacheManager::CreateHttpCacheL( const TInt& aSecIdInt, const TInt& aCacheSize, const TInt& aCriticalLevel, const THttpCachePostponeParameters& aPostpone )
   952 void CHttpCacheManager::CreateHttpCacheL( const TInt& aSecIdInt, const TInt& aCacheSize, const TInt& aCriticalLevel, const THttpCachePostponeParameters& aPostpone )
   950     {
   953     {
   951     // browser gets the normal index.dat name, other clients get <SID>.dat
   954     // browser gets the normal index.dat name, other clients get <SID>.dat