Skip to content

Commit

Permalink
Bug 1545758 - Move dom/file IPC components into mozilla::dom namespac…
Browse files Browse the repository at this point in the history
…e - PendingIPCBlob actors, r=qdot

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

--HG--
extra : moz-landing-system : lando
  • Loading branch information
bakulf committed Apr 26, 2019
1 parent de92529 commit 69fd7c5
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 29 deletions.
2 changes: 1 addition & 1 deletion dom/file/ipc/PPendingIPCBlob.ipdl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include protocol PBackground;
include IPCBlob;

namespace mozilla {
namespace ipc {
namespace dom {

// IndexedDB and FileHandle do not know all the Blob/File properties when they
// create a IPCBlob. For this reason, they need to use this simple protocol.
Expand Down
12 changes: 6 additions & 6 deletions dom/file/ipc/PendingIPCBlobChild.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
* 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_ipc_PendingIPCBlobChild_h
#define mozilla_dom_ipc_PendingIPCBlobChild_h
#ifndef mozilla_dom_PendingIPCBlobChild_h
#define mozilla_dom_PendingIPCBlobChild_h

#include "mozilla/ipc/PPendingIPCBlob.h"
#include "mozilla/ipc/PPendingIPCBlobChild.h"
#include "mozilla/dom/PPendingIPCBlob.h"
#include "mozilla/dom/PPendingIPCBlobChild.h"

namespace mozilla {
namespace dom {

class BlobImpl;

class PendingIPCBlobChild final : public mozilla::ipc::PPendingIPCBlobChild {
class PendingIPCBlobChild final : public PPendingIPCBlobChild {
public:
explicit PendingIPCBlobChild(const IPCBlob& aBlob);

Expand All @@ -39,4 +39,4 @@ class PendingIPCBlobChild final : public mozilla::ipc::PPendingIPCBlobChild {
} // namespace dom
} // namespace mozilla

#endif // mozilla_dom_ipc_PendingIPCBlobChild_h
#endif // mozilla_dom_PendingIPCBlobChild_h
10 changes: 5 additions & 5 deletions dom/file/ipc/PendingIPCBlobParent.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
* 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_ipc_PendingIPCBlobParent_h
#define mozilla_dom_ipc_PendingIPCBlobParent_h
#ifndef mozilla_dom_PendingIPCBlobParent_h
#define mozilla_dom_PendingIPCBlobParent_h

#include "mozilla/ipc/PPendingIPCBlobParent.h"
#include "mozilla/dom/PPendingIPCBlobParent.h"

namespace mozilla {

Expand All @@ -19,7 +19,7 @@ namespace dom {

class BlobImpl;

class PendingIPCBlobParent final : public mozilla::ipc::PPendingIPCBlobParent {
class PendingIPCBlobParent final : public PPendingIPCBlobParent {
public:
static PendingIPCBlobParent* Create(PBackgroundParent* aManager,
BlobImpl* aBlobImpl);
Expand All @@ -38,4 +38,4 @@ class PendingIPCBlobParent final : public mozilla::ipc::PPendingIPCBlobParent {
} // namespace dom
} // namespace mozilla

#endif // mozilla_dom_ipc_PendingIPCBlobParent_h
#endif // mozilla_dom_PendingIPCBlobParent_h
4 changes: 2 additions & 2 deletions dom/file/ipc/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ EXPORTS.mozilla.dom += [
'FileCreatorChild.h',
'FileCreatorParent.h',
'IPCBlobUtils.h',
'PendingIPCBlobChild.h',
'PendingIPCBlobParent.h',
]

EXPORTS.mozilla.dom.ipc += [
'IPCBlobInputStream.h',
'IPCBlobInputStreamChild.h',
'IPCBlobInputStreamParent.h',
'IPCBlobInputStreamStorage.h',
'PendingIPCBlobChild.h',
'PendingIPCBlobParent.h',
'TemporaryIPCBlobChild.h',
'TemporaryIPCBlobParent.h',
]
Expand Down
2 changes: 1 addition & 1 deletion dom/filehandle/ActorsParent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include "mozilla/dom/indexedDB/ActorsParent.h"
#include "mozilla/dom/indexedDB/PBackgroundIDBDatabaseParent.h"
#include "mozilla/dom/IPCBlobUtils.h"
#include "mozilla/dom/ipc/PendingIPCBlobParent.h"
#include "mozilla/dom/PendingIPCBlobParent.h"
#include "mozilla/dom/quota/MemoryOutputStream.h"
#include "nsAutoPtr.h"
#include "nsComponentManagerUtils.h"
Expand Down
2 changes: 1 addition & 1 deletion dom/indexedDB/ActorsChild.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
#include "mozilla/dom/PermissionMessageUtils.h"
#include "mozilla/dom/BrowserChild.h"
#include "mozilla/dom/indexedDB/PBackgroundIDBDatabaseFileChild.h"
#include "mozilla/dom/ipc/PendingIPCBlobChild.h"
#include "mozilla/dom/IPCBlobUtils.h"
#include "mozilla/dom/PendingIPCBlobChild.h"
#include "mozilla/dom/WorkerPrivate.h"
#include "mozilla/dom/WorkerRunnable.h"
#include "mozilla/Encoding.h"
Expand Down
8 changes: 4 additions & 4 deletions ipc/glue/BackgroundChildImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
#include "mozilla/dom/PFileSystemRequestChild.h"
#include "mozilla/dom/EndpointForReportChild.h"
#include "mozilla/dom/FileSystemTaskBase.h"
#include "mozilla/dom/PendingIPCBlobChild.h"
#include "mozilla/dom/cache/ActorUtils.h"
#include "mozilla/dom/indexedDB/PBackgroundIDBFactoryChild.h"
#include "mozilla/dom/indexedDB/PBackgroundIndexedDBUtilsChild.h"
#include "mozilla/dom/ipc/IPCBlobInputStreamChild.h"
#include "mozilla/dom/ipc/PendingIPCBlobChild.h"
#include "mozilla/dom/ipc/TemporaryIPCBlobChild.h"
#include "mozilla/dom/IPCBlobUtils.h"
#include "mozilla/dom/quota/PQuotaChild.h"
Expand Down Expand Up @@ -310,13 +310,13 @@ bool BackgroundChildImpl::DeallocPBackgroundStorageChild(
return true;
}

PPendingIPCBlobChild* BackgroundChildImpl::AllocPPendingIPCBlobChild(
dom::PPendingIPCBlobChild* BackgroundChildImpl::AllocPPendingIPCBlobChild(
const IPCBlob& aBlob) {
return new mozilla::dom::PendingIPCBlobChild(aBlob);
return new dom::PendingIPCBlobChild(aBlob);
}

bool BackgroundChildImpl::DeallocPPendingIPCBlobChild(
PPendingIPCBlobChild* aActor) {
dom::PPendingIPCBlobChild* aActor) {
delete aActor;
return true;
}
Expand Down
8 changes: 4 additions & 4 deletions ipc/glue/BackgroundParentImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
#include "mozilla/dom/PGamepadEventChannelParent.h"
#include "mozilla/dom/PGamepadTestChannelParent.h"
#include "mozilla/dom/MessagePortParent.h"
#include "mozilla/dom/PendingIPCBlobParent.h"
#include "mozilla/dom/ServiceWorkerActors.h"
#include "mozilla/dom/ServiceWorkerManagerParent.h"
#include "mozilla/dom/ServiceWorkerRegistrar.h"
#include "mozilla/dom/StorageActivityService.h"
#include "mozilla/dom/cache/ActorUtils.h"
#include "mozilla/dom/indexedDB/ActorsParent.h"
#include "mozilla/dom/ipc/IPCBlobInputStreamParent.h"
#include "mozilla/dom/ipc/PendingIPCBlobParent.h"
#include "mozilla/dom/ipc/TemporaryIPCBlobParent.h"
#include "mozilla/dom/IPCBlobUtils.h"
#include "mozilla/dom/localstorage/ActorsParent.h"
Expand Down Expand Up @@ -468,13 +468,13 @@ bool BackgroundParentImpl::DeallocPBackgroundStorageParent(
return mozilla::dom::DeallocPBackgroundStorageParent(aActor);
}

PPendingIPCBlobParent* BackgroundParentImpl::AllocPPendingIPCBlobParent(
const IPCBlob& aBlob) {
mozilla::dom::PPendingIPCBlobParent*
BackgroundParentImpl::AllocPPendingIPCBlobParent(const IPCBlob& aBlob) {
MOZ_CRASH("PPendingIPCBlobParent actors should be manually constructed!");
}

bool BackgroundParentImpl::DeallocPPendingIPCBlobParent(
PPendingIPCBlobParent* aActor) {
mozilla::dom::PPendingIPCBlobParent* aActor) {
AssertIsInMainOrSocketProcess();
AssertIsOnBackgroundThread();
MOZ_ASSERT(aActor);
Expand Down
5 changes: 0 additions & 5 deletions ipc/ipdl/ipdl/direct_call.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,6 @@

("PMedia", "child"): ("Child", "mozilla/media/MediaChild.h"),

("PPendingIPCBlob", "child"): ("PendingIPCBlobChild", "mozilla/dom/ipc/PendingIPCBlobChild.h"),
("PPendingIPCBlob", "parent"): (
"mozilla::dom::PendingIPCBlobParent", "mozilla/dom/ipc/PendingIPCBlobParent.h"
),

("PPresentationRequest", "child"): (
"PresentationRequestChild", "mozilla/dom/PresentationChild.h"
),
Expand Down

0 comments on commit 69fd7c5

Please sign in to comment.