summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2020-04-20 20:06:44 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-04-20 20:06:44 +0200
commitbbe05037998261a7b5323acc123d038e45c83b77 (patch)
treedeb8369754b0daf2649a9e22f19b8c627abaa181
parentfd1e35f8d507f22f3fff546004ebaaa145c47d90 (diff)
downloadUXP-master.tar
UXP-master.tar.gz
UXP-master.tar.lz
UXP-master.tar.xz
UXP-master.zip
Issue #80 - De-unify dom/networkHEADmaster
-rw-r--r--dom/network/TCPServerSocketParent.cpp5
-rw-r--r--dom/network/TCPSocket.cpp2
-rw-r--r--dom/network/TCPSocketParent.cpp1
-rw-r--r--dom/network/UDPSocket.cpp2
-rw-r--r--dom/network/UDPSocketChild.cpp2
-rw-r--r--dom/network/UDPSocketParent.cpp5
-rw-r--r--dom/network/moz.build2
7 files changed, 17 insertions, 2 deletions
diff --git a/dom/network/TCPServerSocketParent.cpp b/dom/network/TCPServerSocketParent.cpp
index 8f98d8b78..aec0ad198 100644
--- a/dom/network/TCPServerSocketParent.cpp
+++ b/dom/network/TCPServerSocketParent.cpp
@@ -4,15 +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/. */
+#include "TCPServerSocketParent.h"
+
#include "nsIScriptSecurityManager.h"
+#include "TCPSocket.h"
#include "TCPServerSocket.h"
-#include "TCPServerSocketParent.h"
#include "nsJSUtils.h"
#include "TCPSocketParent.h"
#include "mozilla/Unused.h"
#include "mozilla/AppProcessChecker.h"
#include "mozilla/dom/ContentParent.h"
#include "mozilla/dom/TabParent.h"
+#include "mozilla/dom/TCPServerSocketEvent.h"
namespace mozilla {
namespace dom {
diff --git a/dom/network/TCPSocket.cpp b/dom/network/TCPSocket.cpp
index 38827a9ac..3f4fb696e 100644
--- a/dom/network/TCPSocket.cpp
+++ b/dom/network/TCPSocket.cpp
@@ -6,7 +6,9 @@
#include "mozilla/ErrorResult.h"
#include "TCPSocket.h"
#include "TCPServerSocket.h"
+#include "TCPSocketParent.h"
#include "TCPSocketChild.h"
+#include "mozilla/Unused.h"
#include "mozilla/dom/DOMError.h"
#include "mozilla/dom/TCPSocketBinding.h"
#include "mozilla/dom/TCPSocketErrorEvent.h"
diff --git a/dom/network/TCPSocketParent.cpp b/dom/network/TCPSocketParent.cpp
index 54167234e..5fd53067d 100644
--- a/dom/network/TCPSocketParent.cpp
+++ b/dom/network/TCPSocketParent.cpp
@@ -5,6 +5,7 @@
* You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "TCPSocketParent.h"
+#include "TCPSocket.h"
#include "jsapi.h"
#include "jsfriendapi.h"
#include "nsJSUtils.h"
diff --git a/dom/network/UDPSocket.cpp b/dom/network/UDPSocket.cpp
index e275e3902..3e18463ae 100644
--- a/dom/network/UDPSocket.cpp
+++ b/dom/network/UDPSocket.cpp
@@ -17,6 +17,8 @@
#include "nsINetAddr.h"
#include "nsStringStream.h"
+using namespace mozilla::net;
+
namespace mozilla {
namespace dom {
diff --git a/dom/network/UDPSocketChild.cpp b/dom/network/UDPSocketChild.cpp
index d205e7e8a..9d6ec0978 100644
--- a/dom/network/UDPSocketChild.cpp
+++ b/dom/network/UDPSocketChild.cpp
@@ -5,6 +5,8 @@
* You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "UDPSocketChild.h"
+
+#include "UDPSocket.h"
#include "mozilla/Unused.h"
#include "mozilla/ipc/InputStreamUtils.h"
#include "mozilla/net/NeckoChild.h"
diff --git a/dom/network/UDPSocketParent.cpp b/dom/network/UDPSocketParent.cpp
index 904a995ed..2f258badb 100644
--- a/dom/network/UDPSocketParent.cpp
+++ b/dom/network/UDPSocketParent.cpp
@@ -6,9 +6,11 @@
#include "nsIServiceManager.h"
#include "UDPSocketParent.h"
+#include "UDPSocket.h"
#include "nsComponentManagerUtils.h"
#include "nsIUDPSocket.h"
#include "nsINetAddr.h"
+#include "nsNetCID.h"
#include "mozilla/AppProcessChecker.h"
#include "mozilla/Unused.h"
#include "mozilla/ipc/InputStreamUtils.h"
@@ -17,9 +19,12 @@
#include "mozilla/net/PNeckoParent.h"
#include "nsIPermissionManager.h"
#include "nsIScriptSecurityManager.h"
+#include "mozilla/dom/ContentParent.h"
#include "mozilla/ipc/PBackgroundParent.h"
#include "mtransport/runnable_utils.h"
+using namespace mozilla::net;
+
namespace mozilla {
namespace dom {
diff --git a/dom/network/moz.build b/dom/network/moz.build
index ffb90d116..79f8fe009 100644
--- a/dom/network/moz.build
+++ b/dom/network/moz.build
@@ -27,7 +27,7 @@ EXPORTS.mozilla.dom.network += [
'UDPSocketParent.h',
]
-UNIFIED_SOURCES += [
+SOURCES += [
'Connection.cpp',
'TCPServerSocket.cpp',
'TCPServerSocketChild.cpp',