Bug 1733356 - Fix non-unified build errors in netwerk/dns/ r=necko-reviewers,dragana

Differential Revision: https://phabricator.services.mozilla.com/D127399
This commit is contained in:
Valentin Gosu 2021-10-05 08:22:00 +00:00
Родитель a44a09d056
Коммит 822cd925d0
17 изменённых файлов: 27 добавлений и 3 удалений

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

@ -11,6 +11,8 @@
// Put DNSLogging.h at the end to avoid LOG being overwritten by other headers. // Put DNSLogging.h at the end to avoid LOG being overwritten by other headers.
#include "DNSLogging.h" #include "DNSLogging.h"
#include "nsIInputStream.h"
namespace mozilla { namespace mozilla {
namespace net { namespace net {

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

@ -11,6 +11,8 @@
#include "ScopedNSSTypes.h" #include "ScopedNSSTypes.h"
#include "nsClassHashtable.h" #include "nsClassHashtable.h"
#include "nsIDNSService.h" #include "nsIDNSService.h"
#include "DNS.h"
#include "DNSByTypeRecord.h"
namespace mozilla { namespace mozilla {
namespace net { namespace net {

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

@ -14,6 +14,7 @@
#include "nsHostResolver.h" #include "nsHostResolver.h"
#include "mozilla/Unused.h" #include "mozilla/Unused.h"
#include "DNSResolverInfo.h" #include "DNSResolverInfo.h"
#include "nsServiceManagerUtils.h"
using namespace mozilla::ipc; using namespace mozilla::ipc;

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

@ -6,6 +6,7 @@
#define mozilla_net_DNSResolverInfo_h__ #define mozilla_net_DNSResolverInfo_h__
#include "nsIDNSResolverInfo.h" #include "nsIDNSResolverInfo.h"
#include "nsString.h"
namespace mozilla { namespace mozilla {
namespace net { namespace net {

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

@ -8,6 +8,7 @@
#include "nsHttpHandler.h" #include "nsHttpHandler.h"
#include "nsNetAddr.h" #include "nsNetAddr.h"
#include "nsNetUtil.h" #include "nsNetUtil.h"
#include "nsIDNSService.h"
namespace mozilla { namespace mozilla {
namespace net { namespace net {

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

@ -4,6 +4,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "HostRecordQueue.h" #include "HostRecordQueue.h"
#include "mozilla/Telemetry.h"
#include "nsQueryObject.h"
namespace mozilla { namespace mozilla {
namespace net { namespace net {

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

@ -9,6 +9,7 @@
#include "mozilla/ClearOnShutdown.h" #include "mozilla/ClearOnShutdown.h"
#include "mozilla/net/SocketProcessParent.h" #include "mozilla/net/SocketProcessParent.h"
#include "nsIOService.h" #include "nsIOService.h"
#include "DNS.h"
namespace mozilla { namespace mozilla {
namespace net { namespace net {

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

@ -12,6 +12,7 @@
#include "TRRService.h" #include "TRRService.h"
// Put DNSLogging.h at the end to avoid LOG being overwritten by other headers. // Put DNSLogging.h at the end to avoid LOG being overwritten by other headers.
#include "DNSLogging.h" #include "DNSLogging.h"
#include "nsNetUtil.h"
namespace mozilla { namespace mozilla {
namespace net { namespace net {

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

@ -10,6 +10,7 @@
#include "mozilla/Preferences.h" #include "mozilla/Preferences.h"
#include "mozilla/ScopeExit.h" #include "mozilla/ScopeExit.h"
#include "mozilla/StaticPrefs_network.h" #include "mozilla/StaticPrefs_network.h"
#include "nsICancelable.h"
#include "nsIDNSService.h" #include "nsIDNSService.h"
#include "nsIDNSByTypeRecord.h" #include "nsIDNSByTypeRecord.h"
#include "nsIOService.h" #include "nsIOService.h"

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

@ -9,6 +9,7 @@
#include "DNS.h" #include "DNS.h"
#include "mozilla/Atomics.h" #include "mozilla/Atomics.h"
#include "mozilla/Maybe.h" #include "mozilla/Maybe.h"
#include "mozilla/Mutex.h"
#include "nsString.h" #include "nsString.h"
#include "nsIDNSListener.h" #include "nsIDNSListener.h"
#include "nsIObserver.h" #include "nsIObserver.h"
@ -57,7 +58,7 @@ class ODoHService : public nsIDNSListener,
nsresult UpdateODoHConfigFromHTTPSRR(); nsresult UpdateODoHConfigFromHTTPSRR();
nsresult UpdateODoHConfigFromURI(); nsresult UpdateODoHConfigFromURI();
Mutex mLock; mozilla::Mutex mLock;
Atomic<bool, Relaxed> mQueryODoHConfigInProgress; Atomic<bool, Relaxed> mQueryODoHConfigInProgress;
nsCString mODoHProxyURI; nsCString mODoHProxyURI;
nsCString mODoHTargetHost; nsCString mODoHTargetHost;

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

@ -20,9 +20,11 @@
#include "nsIUploadChannel2.h" #include "nsIUploadChannel2.h"
#include "nsIURIMutator.h" #include "nsIURIMutator.h"
#include "nsNetUtil.h" #include "nsNetUtil.h"
#include "nsQueryObject.h"
#include "nsStringStream.h" #include "nsStringStream.h"
#include "nsThreadUtils.h" #include "nsThreadUtils.h"
#include "nsURLHelper.h" #include "nsURLHelper.h"
#include "ODoH.h"
#include "TRR.h" #include "TRR.h"
#include "TRRService.h" #include "TRRService.h"
#include "TRRServiceChannel.h" #include "TRRServiceChannel.h"

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

@ -110,5 +110,3 @@ USE_LIBS += ["icu"]
if CONFIG["CC_TYPE"] in ("clang", "gcc"): if CONFIG["CC_TYPE"] in ("clang", "gcc"):
CXXFLAGS += ["-Wno-error=shadow"] CXXFLAGS += ["-Wno-error=shadow"]
REQUIRES_UNIFIED_BUILD = True

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

@ -7,6 +7,8 @@
#include "TRRQuery.h" #include "TRRQuery.h"
// Put DNSLogging.h at the end to avoid LOG being overwritten by other headers. // Put DNSLogging.h at the end to avoid LOG being overwritten by other headers.
#include "DNSLogging.h" #include "DNSLogging.h"
#include "mozilla/Telemetry.h"
#include "TRRService.h"
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
// this macro filters out any flags that are not used when constructing the // this macro filters out any flags that are not used when constructing the
@ -22,6 +24,9 @@
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
using namespace mozilla;
using namespace mozilla::net;
nsHostKey::nsHostKey(const nsACString& aHost, const nsACString& aTrrServer, nsHostKey::nsHostKey(const nsACString& aHost, const nsACString& aTrrServer,
uint16_t aType, uint16_t aFlags, uint16_t aAf, bool aPb, uint16_t aType, uint16_t aFlags, uint16_t aAf, bool aPb,
const nsACString& aOriginsuffix) const nsACString& aOriginsuffix)

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

@ -7,6 +7,7 @@
#define nsHostRecord_h__ #define nsHostRecord_h__
#include "mozilla/AtomicBitfields.h" #include "mozilla/AtomicBitfields.h"
#include "mozilla/DataMutex.h"
#include "mozilla/LinkedList.h" #include "mozilla/LinkedList.h"
#include "mozilla/net/HTTPSSVC.h" #include "mozilla/net/HTTPSSVC.h"
#include "nsIDNSService.h" #include "nsIDNSService.h"

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

@ -49,6 +49,9 @@
// Put DNSLogging.h at the end to avoid LOG being overwritten by other headers. // Put DNSLogging.h at the end to avoid LOG being overwritten by other headers.
#include "DNSLogging.h" #include "DNSLogging.h"
#define IS_ADDR_TYPE(_type) ((_type) == nsIDNSService::RESOLVE_TYPE_DEFAULT)
#define IS_OTHER_TYPE(_type) ((_type) != nsIDNSService::RESOLVE_TYPE_DEFAULT)
using namespace mozilla; using namespace mozilla;
using namespace mozilla::net; using namespace mozilla::net;

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

@ -16,6 +16,7 @@
#include "nsString.h" #include "nsString.h"
#include "prio.h" #include "prio.h"
#include "mozilla/net/DNS.h" #include "mozilla/net/DNS.h"
#include "ipc/IPCMessageUtilsSpecializations.h"
namespace IPC { namespace IPC {

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

@ -15,6 +15,7 @@
#include "mozilla/BasePrincipal.h" #include "mozilla/BasePrincipal.h"
#include "mozilla/AlreadyAddRefed.h" #include "mozilla/AlreadyAddRefed.h"
#include "ARefBase.h" #include "ARefBase.h"
#include "nsIRequest.h"
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// nsHttpConnectionInfo - holds the properties of a connection // nsHttpConnectionInfo - holds the properties of a connection