28 #include <sbIDeviceCapabilities.h>
38 sbDeviceCapabilitiesUtils::~sbDeviceCapabilitiesUtils()
43 sbDeviceCapabilitiesUtils::MapContentTypeToFileExtensions(
44 const nsAString &aMimeType,
45 PRUint32 aContentType,
48 nsTArray<nsCString> fileExtensions;
50 for (PRUint32 index = 0;
57 if (aMimeType.EqualsLiteral(entry.
MimeType) &&
60 fileExtensions.AppendElement(entry.
Extension);
64 nsCOMPtr<nsIStringEnumerator> fileExtensionEnum =
66 NS_ENSURE_TRUE(fileExtensionEnum, NS_ERROR_OUT_OF_MEMORY);
68 fileExtensionEnum.forget(_retval);
PRUint32 const MAP_FILE_EXTENSION_CONTENT_FORMAT_LENGTH
NS_IMPL_ISUPPORTS1(sbDeviceCapabilitiesUtils, sbIDeviceCapabilitiesUtils) sbDeviceCapabilitiesUtils
sbExtensionToContentFormatEntry_t const MAP_FILE_EXTENSION_CONTENT_FORMAT[]
Temporary interface to allow us to access the mime-type -> file extension mappings in sbDeviceUtils...