diff -r 79859ed3eea9 -r 919f36ff910f browserutilities/downloadmgr/DownloadMgrUiLib/Src/CDownloadUtils.cpp --- a/browserutilities/downloadmgr/DownloadMgrUiLib/Src/CDownloadUtils.cpp Tue Aug 31 16:17:46 2010 +0300 +++ b/browserutilities/downloadmgr/DownloadMgrUiLib/Src/CDownloadUtils.cpp Wed Sep 01 12:28:30 2010 +0100 @@ -20,14 +20,14 @@ // INCLUDE FILES #include "CDownloadUtils.h" #include "UiLibLogger.h" -#include +#include #include #include #include #include #include #include -#include +#include // LOCAL CONSTANTS AND MACROS #ifdef BRDO_WML_DISABLED_FF @@ -46,6 +46,7 @@ _LIT8(Krng, "application/vnd.nokia.ringing-tone"); _LIT8(Krn, "application/vnd.rn-realmedia"); _LIT8(Kpn, "application/x-pn-realmedia"); +_LIT8(KWmdrmLicenseResponseContentType,"application/vnd.ms-wmdrm.lic-resp" ); // ============================ MEMBER FUNCTIONS =============================== @@ -236,7 +237,7 @@ CleanupStack::PopAndDestroy( docHandler ); // docHandler if ( !(aContentType.Compare(KOma2RoContentType)) || !(aContentType.Compare(KOma2ProtectedRoType)) - || !(aContentType.Compare(KOma2TriggerContentType)) ) + || !(aContentType.Compare(KOma2TriggerContentType)) || !(aContentType.Compare(KWmdrmLicenseResponseContentType)) ) { canOpen = EFalse; } @@ -273,6 +274,11 @@ return EFalse; } #endif + else if ( !(aContentType.Compare(KOma2RoContentType)) || !(aContentType.Compare(KOma2ProtectedRoType)) + || !(aContentType.Compare(KOma2TriggerContentType)) || !(aContentType.Compare(KWmdrmLicenseResponseContentType)) ) + { + return EFalse; + } else { TBool canOpen( EFalse ); @@ -473,7 +479,7 @@ if (ret == KErrNone && (dataType.iConfidence == CApaDataRecognizerType::ECertain) || - (dataType.iConfidence == CApaDataRecognizerType::EProbable)) + (dataType.iConfidence == CApaDataRecognizerType::EProbable) ||(dataType.iConfidence == CApaDataRecognizerType::EPossible)) { // If the file type was found, try to match it to a known file type TPtrC8 mimeTypePtr = dataType.iDataType.Des8();