2016-12-01 17:12:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
|
|
# vim: set filetype=python:
|
|
|
|
# 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/.
|
|
|
|
|
|
|
|
EXPORTS.mozilla.dom.ipc += [
|
|
|
|
'BlobChild.h',
|
|
|
|
'BlobParent.h',
|
Bug 1353629 - PBlob refactoring - part 4 - IPCBlobInputStream, r=smaug
IPCBlobInputStream is a new type of nsIInputStream that is used only in content
process when a Blob is sent from parent to child. This inputStream is for now,
just cloneable.
When the parent process sends a Blob to a content process, it has the Blob and
its inputStream. With its inputStream it creates a IPCBlobInputStreamParent
actor. This actor keeps the inputStream alive for following uses (not part of
this patch).
On the child side we will have, of course, a IPCBlobInputStreamChild actor.
This actor is able to create a IPCBlobInputStream when CreateStream() is
called. This means that 1 IPCBlobInputStreamChild can manage multiple
IPCBlobInputStreams each time one of them is cloned. When the last one of this
stream is released, the child actor sends a __delete__ request to the parent
side; the parent will be deleted, and the original inputStream, on the parent
side, will be released as well.
IPCBlobInputStream is a special inputStream because each method, except for
Available() fails. Basically, this inputStream cannot be used on the content
process for nothing else than knowing the size of the original stream.
In the following patches, I'll introduce an async way to use it.
2017-04-24 13:09:40 +03:00
|
|
|
'IPCBlobInputStream.h',
|
|
|
|
'IPCBlobInputStreamChild.h',
|
|
|
|
'IPCBlobInputStreamParent.h',
|
2017-04-24 13:09:40 +03:00
|
|
|
'IPCBlobInputStreamStorage.h',
|
2017-03-29 11:40:38 +03:00
|
|
|
'MemoryStreamChild.h',
|
|
|
|
'MemoryStreamParent.h',
|
2016-12-01 17:12:42 +03:00
|
|
|
'nsIRemoteBlob.h',
|
|
|
|
]
|
|
|
|
|
2017-04-24 13:09:40 +03:00
|
|
|
EXPORTS.mozilla.dom += [
|
|
|
|
'IPCBlobUtils.h',
|
|
|
|
]
|
|
|
|
|
2016-12-01 17:12:42 +03:00
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'Blob.cpp',
|
Bug 1353629 - PBlob refactoring - part 4 - IPCBlobInputStream, r=smaug
IPCBlobInputStream is a new type of nsIInputStream that is used only in content
process when a Blob is sent from parent to child. This inputStream is for now,
just cloneable.
When the parent process sends a Blob to a content process, it has the Blob and
its inputStream. With its inputStream it creates a IPCBlobInputStreamParent
actor. This actor keeps the inputStream alive for following uses (not part of
this patch).
On the child side we will have, of course, a IPCBlobInputStreamChild actor.
This actor is able to create a IPCBlobInputStream when CreateStream() is
called. This means that 1 IPCBlobInputStreamChild can manage multiple
IPCBlobInputStreams each time one of them is cloned. When the last one of this
stream is released, the child actor sends a __delete__ request to the parent
side; the parent will be deleted, and the original inputStream, on the parent
side, will be released as well.
IPCBlobInputStream is a special inputStream because each method, except for
Available() fails. Basically, this inputStream cannot be used on the content
process for nothing else than knowing the size of the original stream.
In the following patches, I'll introduce an async way to use it.
2017-04-24 13:09:40 +03:00
|
|
|
'IPCBlobInputStream.cpp',
|
|
|
|
'IPCBlobInputStreamChild.cpp',
|
|
|
|
'IPCBlobInputStreamParent.cpp',
|
2017-04-24 13:09:40 +03:00
|
|
|
'IPCBlobInputStreamStorage.cpp',
|
2017-04-24 13:09:40 +03:00
|
|
|
'IPCBlobUtils.cpp',
|
2017-03-29 11:40:38 +03:00
|
|
|
'MemoryStreamParent.cpp',
|
2016-12-01 17:12:42 +03:00
|
|
|
]
|
|
|
|
|
|
|
|
IPDL_SOURCES += [
|
|
|
|
'BlobTypes.ipdlh',
|
2017-04-24 13:09:40 +03:00
|
|
|
'IPCBlob.ipdlh',
|
2016-12-01 17:12:42 +03:00
|
|
|
'PBlob.ipdl',
|
|
|
|
'PBlobStream.ipdl',
|
Bug 1353629 - PBlob refactoring - part 4 - IPCBlobInputStream, r=smaug
IPCBlobInputStream is a new type of nsIInputStream that is used only in content
process when a Blob is sent from parent to child. This inputStream is for now,
just cloneable.
When the parent process sends a Blob to a content process, it has the Blob and
its inputStream. With its inputStream it creates a IPCBlobInputStreamParent
actor. This actor keeps the inputStream alive for following uses (not part of
this patch).
On the child side we will have, of course, a IPCBlobInputStreamChild actor.
This actor is able to create a IPCBlobInputStream when CreateStream() is
called. This means that 1 IPCBlobInputStreamChild can manage multiple
IPCBlobInputStreams each time one of them is cloned. When the last one of this
stream is released, the child actor sends a __delete__ request to the parent
side; the parent will be deleted, and the original inputStream, on the parent
side, will be released as well.
IPCBlobInputStream is a special inputStream because each method, except for
Available() fails. Basically, this inputStream cannot be used on the content
process for nothing else than knowing the size of the original stream.
In the following patches, I'll introduce an async way to use it.
2017-04-24 13:09:40 +03:00
|
|
|
'PIPCBlobInputStream.ipdl',
|
2017-03-29 11:40:38 +03:00
|
|
|
'PMemoryStream.ipdl',
|
2016-12-01 17:12:42 +03:00
|
|
|
]
|
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/dom/file',
|
|
|
|
'/dom/ipc',
|
|
|
|
'/dom/workers',
|
|
|
|
]
|
|
|
|
|
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
|
|
|
FINAL_LIBRARY = 'xul'
|
|
|
|
|
|
|
|
CXXFLAGS += CONFIG['TK_CFLAGS']
|
|
|
|
|
|
|
|
if CONFIG['GNU_CXX']:
|
|
|
|
CXXFLAGS += ['-Wno-error=shadow']
|
2017-04-24 13:09:41 +03:00
|
|
|
|
|
|
|
BROWSER_CHROME_MANIFESTS += ['tests/browser.ini']
|