зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1620560 - Part 1: Apply modernize-concat-nested-namespaces to dom/file r=smaug
D95456 didn't properly include headers (`--header-filter=dom`). Differential Revision: https://phabricator.services.mozilla.com/D145665
This commit is contained in:
Родитель
d21908d6a0
Коммит
7d3887bb0b
|
@ -10,8 +10,7 @@
|
|||
#include "mozilla/dom/BlobImpl.h"
|
||||
#include "mozilla/ErrorResult.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class FileBlobImpl;
|
||||
|
||||
|
@ -152,7 +151,6 @@ class BaseBlobImpl : public BlobImpl {
|
|||
int64_t mLastModificationDate;
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif // mozilla_dom_BaseBlobImpl_h
|
||||
|
|
|
@ -12,8 +12,7 @@
|
|||
#include "nsString.h"
|
||||
#include "nsTArray.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class BlobImpl;
|
||||
|
||||
|
@ -31,7 +30,6 @@ class BlobSet final {
|
|||
FallibleTArray<RefPtr<BlobImpl>> mBlobImpls;
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif // mozilla_dom_BlobSet_h
|
||||
|
|
|
@ -9,8 +9,7 @@
|
|||
|
||||
#include "BaseBlobImpl.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class EmptyBlobImpl final : public BaseBlobImpl {
|
||||
public:
|
||||
|
@ -36,7 +35,6 @@ class EmptyBlobImpl final : public BaseBlobImpl {
|
|||
~EmptyBlobImpl() override = default;
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif // mozilla_dom_EmptyBlobImpl_h
|
||||
|
|
|
@ -11,8 +11,7 @@
|
|||
|
||||
class nsIFile;
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
struct ChromeFilePropertyBag;
|
||||
struct FilePropertyBag;
|
||||
|
@ -99,7 +98,6 @@ class File final : public Blob {
|
|||
~File() override;
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif // mozilla_dom_File_h
|
||||
|
|
|
@ -15,8 +15,7 @@
|
|||
|
||||
class nsIFile;
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class FileBlobImpl : public BlobImpl {
|
||||
public:
|
||||
|
@ -153,7 +152,6 @@ class FileBlobImpl : public BlobImpl {
|
|||
bool mWholeFile;
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif // mozilla_dom_FileBlobImpl_h
|
||||
|
|
|
@ -23,8 +23,7 @@
|
|||
class nsITimer;
|
||||
class nsIEventTarget;
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class Blob;
|
||||
class DOMException;
|
||||
|
@ -202,7 +201,6 @@ class FileReader final : public DOMEventTargetHelper,
|
|||
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(FileReader, FILEREADER_ID)
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif // mozilla_dom_FileReader_h
|
||||
|
|
|
@ -18,8 +18,7 @@
|
|||
#include "nsIIPCSerializableInputStream.h"
|
||||
#include "nsISeekableStream.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class MemoryBlobImpl final : public BaseBlobImpl {
|
||||
public:
|
||||
|
@ -155,7 +154,6 @@ class MemoryBlobImpl final : public BaseBlobImpl {
|
|||
RefPtr<DataOwner> mDataOwner;
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif // mozilla_dom_MemoryBlobImpl_h
|
||||
|
|
|
@ -14,8 +14,7 @@
|
|||
|
||||
class nsIEventTarget;
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class MutableBlobStreamListener final
|
||||
: public nsIStreamListener,
|
||||
|
@ -46,7 +45,6 @@ class MutableBlobStreamListener final
|
|||
nsCOMPtr<nsIEventTarget> mEventTarget;
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif // mozilla_dom_MutableBlobStreamListener_h
|
||||
|
|
|
@ -12,8 +12,7 @@
|
|||
#include "nsIMemoryReporter.h"
|
||||
#include "nsICloneableInputStream.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class StreamBlobImpl final : public BaseBlobImpl, public nsIMemoryReporter {
|
||||
MOZ_DEFINE_MALLOC_SIZE_OF(MallocSizeOf)
|
||||
|
@ -90,7 +89,6 @@ class StreamBlobImpl final : public BaseBlobImpl, public nsIMemoryReporter {
|
|||
int64_t mFileId;
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif // mozilla_dom_StreamBlobImpl_h
|
||||
|
|
|
@ -10,8 +10,7 @@
|
|||
#include "BaseBlobImpl.h"
|
||||
#include "nsIMemoryReporter.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class StringBlobImpl final : public BaseBlobImpl, public nsIMemoryReporter {
|
||||
MOZ_DEFINE_MALLOC_SIZE_OF(MallocSizeOf)
|
||||
|
@ -48,7 +47,6 @@ class StringBlobImpl final : public BaseBlobImpl, public nsIMemoryReporter {
|
|||
nsCString mData;
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif // mozilla_dom_StringBlobImpl_h
|
||||
|
|
|
@ -9,8 +9,7 @@
|
|||
|
||||
#include "FileBlobImpl.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
// This class is meant to be used by TemporaryIPCBlobParent only.
|
||||
// Don't use it for anything else, please!
|
||||
|
@ -43,7 +42,6 @@ class TemporaryFileBlobImpl final : public FileBlobImpl {
|
|||
ErrorResult& aRv) override;
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif // mozilla_dom_TemporaryFileBlobImpl_h
|
||||
|
|
|
@ -9,8 +9,7 @@
|
|||
|
||||
#include "mozilla/dom/PFileCreatorChild.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class FileCreatorChild final : public mozilla::dom::PFileCreatorChild {
|
||||
friend class mozilla::dom::PFileCreatorChild;
|
||||
|
@ -29,7 +28,6 @@ class FileCreatorChild final : public mozilla::dom::PFileCreatorChild {
|
|||
RefPtr<Promise> mPromise;
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif // mozilla_dom_FileCreatorChild_h
|
||||
|
|
|
@ -11,8 +11,7 @@
|
|||
|
||||
class nsIFile;
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class BlobImpl;
|
||||
|
||||
|
@ -41,7 +40,6 @@ class FileCreatorParent final : public mozilla::dom::PFileCreatorParent {
|
|||
bool mIPCActive;
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif // mozilla_dom_FileCreatorParent_h
|
||||
|
|
|
@ -10,8 +10,7 @@
|
|||
#include "mozilla/dom/PTemporaryIPCBlob.h"
|
||||
#include "mozilla/dom/PTemporaryIPCBlobChild.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class BlobImpl;
|
||||
class MutableBlobStorage;
|
||||
|
@ -49,7 +48,6 @@ class TemporaryIPCBlobChild final : public PTemporaryIPCBlobChild {
|
|||
bool mActive;
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif // mozilla_dom_TemporaryIPCBlobChild_h
|
||||
|
|
|
@ -12,8 +12,7 @@
|
|||
|
||||
class nsIFile;
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class TemporaryIPCBlobParent final : public PTemporaryIPCBlobParent {
|
||||
friend class PTemporaryIPCBlobParent;
|
||||
|
@ -39,7 +38,6 @@ class TemporaryIPCBlobParent final : public PTemporaryIPCBlobParent {
|
|||
bool mActive;
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif // mozilla_dom_TemporaryIPCBlobParent_h
|
||||
|
|
|
@ -36,8 +36,7 @@ inline NS_DEFINE_CID(kHOSTOBJECTURICID, NS_HOSTOBJECTURI_CID);
|
|||
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(nsIBlobURLMutator, NS_IBLOBURLMUTATOR_IID)
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
/**
|
||||
* These URIs refer to host objects with "blob" scheme.
|
||||
|
@ -119,7 +118,6 @@ class BlobURL final : public mozilla::net::nsSimpleURI {
|
|||
} \
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif /* mozilla_dom_BlobURL_h */
|
||||
|
|
|
@ -13,8 +13,7 @@
|
|||
|
||||
class nsIURI;
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class BlobImpl;
|
||||
|
||||
|
@ -31,7 +30,6 @@ class BlobURLChannel final : public nsBaseChannel {
|
|||
bool mContentStreamOpened;
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif /* mozilla_dom_BlobURLChannel_h */
|
||||
|
|
|
@ -13,8 +13,7 @@
|
|||
#include "nsIAsyncInputStream.h"
|
||||
#include "nsIInputStreamLength.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class BlobURL;
|
||||
class BlobURLChannel;
|
||||
|
@ -77,8 +76,6 @@ class BlobURLInputStream final : public nsIAsyncInputStream,
|
|||
nsCOMPtr<nsIEventTarget> mAsyncLengthWaitTarget;
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif /* mozilla_dom_BlobURLInputStream_h */
|
||||
|
|
|
@ -13,8 +13,7 @@
|
|||
|
||||
#define FONTTABLEURI_SCHEME "moz-fonttable"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace mozilla::dom {
|
||||
|
||||
class FontTableURIProtocolHandler final
|
||||
: public nsIProtocolHandler,
|
||||
|
@ -37,7 +36,6 @@ inline bool IsFontTableURI(nsIURI* aUri) {
|
|||
return aUri->SchemeIs(FONTTABLEURI_SCHEME);
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::dom
|
||||
|
||||
#endif /* FontTableURIProtocolHandler_h */
|
||||
|
|
Загрузка…
Ссылка в новой задаче