Bug 844905 - Change MediaResource::GetContentType return type to nsCString. r=cpearce

This commit is contained in:
Jacek Caban 2013-02-26 12:02:20 +01:00
Родитель 7f34829d6d
Коммит edf78018f2
3 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -136,7 +136,7 @@ public:
bool IsTransportSeekable() MOZ_OVERRIDE { return true; }
virtual const nsACString& GetContentType() const MOZ_OVERRIDE
virtual const nsCString& GetContentType() const MOZ_OVERRIDE
{
return mContentType;
}

Просмотреть файл

@ -371,7 +371,7 @@ public:
// Returns the content type of the resource. This is copied from the
// nsIChannel when the MediaResource is created. Safe to call from
// any thread.
virtual const nsACString& GetContentType() const = 0;
virtual const nsCString& GetContentType() const = 0;
};
class BaseMediaResource : public MediaResource {
@ -398,7 +398,7 @@ protected:
MOZ_COUNT_DTOR(BaseMediaResource);
}
virtual const nsACString& GetContentType() const MOZ_OVERRIDE
virtual const nsCString& GetContentType() const MOZ_OVERRIDE
{
return mContentType;
}

Просмотреть файл

@ -162,7 +162,7 @@ WMFByteStream::Init()
contentTypeUTF16.get());
NS_ENSURE_TRUE(SUCCEEDED(hr), NS_ERROR_FAILURE);
LOG("WMFByteStream has Content-Type=%s", mResource->GetContentType());
LOG("WMFByteStream has Content-Type=%s", mResource->GetContentType().get());
}
return NS_OK;
}