зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1768189 - Part 28: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerCloneData.cpp ... r=andi
Depends on D145761 Differential Revision: https://phabricator.services.mozilla.com/D145762
This commit is contained in:
Родитель
28d21e6fce
Коммит
7f86063f8d
|
@ -14,8 +14,7 @@
|
|||
#include "nsProxyRelease.h"
|
||||
#include "nsThreadUtils.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
ServiceWorkerCloneData::~ServiceWorkerCloneData() {
|
||||
RefPtr<ipc::SharedJSAllocatedData> sharedData = TakeSharedData();
|
||||
|
@ -122,5 +121,4 @@ bool ServiceWorkerCloneData::IsErrorMessageData() const {
|
|||
return mIsErrorMessageData;
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
|
|
@ -48,8 +48,7 @@
|
|||
# undef DispatchMessage
|
||||
#endif
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(ServiceWorkerContainer)
|
||||
NS_INTERFACE_MAP_END_INHERITING(DOMEventTargetHelper)
|
||||
|
@ -804,5 +803,4 @@ Result<Ok, bool> ServiceWorkerContainer::FillInMessageEventInit(
|
|||
return Ok();
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
|
|
@ -13,8 +13,7 @@
|
|||
|
||||
class nsIGlobalWindow;
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class ClientPostMessageArgs;
|
||||
struct MessageEventInit;
|
||||
|
@ -166,7 +165,6 @@ class ServiceWorkerContainer final : public DOMEventTargetHelper {
|
|||
nsTArray<RefPtr<ReceivedMessage>> mPendingMessages;
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif /* mozilla_dom_serviceworkercontainer_h__ */
|
||||
|
|
|
@ -11,8 +11,7 @@
|
|||
#include "RemoteServiceWorkerContainerImpl.h"
|
||||
#include "ServiceWorkerContainerChild.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
void ServiceWorkerContainerChild::ActorDestroy(ActorDestroyReason aReason) {
|
||||
mIPCWorkerRef = nullptr;
|
||||
|
@ -70,5 +69,4 @@ void ServiceWorkerContainerChild::MaybeStartTeardown() {
|
|||
mTeardownStarted = true;
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
|
|
@ -12,8 +12,7 @@
|
|||
// XXX Avoid including this here by moving function bodies to the cpp file
|
||||
#include "mozilla/dom/WorkerRef.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class RemoteServiceWorkerContainerImpl;
|
||||
|
||||
|
@ -43,7 +42,6 @@ class ServiceWorkerContainerChild final : public PServiceWorkerContainerChild {
|
|||
void MaybeStartTeardown();
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif // mozilla_dom_serviceworkercontainerchild_h__
|
||||
|
|
|
@ -9,8 +9,7 @@
|
|||
#include "ServiceWorkerContainerProxy.h"
|
||||
#include "mozilla/dom/ClientInfo.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
using mozilla::ipc::IPCResult;
|
||||
|
||||
|
@ -127,5 +126,4 @@ void ServiceWorkerContainerParent::Init() {
|
|||
mProxy = new ServiceWorkerContainerProxy(this);
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
|
|
@ -9,8 +9,7 @@
|
|||
|
||||
#include "mozilla/dom/PServiceWorkerContainerParent.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class IPCServiceWorkerDescriptor;
|
||||
class ServiceWorkerContainerProxy;
|
||||
|
@ -51,7 +50,6 @@ class ServiceWorkerContainerParent final
|
|||
void Init();
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif // mozilla_dom_serviceworkercontainerparent_h__
|
||||
|
|
|
@ -12,8 +12,7 @@
|
|||
#include "mozilla/SchedulerGroup.h"
|
||||
#include "mozilla/ScopeExit.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
using mozilla::ipc::AssertIsOnBackgroundThread;
|
||||
|
||||
|
@ -150,5 +149,4 @@ RefPtr<ServiceWorkerRegistrationPromise> ServiceWorkerContainerProxy::GetReady(
|
|||
return promise;
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
|
|
@ -10,8 +10,7 @@
|
|||
#include "mozilla/dom/ServiceWorkerUtils.h"
|
||||
#include "mozilla/RefPtr.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class ServiceWorkerContainerParent;
|
||||
|
||||
|
@ -42,7 +41,6 @@ class ServiceWorkerContainerProxy final {
|
|||
NS_INLINE_DECL_THREADSAFE_REFCOUNTING(ServiceWorkerContainerProxy);
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif // moz_dom_ServiceWorkerContainerProxy_h
|
||||
|
|
|
@ -9,8 +9,7 @@
|
|||
#include "mozilla/dom/ServiceWorkerBinding.h"
|
||||
#include "mozilla/ipc/PBackgroundSharedTypes.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
using mozilla::ipc::PrincipalInfo;
|
||||
using mozilla::ipc::PrincipalInfoToPrincipal;
|
||||
|
@ -139,5 +138,4 @@ const IPCServiceWorkerDescriptor& ServiceWorkerDescriptor::ToIPC() const {
|
|||
return *mData;
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
|
|
@ -89,8 +89,7 @@ void AsyncLog(nsIInterceptedChannel* aInterceptedChannel,
|
|||
|
||||
} // anonymous namespace
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
CancelChannelRunnable::CancelChannelRunnable(
|
||||
nsMainThreadPtrHandle<nsIInterceptedChannel>& aChannel,
|
||||
|
@ -1276,5 +1275,4 @@ NS_INTERFACE_MAP_END_INHERITING(Event)
|
|||
NS_IMPL_ADDREF_INHERITED(ExtendableMessageEvent, Event)
|
||||
NS_IMPL_RELEASE_INHERITED(ExtendableMessageEvent, Event)
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
|
|
@ -22,8 +22,7 @@
|
|||
|
||||
class nsIInterceptedChannel;
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class Blob;
|
||||
class Client;
|
||||
|
@ -305,7 +304,6 @@ class ExtendableMessageEvent final : public ExtendableEvent {
|
|||
void GetPorts(nsTArray<RefPtr<MessagePort>>& aPorts);
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif /* mozilla_dom_serviceworkerevents_h__ */
|
||||
|
|
|
@ -14,8 +14,7 @@
|
|||
#include "mozilla/dom/RemoteWorkerTypes.h"
|
||||
#include "mozilla/dom/WorkerPrivate.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
using mozilla::ipc::PrincipalInfo;
|
||||
|
||||
|
@ -284,5 +283,4 @@ void ServiceWorkerInfo::SetRegistrationVersion(uint64_t aVersion) {
|
|||
mDescriptor.SetRegistrationVersion(aVersion);
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
|
|
@ -15,8 +15,7 @@
|
|||
#include "mozilla/TimeStamp.h"
|
||||
#include "nsIServiceWorkerManager.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class ClientInfoAndState;
|
||||
class ClientState;
|
||||
|
@ -179,7 +178,6 @@ class ServiceWorkerInfo final : public nsIServiceWorkerInfo {
|
|||
}
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif // mozilla_dom_serviceworkerinfo_h
|
||||
|
|
|
@ -18,8 +18,7 @@
|
|||
#include "ServiceWorkerManager.h"
|
||||
#include "nsIPrincipal.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
NS_IMPL_ISUPPORTS(ServiceWorkerInterceptController,
|
||||
nsINetworkInterceptController)
|
||||
|
@ -129,5 +128,4 @@ ServiceWorkerInterceptController::ChannelIntercepted(
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
|
|
@ -9,8 +9,7 @@
|
|||
|
||||
#include "nsINetworkInterceptController.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class ServiceWorkerInterceptController final
|
||||
: public nsINetworkInterceptController {
|
||||
|
@ -21,7 +20,6 @@ class ServiceWorkerInterceptController final
|
|||
NS_DECL_NSINETWORKINTERCEPTCONTROLLER
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif // mozilla_dom_serviceworkerinterceptcontroller_h
|
||||
|
|
|
@ -12,8 +12,7 @@
|
|||
#include "nsThreadUtils.h"
|
||||
#include "ServiceWorkerManager.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
ServiceWorkerJob::Type ServiceWorkerJob::GetType() const { return mType; }
|
||||
|
||||
|
@ -218,5 +217,4 @@ void ServiceWorkerJob::Finish(nsresult aRv) {
|
|||
Finish(converted);
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
|
|
@ -10,8 +10,7 @@
|
|||
#include "ServiceWorkerJob.h"
|
||||
#include "mozilla/dom/WorkerCommon.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class ServiceWorkerJobQueue::Callback final
|
||||
: public ServiceWorkerJob::Callback {
|
||||
|
@ -118,5 +117,4 @@ void ServiceWorkerJobQueue::CancelAll() {
|
|||
}
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
|
|
@ -10,8 +10,7 @@
|
|||
#include "mozilla/RefPtr.h"
|
||||
#include "nsTArray.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class ServiceWorkerJob;
|
||||
|
||||
|
@ -36,7 +35,6 @@ class ServiceWorkerJobQueue final {
|
|||
NS_INLINE_DECL_REFCOUNTING(ServiceWorkerJobQueue)
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif // mozilla_dom_serviceworkerjobqueue_h
|
||||
|
|
|
@ -108,8 +108,7 @@ using namespace mozilla;
|
|||
using namespace mozilla::dom;
|
||||
using namespace mozilla::ipc;
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
// Counts the number of registered ServiceWorkers, and the number that
|
||||
// handle Fetch, for reporting in Telemetry
|
||||
|
@ -3384,5 +3383,4 @@ void ServiceWorkerManager::ReportServiceWorkerShutdownProgress(
|
|||
mShutdownBlocker->ReportShutdownProgress(aShutdownStateId, aProgress);
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
|
|
@ -65,8 +65,7 @@
|
|||
#include "mozilla/ipc/IPCStreamUtils.h"
|
||||
#include "mozilla/net/MozURL.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
namespace {
|
||||
|
||||
|
@ -1897,5 +1896,4 @@ class ExtensionAPIEventOp final : public ServiceWorkerOp {
|
|||
return op.forget();
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
|
|
@ -23,8 +23,7 @@
|
|||
#include "mozilla/dom/ServiceWorkerOpArgs.h"
|
||||
#include "mozilla/dom/WorkerRunnable.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class FetchEventOpProxyChild;
|
||||
|
||||
|
@ -189,7 +188,6 @@ class FetchEventOp final : public ExtendableEventOp,
|
|||
TimeStamp mFetchHandlerFinish;
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif // mozilla_dom_serviceworkerop_h__
|
||||
|
|
|
@ -14,8 +14,7 @@
|
|||
#include "mozilla/dom/SafeRefPtr.h"
|
||||
#include "mozilla/dom/ServiceWorkerOpArgs.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class InternalResponse;
|
||||
|
||||
|
@ -45,7 +44,6 @@ using ServiceWorkerOpPromise =
|
|||
using ServiceWorkerFetchEventOpPromise =
|
||||
MozPromise<ServiceWorkerFetchEventOpResult, nsresult, true>;
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif // mozilla_dom_serviceworkeroppromise_h__
|
||||
|
|
|
@ -12,8 +12,7 @@
|
|||
#include "mozilla/dom/ClientState.h"
|
||||
#include "mozilla/dom/ipc/StructuredCloneData.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
using mozilla::dom::ipc::StructuredCloneData;
|
||||
using mozilla::ipc::IPCResult;
|
||||
|
@ -60,5 +59,4 @@ void ServiceWorkerParent::MaybeSendDelete() {
|
|||
Unused << Send__delete__(this);
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
|
|
@ -9,8 +9,7 @@
|
|||
|
||||
#include "mozilla/dom/PServiceWorkerParent.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class IPCServiceWorkerDescriptor;
|
||||
class ServiceWorkerProxy;
|
||||
|
@ -40,7 +39,6 @@ class ServiceWorkerParent final : public PServiceWorkerParent {
|
|||
void MaybeSendDelete();
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif // mozilla_dom_serviceworkerparent_h__
|
||||
|
|
Загрузка…
Ссылка в новой задаче