equal
deleted
inserted
replaced
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"; |
|
41 const char* typeApplicationXhtml = "application/xhtml+xml"; |
40 const char* typeApplicationXhtml = "application/xhtml+xml"; |
42 const char* typeTextPlain = "text/plain"; |
41 const char* typeTextPlain = "text/plain"; |
43 const char* typeApplicationWapXhtml = "application/vnd.wap.xhtml+xml"; |
42 const char* typeApplicationWapXhtml = "application/vnd.wap.xhtml+xml"; |
44 const char* typeMultipartMixed = "multipart/mixed"; |
43 const char* typeMultipartMixed = "multipart/mixed"; |
45 const char* typeApplicationOctetStream = "application/octet-stream"; |
44 const char* typeApplicationOctetStream = "application/octet-stream"; |
159 } |
158 } |
160 |
159 |
161 if (MIMEType == typeTextHtml || |
160 if (MIMEType == typeTextHtml || |
162 MIMEType == typeApplicationXhtml || |
161 MIMEType == typeApplicationXhtml || |
163 MIMEType == typeApplicationWapXhtml || |
162 MIMEType == typeApplicationWapXhtml || |
164 MIMEType == typeMultipartMixed || |
163 MIMEType == typeMultipartMixed) { |
165 MIMEType == typeTextXml) { |
|
166 found = true; |
164 found = true; |
167 } |
165 } |
168 //Check if the image type can be handled by the browser. If not |
166 //Check if the image type can be handled by the browser. If not |
169 //forward download manager downloads the content |
167 //forward download manager downloads the content |
170 else if (MIMETypeRegistry::isSupportedImageMIMEType(MIMEType)){ |
168 else if (MIMETypeRegistry::isSupportedImageMIMEType(MIMEType)){ |