NS_NewMediaList(nsIMediaList** aInstancePtrResult) { return NS_NewMediaList(NS_LITERAL_STRING(""), aInstancePtrResult);
NS_NewMediaList(const nsAString& aMediaText, nsIMediaList** aInstancePtrResult) { nsresult rv; NS_ASSERTION(aInstancePtrResult, "Null out param.");  nsCOMPtr<nsISupportsArray> array; rv = NS_NewISupportsArray(getter_AddRefs(array)); if (NS_FAILED(rv)) { return NS_ERROR_OUT_OF_MEMORY; } DOMMediaListImpl* medialist = new DOMMediaListImpl(array, nsnull); *aInstancePtrResult = medialist; NS_ENSURE_TRUE(medialist, NS_ERROR_OUT_OF_MEMORY); NS_ADDREF(*aInstancePtrResult); rv = medialist->SetMediaText(aMediaText); if (NS_FAILED(rv)) { NS_RELEASE(*aInstancePtrResult); *aInstancePtrResult = nsnull; } return rv;
NS_NewMediaList(nsIMediaList** aInstancePtrResult) {  return NS_NewMediaList(NS_LITERAL_STRING(""), aInstancePtrResult);}