webengine/osswebengine/WebCore/platform/network/symbian/SelfDownloadContentHandler.cpp
changeset 11 c8a366e56285
parent 0 dd21522fd290
child 25 0ed94ceaa377
equal deleted inserted replaced
10:a359256acfc6 11:c8a366e56285
    27 #include "ResourceResponse.h"
    27 #include "ResourceResponse.h"
    28 #include "WebFrame.h"
    28 #include "WebFrame.h"
    29 #include "StaticObjectsContainer.h"
    29 #include "StaticObjectsContainer.h"
    30 #include "ResourceLoaderDelegate.h"
    30 #include "ResourceLoaderDelegate.h"
    31 #include "HttpSessionManager.h"
    31 #include "HttpSessionManager.h"
       
    32 #include "HttpFilterCommonStringsExt.h"
    32 #include <Uri8.h>
    33 #include <Uri8.h>
    33 #include <http/rhttptransaction.h>
    34 #include <http/rhttptransaction.h>
    34 #include <http/mhttpdatasupplier.h>
    35 #include <http/mhttpdatasupplier.h>
    35 #include <http/rhttpsession.h>
    36 #include <http/rhttpsession.h>
    36 
    37 
    37 // CONSTANTS
    38 // CONSTANTS
    38 _LIT(KTempFilePath, "c:\\system\\temp\\browser\\");
    39 _LIT(KTempFilePath, "c:\\system\\temp\\browser\\");
    39 
       
    40 
    40 
    41 // -----------------------------------------------------------------------------
    41 // -----------------------------------------------------------------------------
    42 // CTempFile::CTempFile
    42 // CTempFile::CTempFile
    43 // C++ default constructor can NOT contain any code, that
    43 // C++ default constructor can NOT contain any code, that
    44 // might leave.
    44 // might leave.
   403         // returns and file no longer needed?
   403         // returns and file no longer needed?
   404 		
   404 		
   405 		// remove the selfDownloadCallbackStr property
   405 		// remove the selfDownloadCallbackStr property
   406         RHTTPTransactionPropertySet propSet = httpTransaction.PropertySet();
   406         RHTTPTransactionPropertySet propSet = httpTransaction.PropertySet();
   407 		RStringPool strPool = httpTransaction.Session().StringPool();
   407 		RStringPool strPool = httpTransaction.Session().StringPool();
   408 		RStringF selfDownloadCallbackStr = strPool.OpenFStringL( KSelfDownloadCallback );
   408 
   409 		CleanupClosePushL<RStringF>( selfDownloadCallbackStr);
   409 		propSet.RemoveProperty( strPool.StringF(HttpFilterCommonStringsExt::ESelfDownloadCallback,
   410 		propSet.RemoveProperty(selfDownloadCallbackStr);
   410                                     HttpFilterCommonStringsExt::GetTable()) );
   411 		CleanupStack::PopAndDestroy(); // selfDownloadCallbackStr
       
   412     }
   411     }
   413 	StaticObjectsContainer::instance()->resourceLoaderDelegate()->httpSessionManager()->ResetOutstandingSelfDl();
   412 	StaticObjectsContainer::instance()->resourceLoaderDelegate()->httpSessionManager()->ResetOutstandingSelfDl();
   414     return status;
   413     return status;
   415 }
   414 }
   416 
   415