Bug 1768189 - Part 22: Apply modernize-concat-nested-namespaces to dom/media/webrtc/transport/ipc/WebrtcTCPSocketParent.h ... r=andi

Depends on D145755

Differential Revision: https://phabricator.services.mozilla.com/D145756
This commit is contained in:
Kagami Sascha Rosylight
2022-05-09 20:41:11 +00:00
parent 119d1949f9
commit 8e99e4a0f5
25 changed files with 50 additions and 106 deletions

View File

@@ -13,8 +13,7 @@
class nsIAuthPromptProvider; class nsIAuthPromptProvider;
namespace mozilla { namespace mozilla::net {
namespace net {
class WebrtcTCPSocket; class WebrtcTCPSocket;
@@ -54,7 +53,6 @@ class WebrtcTCPSocketParent : public PWebrtcTCPSocketParent,
RefPtr<WebrtcTCPSocket> mChannel; RefPtr<WebrtcTCPSocket> mChannel;
}; };
} // namespace net } // namespace mozilla::net
} // namespace mozilla
#endif // mozilla_net_WebrtcTCPSocketParent_h #endif // mozilla_net_WebrtcTCPSocketParent_h

View File

@@ -14,8 +14,7 @@
#include "mozilla/Attributes.h" #include "mozilla/Attributes.h"
namespace mozilla { namespace mozilla::dom {
namespace dom {
class SpeechRecognition; class SpeechRecognition;
@@ -45,7 +44,6 @@ class SpeechRecognitionAlternative final : public nsISupports,
RefPtr<SpeechRecognition> mParent; RefPtr<SpeechRecognition> mParent;
}; };
} // namespace dom } // namespace mozilla::dom
} // namespace mozilla
#endif #endif

View File

@@ -17,8 +17,7 @@
#include "SpeechRecognitionAlternative.h" #include "SpeechRecognitionAlternative.h"
namespace mozilla { namespace mozilla::dom {
namespace dom {
class SpeechRecognitionResult final : public nsISupports, class SpeechRecognitionResult final : public nsISupports,
public nsWrapperCache { public nsWrapperCache {
@@ -50,7 +49,6 @@ class SpeechRecognitionResult final : public nsISupports,
RefPtr<SpeechRecognition> mParent; RefPtr<SpeechRecognition> mParent;
}; };
} // namespace dom } // namespace mozilla::dom
} // namespace mozilla
#endif #endif

View File

@@ -16,8 +16,7 @@
#include "SpeechRecognitionResult.h" #include "SpeechRecognitionResult.h"
namespace mozilla { namespace mozilla::dom {
namespace dom {
class SpeechRecognition; class SpeechRecognition;
@@ -49,7 +48,6 @@ class SpeechRecognitionResultList final : public nsISupports,
RefPtr<SpeechRecognition> mParent; RefPtr<SpeechRecognition> mParent;
}; };
} // namespace dom } // namespace mozilla::dom
} // namespace mozilla
#endif #endif

View File

@@ -20,8 +20,7 @@
class nsIDOMWindow; class nsIDOMWindow;
namespace mozilla { namespace mozilla::dom {
namespace dom {
class nsSpeechTask; class nsSpeechTask;
@@ -85,6 +84,5 @@ class SpeechSynthesis final : public DOMEventTargetHelper,
uint64_t mInnerID; uint64_t mInnerID;
}; };
} // namespace dom } // namespace mozilla::dom
} // namespace mozilla
#endif #endif

View File

@@ -14,8 +14,7 @@
#include "nsSpeechTask.h" #include "nsSpeechTask.h"
namespace mozilla { namespace mozilla::dom {
namespace dom {
class SpeechSynthesisVoice; class SpeechSynthesisVoice;
class SpeechSynthesis; class SpeechSynthesis;
@@ -105,7 +104,6 @@ class SpeechSynthesisUtterance final : public DOMEventTargetHelper {
RefPtr<SpeechSynthesisVoice> mVoice; RefPtr<SpeechSynthesisVoice> mVoice;
}; };
} // namespace dom } // namespace mozilla::dom
} // namespace mozilla
#endif #endif

View File

