Bug 1624588 - dom/file/ipc sources now also build when not unified r=baku

Missing includes, namespace-related issues, and missing template instantiations added to make sources compile without unifying.

Differential Revision: https://phabricator.services.mozilla.com/D68142

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Subhamoy Sengupta 2020-03-25 12:45:59 +00:00
Родитель a2417944d2
Коммит 8f9e4e8061
8 изменённых файлов: 20 добавлений и 3 удалений

2
dom/cache/CacheStreamControlChild.cpp поставляемый
Просмотреть файл

@ -4,7 +4,7 @@
* 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/. */
#include "mozilla/dom/cache/CacheStreamControlChild.h"
#include "CacheStreamControlChild.h"
#include "mozilla/Unused.h"
#include "mozilla/dom/cache/ActorUtils.h"

Просмотреть файл

@ -21,6 +21,8 @@
namespace mozilla {
namespace dom {
class IPCBlobInputStream;
namespace {
class InputStreamCallbackRunnable final : public CancelableRunnable {

Просмотреть файл

@ -8,6 +8,7 @@
#define mozilla_dom_IPCBlobInputStreamChild_h
#include "mozilla/dom/PIPCBlobInputStreamChild.h"
#include "mozilla/dom/IPCBlobInputStream.h"
#include "mozilla/Mutex.h"
#include "mozilla/UniquePtr.h"
#include "nsTArray.h"

Просмотреть файл

@ -46,6 +46,16 @@ already_AddRefed<IPCBlobInputStreamParent> IPCBlobInputStreamParent::Create(
return actor.forget();
}
template already_AddRefed<IPCBlobInputStreamParent>
IPCBlobInputStreamParent::Create<mozilla::ipc::PBackgroundParent>(
nsIInputStream*, unsigned long, unsigned long, nsresult*,
mozilla::ipc::PBackgroundParent*);
template already_AddRefed<IPCBlobInputStreamParent>
IPCBlobInputStreamParent::Create<ContentParent>(nsIInputStream*, unsigned long,
unsigned long, nsresult*,
ContentParent*);
IPCBlobInputStreamParent::IPCBlobInputStreamParent(const nsID& aID,
uint64_t aSize,
ContentParent* aManager)

Просмотреть файл

@ -5,7 +5,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "IPCBlobInputStreamStorage.h"
#include "mozilla/SlicedInputStream.h"
#include "mozilla/dom/ContentParent.h"
#include "mozilla/StaticMutex.h"
#include "mozilla/StaticPtr.h"

Просмотреть файл

@ -7,8 +7,10 @@
#ifndef mozilla_dom_IPCBlobInputStreamThread_h
#define mozilla_dom_IPCBlobInputStreamThread_h
#include "mozilla/dom/IPCBlobInputStreamChild.h"
#include "nsIEventTarget.h"
#include "nsIObserver.h"
#include "nsTArray.h"
class nsIThread;

Просмотреть файл

@ -6,6 +6,7 @@
#include "TemporaryIPCBlobChild.h"
#include "mozilla/dom/MutableBlobStorage.h"
#include "mozilla/dom/IPCBlobUtils.h"
#include <private/pprio.h>
namespace mozilla {

Просмотреть файл

@ -4,11 +4,12 @@
* 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/. */
#include "private/pprio.h"
#include "TemporaryIPCBlobParent.h"
#include "mozilla/dom/FileBlobImpl.h"
#include "nsAnonymousTemporaryFile.h"
#include "TemporaryFileBlobImpl.h"
#include "mozilla/dom/IPCBlobUtils.h"
namespace mozilla {
namespace dom {