webengine/osswebengine/cache/src/HttpCacheManager.cpp
branchRCL_3
changeset 48 79859ed3eea9
parent 41 4bd5176e1bc8
child 49 919f36ff910f
equal deleted inserted replaced
47:e1bea15f9a39 48:79859ed3eea9
    14 * Description:  Implementation of CHttpCacheManager
    14 * Description:  Implementation of CHttpCacheManager
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // INCLUDE FILES
    18 // INCLUDE FILES
    19 #include "httpcachemanager.h"
    19 #include "HttpCacheManager.h"
    20 #include "HttpCacheHandler.h"
    20 #include "HttpCacheHandler.h"
    21 #include "HttpCacheUtil.h"
    21 #include "HttpCacheUtil.h"
    22 #include "HttpCacheFileWriteHandler.h"
    22 #include "HttpCacheFileWriteHandler.h"
    23 #include <CenRepNotifyHandler.h>
    23 #include <cenrepnotifyhandler.h>
    24 #include <httpcachemanagerinternalcrkeys.h>
    24 #include <httpcachemanagerinternalcrkeys.h>
    25 #include <CoreApplicationUIsSDKCRKeys.h>
    25 #include <CoreApplicationUIsSDKCRKeys.h>
    26 #include <centralrepository.h>
    26 #include <centralrepository.h>
    27 #include <FeatMgr.h>
    27 #include <featmgr.h>
    28 #include <http/RHTTPTransaction.h>
    28 #include <http/rhttptransaction.h>
    29 #include <SysUtilDomainCRKeys.h>
    29 #include <sysutildomaincrkeys.h>
    30 #include <eikenv.h>
    30 #include <eikenv.h>
    31 #include <f32file.h>
    31 #include <f32file.h>
    32 #include <e32hashtab.h>
    32 #include <e32hashtab.h>
    33 #include <mmf/common/mmfcontrollerpluginresolver.h>
    33 #include <mmf/common/mmfcontrollerpluginresolver.h>
    34 
    34 
   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     RFs fsSession;
   944     User::LeaveIfError(CCoeEnv::Static()->FsSession().Volume(vinfo, drive));
   945     User::LeaveIfError(fsSession.Connect());
   945     //
   946     CleanupClosePushL( fsSession );
       
   947     User::LeaveIfError(fsSession.Volume(vinfo, drive));
       
   948     User::LeaveIfError(aRepository.Get((vinfo.iDrive.iType == EMediaRam ? KRamDiskCriticalLevel : KDiskCriticalThreshold), aCriticalLevel));
   946     User::LeaveIfError(aRepository.Get((vinfo.iDrive.iType == EMediaRam ? KRamDiskCriticalLevel : KDiskCriticalThreshold), aCriticalLevel));
   949     CleanupStack::PopAndDestroy(&fsSession);
       
   950     }
   947     }
   951 
   948 
   952 void CHttpCacheManager::CreateHttpCacheL( const TInt& aSecIdInt, const TInt& aCacheSize, const TInt& aCriticalLevel, const THttpCachePostponeParameters& aPostpone )
   949 void CHttpCacheManager::CreateHttpCacheL( const TInt& aSecIdInt, const TInt& aCacheSize, const TInt& aCriticalLevel, const THttpCachePostponeParameters& aPostpone )
   953     {
   950     {
   954     // browser gets the normal index.dat name, other clients get <SID>.dat
   951     // browser gets the normal index.dat name, other clients get <SID>.dat