@@ -12,8 +12,7 @@
#include "nsWrapperCache.h" #include "nsWrapperCache.h"
#include "js/TypeDecls.h" #include "js/TypeDecls.h"
namespace mozilla { namespace mozilla::dom {
namespace dom {
class nsSynthVoiceRegistry; class nsSynthVoiceRegistry;
class SpeechSynthesis; class SpeechSynthesis;
@@ -51,7 +50,6 @@ class SpeechSynthesisVoice final : public nsISupports, public nsWrapperCache {
nsString mUri; nsString mUri;
}; };
} // namespace dom } // namespace mozilla::dom
} // namespace mozilla
#endif #endif

View File

@@ -10,8 +10,7 @@
#include "mozilla/dom/PSpeechSynthesisRequestChild.h" #include "mozilla/dom/PSpeechSynthesisRequestChild.h"
#include "nsSpeechTask.h" #include "nsSpeechTask.h"
namespace mozilla { namespace mozilla::dom {
namespace dom {
class nsSynthVoiceRegistry; class nsSynthVoiceRegistry;
class SpeechSynthesisRequestChild; class SpeechSynthesisRequestChild;
@@ -103,7 +102,6 @@ class SpeechTaskChild : public nsSpeechTask {
SpeechSynthesisRequestChild* mActor; SpeechSynthesisRequestChild* mActor;
}; };
} // namespace dom } // namespace mozilla::dom
} // namespace mozilla
#endif #endif

View File

@@ -9,8 +9,7 @@
#include "mozilla/dom/PSpeechSynthesisRequestParent.h" #include "mozilla/dom/PSpeechSynthesisRequestParent.h"
#include "nsSpeechTask.h" #include "nsSpeechTask.h"
namespace mozilla { namespace mozilla::dom {
namespace dom {
class ContentParent; class ContentParent;
class SpeechTaskParent; class SpeechTaskParent;
@@ -95,7 +94,6 @@ class SpeechTaskParent : public nsSpeechTask {
SpeechSynthesisRequestParent* mActor; SpeechSynthesisRequestParent* mActor;
}; };
} // namespace dom } // namespace mozilla::dom
} // namespace mozilla
#endif #endif

View File

@@ -13,8 +13,7 @@
class nsISpeechService; class nsISpeechService;
namespace mozilla { namespace mozilla::dom {
namespace dom {
class RemoteVoice; class RemoteVoice;
class SpeechSynthesisUtterance; class SpeechSynthesisUtterance;
@@ -95,7 +94,6 @@ class nsSynthVoiceRegistry final : public nsISynthVoiceRegistry {
bool mIsSpeaking; bool mIsSpeaking;
}; };
} // namespace dom } // namespace mozilla::dom
} // namespace mozilla
#endif #endif

View File

