50 #include <nsAutoPtr.h>
68 static PRLogModuleInfo* gHTTPMediaItemDownloadJobLog = nsnull;
69 #define TRACE(args) PR_LOG(gHTTPMediaItemDownloadJobLog, PR_LOG_DEBUG, args)
70 #define LOG(args) PR_LOG(gHTTPMediaItemDownloadJobLog, PR_LOG_WARN, args)
72 #define __FUNCTION__ __PRETTY_FUNCTION__
107 NS_ENSURE_ARG_POINTER(aJob);
108 NS_ENSURE_ARG_POINTER(aMediaItem);
114 nsRefPtr<sbHTTPMediaItemDownloadJob>
116 NS_ENSURE_TRUE(job, NS_ERROR_OUT_OF_MEMORY);
117 rv = job->Initialize();
118 NS_ENSURE_SUCCESS(rv, rv);
134 TRACE((
"%s[%.8x]", __FUNCTION__,
this));
149 sbHTTPMediaItemDownloadJob::sbHTTPMediaItemDownloadJob
156 if (!gHTTPMediaItemDownloadJobLog) {
157 gHTTPMediaItemDownloadJobLog =
158 PR_NewLogModule(
"sbHTTPMediaItemDownloadJob");
162 TRACE((
"%s[%.8x]", __FUNCTION__,
this));
Media library abstraction.