2015-05-03 22:32:37 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2014-10-08 20:15:23 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
#ifndef mozilla_dom_BlobSet_h
|
|
|
|
#define mozilla_dom_BlobSet_h
|
|
|
|
|
2016-06-23 12:58:22 +03:00
|
|
|
#include "mozilla/RefPtr.h"
|
2014-10-08 20:15:23 +04:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
|
2016-06-23 12:58:22 +03:00
|
|
|
class BlobImpl;
|
|
|
|
|
|
|
|
class BlobSet final
|
|
|
|
{
|
2014-10-08 20:15:23 +04:00
|
|
|
public:
|
|
|
|
nsresult AppendVoidPtr(const void* aData, uint32_t aLength);
|
2016-06-23 12:58:22 +03:00
|
|
|
|
|
|
|
nsresult AppendString(const nsAString& aString, bool nativeEOL,
|
|
|
|
JSContext* aCx);
|
|
|
|
|
2015-05-12 15:11:03 +03:00
|
|
|
nsresult AppendBlobImpl(BlobImpl* aBlobImpl);
|
2016-06-23 12:58:22 +03:00
|
|
|
|
2016-09-29 08:12:17 +03:00
|
|
|
nsTArray<RefPtr<BlobImpl>>& GetBlobImpls() { return mBlobImpls; }
|
2014-10-08 20:15:23 +04:00
|
|
|
|
2016-06-23 12:58:22 +03:00
|
|
|
private:
|
2015-10-18 08:24:48 +03:00
|
|
|
nsTArray<RefPtr<BlobImpl>> mBlobImpls;
|
2014-10-08 20:15:23 +04:00
|
|
|
};
|
|
|
|
|
2015-07-13 18:25:42 +03:00
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|
2014-10-08 20:15:23 +04:00
|
|
|
|
|
|
|
#endif // mozilla_dom_BlobSet_h
|