@@ -14,8 +14,7 @@
#include "mozilla/StaticPtr.h" #include "mozilla/StaticPtr.h"
#include "mozilla/Monitor.h" #include "mozilla/Monitor.h"
namespace mozilla { namespace mozilla::dom {
namespace dom {
class nsFakeSynthServices : public nsIObserver { class nsFakeSynthServices : public nsIObserver {
public: public:
@@ -38,7 +37,6 @@ class nsFakeSynthServices : public nsIObserver {
static StaticRefPtr<nsFakeSynthServices> sSingleton; static StaticRefPtr<nsFakeSynthServices> sSingleton;
}; };
} // namespace dom } // namespace mozilla::dom
} // namespace mozilla
#endif #endif

View File

@@ -17,8 +17,7 @@
#include "mozilla/ProfilerLabels.h" #include "mozilla/ProfilerLabels.h"
#include "mozilla/StaticPrefs_media.h" #include "mozilla/StaticPrefs_media.h"
namespace mozilla { namespace mozilla::dom {
namespace dom {
StaticRefPtr<SapiService> SapiService::sSingleton; StaticRefPtr<SapiService> SapiService::sSingleton;
@@ -433,5 +432,4 @@ already_AddRefed<SapiService> SapiService::GetInstanceForService() {
return sapiService.forget(); return sapiService.forget();
} }
} // namespace dom } // namespace mozilla::dom
} // namespace mozilla

View File

@@ -16,8 +16,7 @@
#include <windows.h> #include <windows.h>
#include <sapi.h> #include <sapi.h>
namespace mozilla { namespace mozilla::dom {
namespace dom {
class SapiCallback; class SapiCallback;
@@ -49,7 +48,6 @@ class SapiService final : public nsISpeechService, public nsIObserver {
static StaticRefPtr<SapiService> sSingleton; static StaticRefPtr<SapiService> sSingleton;
}; };
} // namespace dom } // namespace mozilla::dom
} // namespace mozilla
#endif #endif

View File

@@ -14,8 +14,7 @@
#include "nsString.h" #include "nsString.h"
#include "TimeUnits.h" #include "TimeUnits.h"
namespace mozilla { namespace mozilla::dom {
namespace dom {
class TextTrackList; class TextTrackList;
class TextTrackCue; class TextTrackCue;
@@ -144,7 +143,6 @@ class TextTrack final : public DOMEventTargetHelper {
TextTrackSource mTextTrackSource; TextTrackSource mTextTrackSource;
}; };
} // namespace dom } // namespace mozilla::dom
} // namespace mozilla
#endif // mozilla_dom_TextTrack_h #endif // mozilla_dom_TextTrack_h

View File

@@ -17,8 +17,7 @@
#include "mozilla/dom/TextTrack.h" #include "mozilla/dom/TextTrack.h"
#include "mozilla/StateWatching.h" #include "mozilla/StateWatching.h"
namespace mozilla { namespace mozilla::dom {
namespace dom {
class Document; class Document;
class HTMLTrackElement; class HTMLTrackElement;
@@ -338,7 +337,6 @@ class TextTrackCue final : public DOMEventTargetHelper {
WatchManager<TextTrackCue> mWatchManager; WatchManager<TextTrackCue> mWatchManager;
}; };
} // namespace dom } // namespace mozilla::dom
} // namespace mozilla
#endif // mozilla_dom_TextTrackCue_h #endif // mozilla_dom_TextTrackCue_h

View File

@@ -11,8 +11,7 @@
#include "mozilla/dom/TextTrack.h" #include "mozilla/dom/TextTrack.h"
#include "nsCycleCollectionParticipant.h" #include "nsCycleCollectionParticipant.h"
namespace mozilla { namespace mozilla::dom {
namespace dom {
class Event; class Event;
class HTMLMediaElement; class HTMLMediaElement;
@@ -75,7 +74,6 @@ class TextTrackList final : public DOMEventTargetHelper {
const nsAString& aEventName); const nsAString& aEventName);
}; };
} // namespace dom } // namespace mozilla::dom
} // namespace mozilla
#endif // mozilla_dom_TextTrackList_h #endif // mozilla_dom_TextTrackList_h

View File

@@ -15,8 +15,7 @@
#include "mozilla/dom/VTTRegionBinding.h" #include "mozilla/dom/VTTRegionBinding.h"
#include "mozilla/Preferences.h" #include "mozilla/Preferences.h"
namespace mozilla { namespace mozilla::dom {
namespace dom {
class GlobalObject; class GlobalObject;
class TextTrack; class TextTrack;
@@ -134,7 +133,6 @@ class TextTrackRegion final : public nsISupports, public nsWrapperCache {
} }
}; };
} // namespace dom } // namespace mozilla::dom
} // namespace mozilla
#endif // mozilla_dom_TextTrackRegion_h #endif // mozilla_dom_TextTrackRegion_h

View File

@@ -15,8 +15,7 @@
class nsIWebVTTParserWrapper; class nsIWebVTTParserWrapper;
namespace mozilla { namespace mozilla::dom {
namespace dom {
class HTMLTrackElement; class HTMLTrackElement;
@@ -65,7 +64,6 @@ class WebVTTListener final : public nsIWebVTTListener,
bool mCancel = false; bool mCancel = false;
}; };
} // namespace dom } // namespace mozilla::dom
} // namespace mozilla
#endif // mozilla_dom_WebVTTListener_h #endif // mozilla_dom_WebVTTListener_h

View File

@@ -19,8 +19,7 @@
class nsIGlobalObject; class nsIGlobalObject;
namespace mozilla { namespace mozilla::dom {
namespace dom {
class MessageData; class MessageData;
class MessagePortChild; class MessagePortChild;
@@ -229,7 +228,6 @@ class MessagePort final : public DOMEventTargetHelper {
bool mHasBeenTransferredOrClosed; bool mHasBeenTransferredOrClosed;
}; };
} // namespace dom } // namespace mozilla::dom
} // namespace mozilla
#endif // mozilla_dom_MessagePort_h #endif // mozilla_dom_MessagePort_h

View File

