2012-08-01 23:02:29 -07: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/. */
|
|
|
|
|
2014-09-26 16:21:57 -07:00
|
|
|
include protocol PBackground;
|
2012-08-01 23:02:29 -07:00
|
|
|
include protocol PBlobStream;
|
|
|
|
include protocol PContent;
|
2014-06-10 22:44:13 -07:00
|
|
|
include protocol PContentBridge;
|
2012-08-01 23:02:29 -07:00
|
|
|
|
2012-08-02 23:25:30 -07:00
|
|
|
include DOMTypes;
|
|
|
|
|
2012-08-01 23:02:29 -07:00
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
|
2012-08-02 23:25:30 -07:00
|
|
|
union ResolveMysteryParams
|
|
|
|
{
|
|
|
|
NormalBlobConstructorParams;
|
|
|
|
FileBlobConstructorParams;
|
|
|
|
};
|
|
|
|
|
2014-09-26 16:21:57 -07:00
|
|
|
sync protocol PBlob
|
2012-08-01 23:02:29 -07:00
|
|
|
{
|
2014-09-26 16:21:57 -07:00
|
|
|
manager PBackground or PContent or PContentBridge;
|
2012-08-01 23:02:29 -07:00
|
|
|
manages PBlobStream;
|
|
|
|
|
|
|
|
both:
|
|
|
|
__delete__();
|
|
|
|
|
2014-09-26 16:21:57 -07:00
|
|
|
parent:
|
2014-10-07 16:09:55 -07:00
|
|
|
PBlobStream(uint64_t begin, uint64_t length);
|
2012-08-02 23:25:30 -07:00
|
|
|
|
|
|
|
ResolveMystery(ResolveMysteryParams params);
|
2014-09-26 16:21:57 -07:00
|
|
|
|
|
|
|
sync WaitForSliceCreation();
|
|
|
|
|
|
|
|
// Use only for testing!
|
|
|
|
sync GetFileId()
|
|
|
|
returns (int64_t fileId);
|
|
|
|
|
|
|
|
// Use only for testing!
|
|
|
|
sync GetFilePath()
|
|
|
|
returns (nsString filePath);
|
2012-08-01 23:02:29 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|