Bug 1047483 - patch 1 - Porting DOMFile/DOMBlob to WebIDL, r=bz, r=bkelly, r=bholley

This commit is contained in:
Andrea Marchesini
2014-10-08 17:15:22 +01:00
parent 92a507f3f6
commit 539efa95b3
149 changed files with 1813 additions and 2304 deletions

View File

@@ -11,12 +11,12 @@
#include "nsAutoPtr.h"
#include "mozilla/ErrorResult.h"
class nsIDOMBlob;
class nsIInputStream;
namespace mozilla {
namespace dom {
class DOMFile;
class DOMFileImpl;
class Promise;
@@ -26,7 +26,7 @@ class CreateFileTask MOZ_FINAL
public:
CreateFileTask(FileSystemBase* aFileSystem,
const nsAString& aPath,
nsIDOMBlob* aBlobData,
DOMFile* aBlobData,
InfallibleTArray<uint8_t>& aArrayData,
bool replace,
ErrorResult& aRv);
@@ -68,7 +68,7 @@ private:
nsString mTargetRealPath;
// Not thread-safe and should be released on main thread.
nsCOMPtr<nsIDOMBlob> mBlobData;
nsRefPtr<DOMFile> mBlobData;
nsCOMPtr<nsIInputStream> mBlobStream;
InfallibleTArray<uint8_t> mArrayData;