@@ -11,8 +11,7 @@
#include "mozilla/dom/PMessagePortChild.h" #include "mozilla/dom/PMessagePortChild.h"
#include "nsISupportsImpl.h" #include "nsISupportsImpl.h"
namespace mozilla { namespace mozilla::dom {
namespace dom {
class MessagePort; class MessagePort;
@@ -41,7 +40,6 @@ class MessagePortChild final : public PMessagePortChild {
MessagePort* mPort; MessagePort* mPort;
}; };
} // namespace dom } // namespace mozilla::dom
} // namespace mozilla
#endif // mozilla_dom_MessagePortChild_h #endif // mozilla_dom_MessagePortChild_h

View File

@@ -11,8 +11,7 @@
#include "mozilla/dom/PMessagePortParent.h" #include "mozilla/dom/PMessagePortParent.h"
#include "mozilla/dom/quota/CheckedUnsafePtr.h" #include "mozilla/dom/quota/CheckedUnsafePtr.h"
namespace mozilla { namespace mozilla::dom {
namespace dom {
class MessagePortService; class MessagePortService;
@@ -57,7 +56,6 @@ class MessagePortParent final
bool mCanSendData; bool mCanSendData;
}; };
} // namespace dom } // namespace mozilla::dom
} // namespace mozilla
#endif // mozilla_dom_MessagePortParent_h #endif // mozilla_dom_MessagePortParent_h

View File

@@ -11,8 +11,7 @@
#include "nsHashKeys.h" #include "nsHashKeys.h"
#include "nsISupportsImpl.h" #include "nsISupportsImpl.h"
namespace mozilla { namespace mozilla::dom {
namespace dom {
class MessagePortParent; class MessagePortParent;
class SharedMessageBody; class SharedMessageBody;
@@ -56,7 +55,6 @@ class MessagePortService final {
nsClassHashtable<nsIDHashKey, MessagePortServiceData> mPorts; nsClassHashtable<nsIDHashKey, MessagePortServiceData> mPorts;
}; };
} // namespace dom } // namespace mozilla::dom
} // namespace mozilla
#endif // mozilla_dom_MessagePortService_h #endif // mozilla_dom_MessagePortService_h

View File

@@ -11,9 +11,7 @@
#include "mozilla/Hal.h" #include "mozilla/Hal.h"
#include "mozilla/Observer.h" #include "mozilla/Observer.h"
namespace mozilla { namespace mozilla::dom::network {
namespace dom {
namespace network {
class ConnectionMainThread final : public Connection, class ConnectionMainThread final : public Connection,
public hal::NetworkObserver { public hal::NetworkObserver {
@@ -37,8 +35,6 @@ class ConnectionMainThread final : public Connection,
bool aNotify); bool aNotify);
}; };
} // namespace network } // namespace mozilla::dom::network
} // namespace dom
} // namespace mozilla
#endif // mozilla_dom_network_ConnectionMainThread_h #endif // mozilla_dom_network_ConnectionMainThread_h

View File

@@ -9,9 +9,7 @@
#include "Connection.h" #include "Connection.h"
namespace mozilla { namespace mozilla::dom::network {
namespace dom {
namespace network {
class ConnectionProxy; class ConnectionProxy;
@@ -31,8 +29,6 @@ class ConnectionWorker final : public Connection {
RefPtr<ConnectionProxy> mProxy; RefPtr<ConnectionProxy> mProxy;
}; };
} // namespace network } // namespace mozilla::dom::network
} // namespace dom
} // namespace mozilla
#endif // mozilla_dom_network_ConnectionWorker_h #endif // mozilla_dom_network_ConnectionWorker_h

View File

@@ -10,16 +10,12 @@
/** /**
* A set of constants to be used by network backends. * A set of constants to be used by network backends.
*/ */
namespace mozilla { namespace mozilla::dom::network {
namespace dom {
namespace network {
static const uint32_t kDefaultType = 5; // ConnectionType::None static const uint32_t kDefaultType = 5; // ConnectionType::None
static const bool kDefaultIsWifi = false; static const bool kDefaultIsWifi = false;
static const uint32_t kDefaultDHCPGateway = 0; static const uint32_t kDefaultDHCPGateway = 0;
} // namespace network } // namespace mozilla::dom::network
} // namespace dom
} // namespace mozilla
#endif // mozilla_dom_network_Constants_h__ #endif // mozilla_dom_network_Constants_h__