mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 1768189 - Part 23: Apply modernize-concat-nested-namespaces to dom/network/TCPServerSocketChild.h ... r=andi
Depends on D145756 Differential Revision: https://phabricator.services.mozilla.com/D145757
This commit is contained in:
parent
c9828e8f91
commit
ce3a9b21da
@ -20,8 +20,7 @@
|
||||
|
||||
class nsITCPServerSocketInternal;
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class TCPServerSocket;
|
||||
|
||||
@ -55,7 +54,6 @@ class TCPServerSocketChild : public mozilla::net::PTCPServerSocketChild,
|
||||
mozilla::ipc::IPCResult RecvCallbackAccept(PTCPSocketChild* socket);
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif // mozilla_dom_TCPServerSocketChild_h
|
||||
|
@ -12,8 +12,7 @@
|
||||
#include "nsCycleCollectionParticipant.h"
|
||||
#include "nsCOMPtr.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class TCPServerSocket;
|
||||
class TCPServerSocketEvent;
|
||||
@ -50,7 +49,6 @@ class TCPServerSocketParent : public mozilla::net::PTCPServerSocketParent,
|
||||
bool mIPCOpen;
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif // mozilla_dom_TCPServerSocketParent_h
|
||||
|
@ -20,8 +20,7 @@ bool DeserializeArrayBuffer(JSContext* cx, const nsTArray<uint8_t>& aBuffer,
|
||||
JS::MutableHandle<JS::Value> aVal);
|
||||
}
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class TCPSocket;
|
||||
|
||||
@ -73,7 +72,6 @@ class TCPSocketChild : public mozilla::net::PTCPSocketChild,
|
||||
nsCOMPtr<nsISerialEventTarget> mIPCEventTarget;
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif
|
||||
|
@ -20,8 +20,7 @@
|
||||
} \
|
||||
}
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class TCPSocket;
|
||||
|
||||
@ -78,7 +77,6 @@ class TCPSocketParent : public mozilla::net::PTCPSocketParent,
|
||||
TCPReadyState aReadyState);
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif
|
||||
|
@ -22,8 +22,7 @@ class nsIInputStream;
|
||||
class nsIPrincipal;
|
||||
class nsIUDPSocketInternal;
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class UDPSocketChildBase : public nsISupports {
|
||||
public:
|
||||
@ -105,7 +104,6 @@ class UDPSocketChild : public mozilla::net::PUDPSocketChild,
|
||||
nsCString mFilterName;
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif // !defined(mozilla_dom_UDPSocketChild_h__)
|
||||
|
@ -23,8 +23,7 @@
|
||||
class nsIPrincipal;
|
||||
class nsIVariant;
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class NotificationRef;
|
||||
class WorkerNotificationObserver;
|
||||
@ -363,7 +362,6 @@ class Notification : public DOMEventTargetHelper,
|
||||
uint32_t mTaskCount;
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif // mozilla_dom_notification_h__
|
||||
|
@ -12,8 +12,7 @@
|
||||
#include "mozilla/dom/ServiceWorkerEvents.h"
|
||||
#include "mozilla/dom/WorkerCommon.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class ServiceWorker;
|
||||
class ServiceWorkerClient;
|
||||
@ -61,7 +60,6 @@ class NotificationEvent final : public ExtendableEvent {
|
||||
RefPtr<Notification> mNotification;
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif /* mozilla_dom_workers_notificationevent_h__ */
|
||||
|
@ -22,12 +22,10 @@
|
||||
#include "mozilla/ErrorResult.h"
|
||||
#include "mozilla/Maybe.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
class DOMStringList;
|
||||
class Event;
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
class nsDOMOfflineResourceList final : public mozilla::DOMEventTargetHelper,
|
||||
public nsIObserver,
|
||||
|
@ -11,8 +11,7 @@
|
||||
#include "nsPIDOMWindow.h"
|
||||
#include "nsTArray.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class BasicCardService final {
|
||||
public:
|
||||
@ -33,7 +32,6 @@ class BasicCardService final {
|
||||
~BasicCardService() = default;
|
||||
};
|
||||
|
||||
} // end of namespace dom
|
||||
} // end of namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif
|
||||
|
@ -11,8 +11,7 @@
|
||||
#include "nsIPaymentActionResponse.h"
|
||||
#include "nsString.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class PaymentRequestParent;
|
||||
|
||||
@ -188,7 +187,6 @@ class BasicCardMethodChangeDetails final : public MethodChangeDetails,
|
||||
nsCOMPtr<nsIPaymentAddress> mBillingAddress;
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // end of namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif
|
||||
|
@ -10,8 +10,7 @@
|
||||
#include "nsPIDOMWindow.h"
|
||||
#include "nsWrapperCache.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class PaymentAddress final : public nsISupports, public nsWrapperCache {
|
||||
public:
|
||||
@ -72,7 +71,6 @@ class PaymentAddress final : public nsISupports, public nsWrapperCache {
|
||||
nsCOMPtr<nsPIDOMWindowInner> mOwner;
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif // mozilla_dom_PaymentAddress_h
|
||||
|
@ -11,8 +11,7 @@
|
||||
#include "mozilla/dom/PaymentRequestUpdateEvent.h"
|
||||
#include "mozilla/dom/PaymentRequest.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
class PaymentRequestUpdateEvent;
|
||||
struct PaymentMethodChangeEventInit;
|
||||
class PaymentMethodChangeEvent final : public PaymentRequestUpdateEvent {
|
||||
@ -52,7 +51,6 @@ class PaymentMethodChangeEvent final : public PaymentRequestUpdateEvent {
|
||||
nsString mMethodName;
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif // mozilla_dom_PaymentMethodChangeEvent_h
|
||||
|
@ -16,8 +16,7 @@
|
||||
#include "nsWrapperCache.h"
|
||||
#include "PaymentRequestUpdateEvent.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class PaymentAddress;
|
||||
class PaymentRequestChild;
|
||||
@ -276,7 +275,6 @@ class PaymentRequest final : public DOMEventTargetHelper,
|
||||
|
||||
PaymentRequestChild* mIPC;
|
||||
};
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif // mozilla_dom_PaymentRequest_h
|
||||
|
@ -12,9 +12,7 @@
|
||||
#include "nsCOMPtr.h"
|
||||
#include "mozilla/dom/PaymentRequestParent.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace payments {
|
||||
namespace mozilla::dom::payments {
|
||||
|
||||
class PaymentMethodData final : public nsIPaymentMethodData {
|
||||
public:
|
||||
@ -254,8 +252,6 @@ class PaymentAddress final : public nsIPaymentAddress {
|
||||
nsString mPhone;
|
||||
};
|
||||
|
||||
} // namespace payments
|
||||
} // end of namespace dom
|
||||
} // end of namespace mozilla
|
||||
} // namespace mozilla::dom::payments
|
||||
|
||||
#endif
|
||||
|
@ -15,8 +15,7 @@
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsTArray.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class PaymentRequestChild;
|
||||
class IPCMethodChangeDetails;
|
||||
@ -97,7 +96,6 @@ class PaymentRequestManager final {
|
||||
nsTArray<nsString> mSupportedRegions;
|
||||
};
|
||||
|
||||
} // end of namespace dom
|
||||
} // end of namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif
|
||||
|
@ -13,8 +13,7 @@
|
||||
#include "nsTArray.h"
|
||||
#include "PaymentRequestData.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
// The implmentation of nsIPaymentRequestService
|
||||
|
||||
@ -57,7 +56,6 @@ class PaymentRequestService final : public nsIPaymentRequestService {
|
||||
RefPtr<payments::PaymentRequest> mShowingRequest;
|
||||
};
|
||||
|
||||
} // end of namespace dom
|
||||
} // end of namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif
|
||||
|
@ -10,8 +10,7 @@
|
||||
#include "js/TypeDecls.h"
|
||||
#include "nsTArray.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
nsresult SerializeFromJSObject(JSContext* aCx, JS::HandleObject aObject,
|
||||
nsAString& aSerializedObject);
|
||||
@ -25,7 +24,6 @@ nsresult DeserializeToJSObject(const nsAString& aSerializedObject,
|
||||
nsresult DeserializeToJSValue(const nsAString& aSerializedObject,
|
||||
JSContext* aCx, JS::MutableHandleValue aValue);
|
||||
|
||||
} // end of namespace dom
|
||||
} // end of namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif
|
||||
|
@ -12,8 +12,7 @@
|
||||
#include "nsPIDOMWindow.h"
|
||||
#include "nsITimer.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class PaymentAddress;
|
||||
class PaymentRequest;
|
||||
@ -176,7 +175,6 @@ class PaymentResponse final : public DOMEventTargetHelper,
|
||||
RefPtr<Promise> mRetryPromise;
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif // mozilla_dom_PaymentResponse_h
|
||||
|
@ -9,8 +9,7 @@
|
||||
|
||||
#include "mozilla/dom/PPaymentRequestChild.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class PaymentRequest;
|
||||
|
||||
@ -53,7 +52,6 @@ class PaymentRequestChild final : public PPaymentRequestChild {
|
||||
PaymentRequest* MOZ_NON_OWNING_REF mRequest;
|
||||
};
|
||||
|
||||
} // end of namespace dom
|
||||
} // end of namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif
|
||||
|
@ -11,8 +11,7 @@
|
||||
#include "nsIPaymentAddress.h"
|
||||
#include "nsIPaymentActionResponse.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class PaymentRequestParent final : public PPaymentRequestParent {
|
||||
friend class PPaymentRequestParent;
|
||||
@ -54,7 +53,6 @@ class PaymentRequestParent final : public PPaymentRequestParent {
|
||||
nsString mRequestId;
|
||||
};
|
||||
|
||||
} // end of namespace dom
|
||||
} // end of namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif
|
||||
|
@ -10,8 +10,7 @@
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsWrapperCache.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
class EventCounts final : public nsWrapperCache {
|
||||
public:
|
||||
NS_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING(EventCounts)
|
||||
@ -28,6 +27,5 @@ class EventCounts final : public nsWrapperCache {
|
||||
~EventCounts() = default;
|
||||
nsCOMPtr<nsISupports> mParent;
|
||||
};
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
#endif
|
||||
|
@ -15,8 +15,7 @@
|
||||
|
||||
class nsISupports;
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
class PerformanceResourceTiming;
|
||||
|
||||
// http://www.w3.org/TR/performance-timeline/#performanceentry
|
||||
@ -93,7 +92,6 @@ class MOZ_STACK_CLASS PerformanceEntryComparator final {
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif /* mozilla_dom_PerformanceEntry_h___ */
|
||||
|
@ -10,8 +10,7 @@
|
||||
#include "Performance.h"
|
||||
#include "PerformanceStorage.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class PerformanceNavigationTiming;
|
||||
class PerformanceEventTiming;
|
||||
@ -141,7 +140,6 @@ class PerformanceMainThread final : public Performance,
|
||||
PresShell* GetPresShell();
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif // mozilla_dom_PerformanceMainThread_h
|
||||
|
@ -9,8 +9,7 @@
|
||||
|
||||
#include "mozilla/dom/PerformanceEntry.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
struct PerformanceMarkOptions;
|
||||
|
||||
@ -53,7 +52,6 @@ class PerformanceMark final : public PerformanceEntry {
|
||||
JS::Heap<JS::Value> mDetail;
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif /* mozilla_dom_performancemark_h___ */
|
||||
|
@ -9,8 +9,7 @@
|
||||
|
||||
#include "mozilla/dom/PerformanceEntry.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
// http://www.w3.org/TR/user-timing/#performancemeasure
|
||||
class PerformanceMeasure final : public PerformanceEntry {
|
||||
@ -35,7 +34,6 @@ class PerformanceMeasure final : public PerformanceEntry {
|
||||
DOMHighResTimeStamp mDuration;
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif /* mozilla_dom_performancemeasure_h___ */
|
||||
|
Loading…
Reference in New Issue
Block a user