webengine/osswebengine/WebKit/s60/webview/WebPolicyManager.cpp
changeset 11 c8a366e56285
parent 0 dd21522fd290
child 25 0ed94ceaa377
equal deleted inserted replaced
10:a359256acfc6 11:c8a366e56285
    35 
    35 
    36 using namespace WebCore;
    36 using namespace WebCore;
    37 
    37 
    38 // CONSTANTS
    38 // CONSTANTS
    39 const char* typeTextHtml = "text/html";
    39 const char* typeTextHtml = "text/html";
       
    40 const char* typeTextXml = "text/xml";
    40 const char* typeApplicationXhtml = "application/xhtml+xml";
    41 const char* typeApplicationXhtml = "application/xhtml+xml";
    41 const char* typeTextPlain = "text/plain";
    42 const char* typeTextPlain = "text/plain";
    42 const char* typeApplicationWapXhtml = "application/vnd.wap.xhtml+xml";
    43 const char* typeApplicationWapXhtml = "application/vnd.wap.xhtml+xml";
    43 const char* typeMultipartMixed = "multipart/mixed";
    44 const char* typeMultipartMixed = "multipart/mixed";
    44 const char* typeApplicationOctetStream = "application/octet-stream";
    45 const char* typeApplicationOctetStream = "application/octet-stream";
   158     }
   159     }
   159 
   160 
   160     if (MIMEType == typeTextHtml ||
   161     if (MIMEType == typeTextHtml ||
   161         MIMEType == typeApplicationXhtml ||
   162         MIMEType == typeApplicationXhtml ||
   162         MIMEType == typeApplicationWapXhtml ||
   163         MIMEType == typeApplicationWapXhtml ||
   163         MIMEType == typeMultipartMixed) {
   164         MIMEType == typeMultipartMixed || 
       
   165         MIMEType == typeTextXml) {
   164         found = true;
   166         found = true;
   165     }
   167     }
   166     //Check if the image type can be handled by the browser. If not
   168     //Check if the image type can be handled by the browser. If not
   167     //forward download manager downloads the content
   169     //forward download manager downloads the content
   168     else if (MIMETypeRegistry::isSupportedImageMIMEType(MIMEType)){
   170     else if (MIMETypeRegistry::isSupportedImageMIMEType(MIMEType)){