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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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