Exemple #1
0
/* static */ void
URLMainThread::CreateObjectURL(const GlobalObject& aGlobal, Blob& aBlob,
                               nsAString& aResult, ErrorResult& aRv)
{
  MOZ_ASSERT(NS_IsMainThread());
  CreateObjectURLInternal(aGlobal, aBlob.Impl(), aResult, aRv);
}
Exemple #2
0
 static void
 CreateObjectURL(const GlobalObject& aGlobal, DOMMediaStream& aStream,
                 const objectURLOptions& aOptions, nsAString& aResult,
                 ErrorResult& aRv)
 {
   MOZ_ASSERT(NS_IsMainThread());
   CreateObjectURLInternal(aGlobal, &aStream, aResult, aRv);
 }
Exemple #3
0
 static void
 CreateObjectURL(const GlobalObject& aGlobal, Blob& aBlob,
                 const objectURLOptions& aOptions, nsAString& aResult,
                 ErrorResult& aRv)
 {
   MOZ_ASSERT(NS_IsMainThread());
   CreateObjectURLInternal(aGlobal, aBlob.Impl(), aResult, aRv);
 }
Exemple #4
0
/* static */ void
URLMainThread::CreateObjectURL(const GlobalObject& aGlobal,
                               DOMMediaStream& aStream,
                               nsAString& aResult, ErrorResult& aRv)
{
  MOZ_ASSERT(NS_IsMainThread());
  CreateObjectURLInternal(aGlobal, &aStream, aResult, aRv);
}
Exemple #5
0
void
URL::CreateObjectURL(nsISupports* aGlobal, nsIDOMMediaStream* aStream,
                     const mozilla::dom::objectURLOptions& aOptions,
                     nsAString& aResult,
                     ErrorResult& aError)
{
  CreateObjectURLInternal(aGlobal, aStream, NS_LITERAL_CSTRING(MEDIASTREAMURI_SCHEME),
                          aOptions, aResult, aError);
}
Exemple #6
0
void
URL::CreateObjectURL(nsISupports* aGlobal, nsIDOMBlob* aBlob,
                     const objectURLOptions& aOptions,
                     nsAString& aResult,
                     ErrorResult& aError)
{
  CreateObjectURLInternal(aGlobal, aBlob, NS_LITERAL_CSTRING(BLOBURI_SCHEME),
                          aOptions, aResult, aError);
}
Exemple #7
0
void
URL::CreateObjectURL(const GlobalObject& aGlobal, MediaSource& aSource,
                     const objectURLOptions& aOptions,
                     nsString& aResult,
                     ErrorResult& aError)
{
  CreateObjectURLInternal(aGlobal, &aSource,
                          NS_LITERAL_CSTRING(MEDIASOURCEURI_SCHEME), aOptions,
                          aResult, aError);
}
Exemple #8
0
void
URL::CreateObjectURL(const GlobalObject& aGlobal, DOMMediaStream& aStream,
                     const mozilla::dom::objectURLOptions& aOptions,
                     nsString& aResult,
                     ErrorResult& aError)
{
  CreateObjectURLInternal(aGlobal, &aStream,
                          NS_LITERAL_CSTRING(MEDIASTREAMURI_SCHEME), aOptions,
                          aResult, aError);
}
Exemple #9
0
void
URL::CreateObjectURL(const GlobalObject& aGlobal,
                     Blob& aBlob,
                     const objectURLOptions& aOptions,
                     nsAString& aResult,
                     ErrorResult& aError)
{
  CreateObjectURLInternal(aGlobal, aBlob.Impl(),
                          NS_LITERAL_CSTRING(BLOBURI_SCHEME), aOptions, aResult,
                          aError);
}
Exemple #10
0
void
URL::CreateObjectURL(const GlobalObject& aGlobal,
                     nsIDOMBlob* aBlob,
                     const objectURLOptions& aOptions,
                     nsString& aResult,
                     ErrorResult& aError)
{
  DOMFile* blob = static_cast<DOMFile*>(aBlob);
  MOZ_ASSERT(blob);

  CreateObjectURLInternal(aGlobal, blob->Impl(),
                          NS_LITERAL_CSTRING(BLOBURI_SCHEME), aOptions, aResult,
                          aError);
}