Backed out changeset bbb39655cf71 (bug 1605934) for build bustage in widget/gtk/mozwayland/mozwayland.c
This commit is contained in:
@@ -990,7 +990,8 @@ struct MessageManagerReferentCount {
|
||||
|
||||
} // namespace
|
||||
|
||||
namespace mozilla::dom {
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
|
||||
class MessageManagerReporter final : public nsIMemoryReporter {
|
||||
~MessageManagerReporter() = default;
|
||||
@@ -1124,7 +1125,8 @@ MessageManagerReporter::CollectReports(nsIHandleReportCallback* aHandleReport,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
} // namespace mozilla::dom
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
|
||||
already_AddRefed<ChromeMessageBroadcaster>
|
||||
nsFrameMessageManager::GetGlobalMessageManager() {
|
||||
|
||||
@@ -13,7 +13,8 @@
|
||||
#include "nsTextFragmentImpl.h"
|
||||
#include <algorithm>
|
||||
|
||||
namespace mozilla::SSE2 {
|
||||
namespace mozilla {
|
||||
namespace SSE2 {
|
||||
|
||||
static inline bool is_zero(__m128i x) {
|
||||
return _mm_movemask_epi8(_mm_cmpeq_epi8(x, _mm_setzero_si128())) == 0xffff;
|
||||
@@ -63,4 +64,5 @@ int32_t FirstNon8Bit(const char16_t* str, const char16_t* end) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
} // namespace mozilla::SSE2
|
||||
} // namespace SSE2
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -25,7 +25,9 @@
|
||||
NS_LITERAL_STRING("dischargingtimechange")
|
||||
#define CHARGINGTIMECHANGE_EVENT_NAME NS_LITERAL_STRING("chargingtimechange")
|
||||
|
||||
namespace mozilla::dom::battery {
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace battery {
|
||||
|
||||
BatteryManager::BatteryManager(nsPIDOMWindowInner* aWindow)
|
||||
: DOMEventTargetHelper(aWindow),
|
||||
@@ -181,4 +183,6 @@ void BatteryManager::Notify(const hal::BatteryInformation& aBatteryInfo) {
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace mozilla::dom::battery
|
||||
} // namespace battery
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -13,7 +13,8 @@
|
||||
using namespace mozilla::layers;
|
||||
using namespace mozilla::gfx;
|
||||
|
||||
namespace mozilla::dom {
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
|
||||
static ImageBitmapFormat GetImageBitmapFormatFromSurfaceFromat(
|
||||
SurfaceFormat aSurfaceFormat) {
|
||||
@@ -199,4 +200,5 @@ uint32_t ImageUtils::GetBufferLength() const {
|
||||
return mImpl->GetBufferLength();
|
||||
}
|
||||
|
||||
} // namespace mozilla::dom
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -10,7 +10,8 @@
|
||||
#include "mozilla/dom/GeolocationPositionBinding.h"
|
||||
#include "mozilla/dom/GeolocationCoordinatesBinding.h"
|
||||
|
||||
namespace mozilla::dom {
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
|
||||
NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(GeolocationCoordinates, mPosition)
|
||||
NS_IMPL_CYCLE_COLLECTING_ADDREF(GeolocationCoordinates)
|
||||
@@ -64,4 +65,5 @@ GENERATE_COORDS_WRAPPED_GETTER_NULLABLE(Speed)
|
||||
#undef GENERATE_COORDS_WRAPPED_GETTER
|
||||
#undef GENERATE_COORDS_WRAPPED_GETTER_NULLABLE
|
||||
|
||||
} // namespace mozilla::dom
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -142,7 +142,8 @@ nsGeoPosition::GetCoords(nsIDOMGeoPositionCoords** aCoords) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
namespace mozilla::dom {
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
|
||||
NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(GeolocationPosition, mParent,
|
||||
mCoordinates)
|
||||
@@ -185,4 +186,5 @@ uint64_t GeolocationPosition::Timestamp() const {
|
||||
return rv;
|
||||
}
|
||||
|
||||
} // namespace mozilla::dom
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -9,7 +9,8 @@
|
||||
#include "mozilla/CycleCollectedJSContext.h" // for nsAutoMicroTask
|
||||
#include "Geolocation.h"
|
||||
|
||||
namespace mozilla::dom {
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
|
||||
NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(GeolocationPositionError, mParent)
|
||||
NS_IMPL_CYCLE_COLLECTION_ROOT_NATIVE(GeolocationPositionError, AddRef)
|
||||
@@ -63,4 +64,5 @@ void GeolocationPositionError::NotifyCallback(
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace mozilla::dom
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -19,7 +19,8 @@
|
||||
#include "nsObjectLoadingContent.h"
|
||||
#include "GeckoProfiler.h"
|
||||
|
||||
namespace mozilla::dom {
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
|
||||
class PluginDocument final : public MediaDocument, public nsIPluginDocument {
|
||||
public:
|
||||
@@ -257,7 +258,8 @@ PluginDocument::Print() {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
} // namespace mozilla::dom
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
|
||||
nsresult NS_NewPluginDocument(mozilla::dom::Document** aResult) {
|
||||
auto* doc = new mozilla::dom::PluginDocument();
|
||||
|
||||
@@ -141,7 +141,8 @@ namespace mozilla {
|
||||
MOZ_TYPE_SPECIFIC_SCOPED_POINTER_TEMPLATE(ScopedPRFileDesc, PRFileDesc,
|
||||
PR_Close);
|
||||
|
||||
namespace dom::indexedDB {
|
||||
namespace dom {
|
||||
namespace indexedDB {
|
||||
|
||||
using namespace mozilla::dom::quota;
|
||||
using namespace mozilla::ipc;
|
||||
@@ -27675,7 +27676,8 @@ nsresult FileHelper::SyncCopy(nsIInputStream* aInputStream,
|
||||
return rv;
|
||||
}
|
||||
|
||||
} // namespace dom::indexedDB
|
||||
} // namespace indexedDB
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
|
||||
#undef IDB_MOBILE
|
||||
|
||||
@@ -27,7 +27,9 @@
|
||||
#include "unicode/ucol.h"
|
||||
#include "xpcpublic.h"
|
||||
|
||||
namespace mozilla::dom::indexedDB {
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
namespace indexedDB {
|
||||
|
||||
/*
|
||||
Here's how we encode keys:
|
||||
@@ -885,4 +887,6 @@ nsresult Key::SetFromSource(T* aSource, uint32_t aIndex) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
} // namespace mozilla::dom::indexedDB
|
||||
} // namespace indexedDB
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -456,7 +456,9 @@ void PopException() {
|
||||
// Static callbacks that get routed back through the new C++ API
|
||||
//
|
||||
|
||||
namespace mozilla::plugins::parent {
|
||||
namespace mozilla {
|
||||
namespace plugins {
|
||||
namespace parent {
|
||||
|
||||
NPError _geturl(NPP npp, const char* relativeURL, const char* target) {
|
||||
if (!NS_IsMainThread()) {
|
||||
@@ -1881,4 +1883,6 @@ void _setcurrentasyncsurface(NPP instance, NPAsyncSurface* surface,
|
||||
inst->SetCurrentAsyncSurface(surface, changed);
|
||||
}
|
||||
|
||||
} // namespace mozilla::plugins::parent
|
||||
} /* namespace parent */
|
||||
} /* namespace plugins */
|
||||
} /* namespace mozilla */
|
||||
|
||||
@@ -154,7 +154,8 @@ static bool IsTypeInList(const nsCString& aMimeType, nsCString aTypeList) {
|
||||
return FindInReadable(commaSeparated, start, end);
|
||||
}
|
||||
|
||||
namespace mozilla::plugins {
|
||||
namespace mozilla {
|
||||
namespace plugins {
|
||||
class BlocklistPromiseHandler final
|
||||
: public mozilla::dom::PromiseNativeHandler {
|
||||
public:
|
||||
@@ -259,7 +260,8 @@ NS_IMPL_ISUPPORTS0(BlocklistPromiseHandler)
|
||||
bool BlocklistPromiseHandler::sPluginBlocklistStatesChangedSinceLastWrite =
|
||||
false;
|
||||
uint32_t BlocklistPromiseHandler::sPendingBlocklistStateRequests = 0;
|
||||
} // namespace mozilla::plugins
|
||||
} // namespace plugins
|
||||
} // namespace mozilla
|
||||
|
||||
nsPluginHost::nsPluginHost()
|
||||
: mPluginsLoaded(false),
|
||||
|
||||
@@ -77,7 +77,8 @@ nsresult NS_NewPrototypeDocumentContentSink(nsIContentSink** aResult,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
namespace mozilla::dom {
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
|
||||
PrototypeDocumentContentSink::PrototypeDocumentContentSink()
|
||||
: mNextSrcLoadWaiter(nullptr),
|
||||
@@ -1079,4 +1080,5 @@ nsresult PrototypeDocumentContentSink::AddAttributes(
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
} // namespace mozilla::dom
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -10,7 +10,8 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
namespace mozilla::gfx {
|
||||
namespace mozilla {
|
||||
namespace gfx {
|
||||
|
||||
MOZ_ALWAYS_INLINE
|
||||
__m128i Divide(__m128i aValues, __m128i aDivisor) {
|
||||
@@ -342,4 +343,5 @@ void AlphaBoxBlur::BoxBlur_SSE2(uint8_t* aData, int32_t aLeftLobe,
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace mozilla::gfx
|
||||
} // namespace gfx
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -13,7 +13,8 @@
|
||||
#include <cmath>
|
||||
#include "mozilla/Vector.h"
|
||||
|
||||
namespace mozilla::gfx {
|
||||
namespace mozilla {
|
||||
namespace gfx {
|
||||
|
||||
ConvolutionFilter::ConvolutionFilter()
|
||||
: mFilter(MakeUnique<SkConvolutionFilter1D>()) {}
|
||||
@@ -162,4 +163,5 @@ bool ConvolutionFilter::ComputeResizeFilter(ResizeMethod aResizeMethod,
|
||||
return mFilter->maxFilter() > 0 && mFilter->numValues() == aDstSize;
|
||||
}
|
||||
|
||||
} // namespace mozilla::gfx
|
||||
} // namespace gfx
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -42,7 +42,8 @@
|
||||
# include "ScaledFontDWrite.h"
|
||||
#endif
|
||||
|
||||
namespace mozilla::gfx {
|
||||
namespace mozilla {
|
||||
namespace gfx {
|
||||
|
||||
class GradientStopsSkia : public GradientStops {
|
||||
public:
|
||||
@@ -1884,4 +1885,5 @@ void DrawTargetSkia::MarkChanged() {
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace mozilla::gfx
|
||||
} // namespace gfx
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -202,7 +202,8 @@ void mozilla_UnlockFTLibrary(FT_Library aFTLibrary) {
|
||||
}
|
||||
#endif
|
||||
|
||||
namespace mozilla::gfx {
|
||||
namespace mozilla {
|
||||
namespace gfx {
|
||||
|
||||
#ifdef MOZ_ENABLE_FREETYPE
|
||||
FT_Library Factory::mFTLibrary = nullptr;
|
||||
@@ -1377,4 +1378,5 @@ void LogWStr(const wchar_t* aWStr, std::stringstream& aOut) {
|
||||
}
|
||||
#endif
|
||||
|
||||
} // namespace mozilla::gfx
|
||||
} // namespace gfx
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -13,7 +13,8 @@ static_assert(
|
||||
false, "If this file is built, FilterProcessing.h should know about it!");
|
||||
#endif
|
||||
|
||||
namespace mozilla::gfx {
|
||||
namespace mozilla {
|
||||
namespace gfx {
|
||||
|
||||
void FilterProcessing::ExtractAlpha_SSE2(const IntSize& size,
|
||||
uint8_t* sourceData,
|
||||
@@ -123,4 +124,5 @@ FilterProcessing::ApplyArithmeticCombine_SSE2(DataSourceSurface* aInput1,
|
||||
aInput1, aInput2, aK1, aK2, aK3, aK4);
|
||||
}
|
||||
|
||||
} // namespace mozilla::gfx
|
||||
} // namespace gfx
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -134,7 +134,8 @@ MOZ_ALWAYS_INLINE uint32_t Avg2(uint32_t a, uint32_t b) {
|
||||
return ((sum & mask) >> 1) + carry;
|
||||
}
|
||||
|
||||
namespace mozilla::gfx {
|
||||
namespace mozilla {
|
||||
namespace gfx {
|
||||
|
||||
void ImageHalfScaler::HalfImage2D_SSE2(uint8_t* aSource, int32_t aSourceStride,
|
||||
const IntSize& aSourceSize,
|
||||
@@ -330,4 +331,5 @@ void ImageHalfScaler::HalfImageHorizontal_SSE2(uint8_t* aSource,
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace mozilla::gfx
|
||||
} // namespace gfx
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -15,7 +15,8 @@
|
||||
|
||||
using namespace mozilla::gfx;
|
||||
|
||||
namespace mozilla::gfx {
|
||||
namespace mozilla {
|
||||
namespace gfx {
|
||||
|
||||
InlineTranslator::InlineTranslator() : mFontContext(nullptr) {}
|
||||
|
||||
@@ -109,4 +110,5 @@ already_AddRefed<DrawTarget> InlineTranslator::CreateDrawTarget(
|
||||
return drawTarget.forget();
|
||||
}
|
||||
|
||||
} // namespace mozilla::gfx
|
||||
} // namespace gfx
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
#include "JobScheduler.h"
|
||||
#include "mozilla/gfx/Logging.h"
|
||||
|
||||
namespace mozilla::gfx {
|
||||
namespace mozilla {
|
||||
namespace gfx {
|
||||
|
||||
void* ThreadCallback(void* threadData);
|
||||
|
||||
@@ -152,4 +153,5 @@ void EventObject::Wait() {
|
||||
mCond.Wait(&mMutex);
|
||||
}
|
||||
|
||||
} // namespace mozilla::gfx
|
||||
} // namespace gfx
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -8,7 +8,8 @@
|
||||
#include "UnscaledFontFreeType.h"
|
||||
#include "Logging.h"
|
||||
|
||||
namespace mozilla::gfx {
|
||||
namespace mozilla {
|
||||
namespace gfx {
|
||||
|
||||
NativeFontResourceFreeType::NativeFontResourceFreeType(
|
||||
UniquePtr<uint8_t[]>&& aFontData, uint32_t aDataLength,
|
||||
@@ -89,4 +90,5 @@ NativeFontResourceFontconfig::Create(uint8_t* aFontData, uint32_t aDataLength,
|
||||
}
|
||||
#endif
|
||||
|
||||
} // namespace mozilla::gfx
|
||||
} // namespace gfx
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -11,7 +11,8 @@
|
||||
#include "HelpersSkia.h"
|
||||
#include "PathHelpers.h"
|
||||
|
||||
namespace mozilla::gfx {
|
||||
namespace mozilla {
|
||||
namespace gfx {
|
||||
|
||||
PathBuilderSkia::PathBuilderSkia(const Matrix& aTransform, const SkPath& aPath,
|
||||
FillRule aFillRule)
|
||||
@@ -202,4 +203,5 @@ void PathSkia::StreamToSink(PathSink* aSink) const {
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace mozilla::gfx
|
||||
} // namespace gfx
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -21,7 +21,8 @@
|
||||
#include FT_LCD_FILTER_H
|
||||
#include FT_MULTIPLE_MASTERS_H
|
||||
|
||||
namespace mozilla::gfx {
|
||||
namespace mozilla {
|
||||
namespace gfx {
|
||||
|
||||
ScaledFontFontconfig::ScaledFontFontconfig(
|
||||
RefPtr<SharedFTFace>&& aFace, FcPattern* aPattern,
|
||||
@@ -520,4 +521,5 @@ already_AddRefed<UnscaledFont> UnscaledFontFontconfig::CreateFromFontDescriptor(
|
||||
return unscaledFont.forget();
|
||||
}
|
||||
|
||||
} // namespace mozilla::gfx
|
||||
} // namespace gfx
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -12,7 +12,8 @@
|
||||
#include "skia/include/core/SkData.h"
|
||||
#include "mozilla/CheckedInt.h"
|
||||
|
||||
namespace mozilla::gfx {
|
||||
namespace mozilla {
|
||||
namespace gfx {
|
||||
|
||||
SourceSurfaceSkia::SourceSurfaceSkia()
|
||||
: mFormat(SurfaceFormat::UNKNOWN),
|
||||
@@ -170,4 +171,5 @@ void SourceSurfaceSkia::DrawTargetWillChange() {
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace mozilla::gfx
|
||||
} // namespace gfx
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -9,7 +9,8 @@
|
||||
#include <immintrin.h>
|
||||
#include <tmmintrin.h>
|
||||
|
||||
namespace mozilla::gfx {
|
||||
namespace mozilla {
|
||||
namespace gfx {
|
||||
|
||||
template <bool aSwapRB>
|
||||
void UnpackRowRGB24_SSSE3(const uint8_t* aSrc, uint8_t* aDst, int32_t aLength);
|
||||
@@ -80,4 +81,5 @@ void UnpackRowRGB24_AVX2(const uint8_t* aSrc, uint8_t* aDst, int32_t aLength) {
|
||||
template void UnpackRowRGB24_AVX2<false>(const uint8_t*, uint8_t*, int32_t);
|
||||
template void UnpackRowRGB24_AVX2<true>(const uint8_t*, uint8_t*, int32_t);
|
||||
|
||||
} // namespace mozilla::gfx
|
||||
} // namespace gfx
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -8,7 +8,8 @@
|
||||
|
||||
#include <emmintrin.h>
|
||||
|
||||
namespace mozilla::gfx {
|
||||
namespace mozilla {
|
||||
namespace gfx {
|
||||
|
||||
// Load 1-3 pixels into a 4 pixel vector.
|
||||
static MOZ_ALWAYS_INLINE __m128i LoadRemainder_SSE2(const uint8_t* aSrc,
|
||||
@@ -371,4 +372,5 @@ template void Swizzle_SSE2<true, false>(const uint8_t*, int32_t, uint8_t*,
|
||||
template void Swizzle_SSE2<true, true>(const uint8_t*, int32_t, uint8_t*,
|
||||
int32_t, IntSize);
|
||||
|
||||
} // namespace mozilla::gfx
|
||||
} // namespace gfx
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -9,7 +9,8 @@
|
||||
#include <emmintrin.h>
|
||||
#include <tmmintrin.h>
|
||||
|
||||
namespace mozilla::gfx {
|
||||
namespace mozilla {
|
||||
namespace gfx {
|
||||
|
||||
template <bool aSwapRB>
|
||||
void UnpackRowRGB24(const uint8_t* aSrc, uint8_t* aDst, int32_t aLength);
|
||||
@@ -62,4 +63,5 @@ void UnpackRowRGB24_SSSE3(const uint8_t* aSrc, uint8_t* aDst, int32_t aLength) {
|
||||
template void UnpackRowRGB24_SSSE3<false>(const uint8_t*, uint8_t*, int32_t);
|
||||
template void UnpackRowRGB24_SSSE3<true>(const uint8_t*, uint8_t*, int32_t);
|
||||
|
||||
} // namespace mozilla::gfx
|
||||
} // namespace gfx
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -20,7 +20,8 @@
|
||||
#include <sys/stat.h>
|
||||
#include <sys/mman.h>
|
||||
|
||||
namespace mozilla::gfx {
|
||||
namespace mozilla {
|
||||
namespace gfx {
|
||||
|
||||
bool UnscaledFontFreeType::GetFontFileData(FontFileDataOutput aDataCallback,
|
||||
void* aBaton) {
|
||||
@@ -190,4 +191,5 @@ void UnscaledFontFreeType::ApplyVariationsToFace(
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace mozilla::gfx
|
||||
} // namespace gfx
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -46,7 +46,8 @@
|
||||
# include "gfxPlatformGtk.h"
|
||||
#endif
|
||||
|
||||
namespace mozilla::gl {
|
||||
namespace mozilla {
|
||||
namespace gl {
|
||||
|
||||
using namespace mozilla::gfx;
|
||||
using namespace mozilla::widget;
|
||||
@@ -1051,4 +1052,5 @@ GLContext* GLContextProviderGLX::GetGlobalContext() {
|
||||
/*static*/
|
||||
void GLContextProviderGLX::Shutdown() {}
|
||||
|
||||
} // namespace mozilla::gl
|
||||
} /* namespace gl */
|
||||
} /* namespace mozilla */
|
||||
|
||||
@@ -10,7 +10,8 @@
|
||||
|
||||
#include "GLContextProvider.h"
|
||||
|
||||
namespace mozilla::gl {
|
||||
namespace mozilla {
|
||||
namespace gl {
|
||||
|
||||
using namespace mozilla::gfx;
|
||||
using namespace mozilla::widget;
|
||||
@@ -80,4 +81,5 @@ void GLContextProviderWayland::Shutdown() {
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace mozilla::gl
|
||||
} /* namespace gl */
|
||||
} /* namespace mozilla */
|
||||
|
||||
@@ -34,7 +34,8 @@
|
||||
# include "SharedSurfaceGLX.h"
|
||||
#endif
|
||||
|
||||
namespace mozilla::gl {
|
||||
namespace mozilla {
|
||||
namespace gl {
|
||||
|
||||
using gfx::SurfaceFormat;
|
||||
|
||||
@@ -769,4 +770,5 @@ void ReadBuffer::SetReadBuffer(GLenum userMode) const {
|
||||
mGL->fReadBuffer(internalMode);
|
||||
}
|
||||
|
||||
} // namespace mozilla::gl
|
||||
} /* namespace gl */
|
||||
} /* namespace mozilla */
|
||||
|
||||
@@ -16,7 +16,8 @@
|
||||
#include "mozilla/layers/TextureForwarder.h"
|
||||
#include "mozilla/X11Util.h"
|
||||
|
||||
namespace mozilla::gl {
|
||||
namespace mozilla {
|
||||
namespace gl {
|
||||
|
||||
/* static */
|
||||
UniquePtr<SharedSurface_GLXDrawable> SharedSurface_GLXDrawable::Create(
|
||||
@@ -118,4 +119,5 @@ UniquePtr<SharedSurface> SurfaceFactory_GLXDrawable::CreateShared(
|
||||
mAllocator->IsSameProcess());
|
||||
}
|
||||
|
||||
} // namespace mozilla::gl
|
||||
} // namespace gl
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -73,7 +73,8 @@
|
||||
# include "mozilla/SandboxTestingChild.h"
|
||||
#endif
|
||||
|
||||
namespace mozilla::gfx {
|
||||
namespace mozilla {
|
||||
namespace gfx {
|
||||
|
||||
using namespace ipc;
|
||||
using namespace layers;
|
||||
@@ -586,4 +587,5 @@ void GPUParent::ActorDestroy(ActorDestroyReason aWhy) {
|
||||
XRE_ShutdownChildProcess();
|
||||
}
|
||||
|
||||
} // namespace mozilla::gfx
|
||||
} // namespace gfx
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -40,7 +40,8 @@
|
||||
# include "mozilla/layers/D3D11YCbCrImage.h"
|
||||
#endif
|
||||
|
||||
namespace mozilla::layers {
|
||||
namespace mozilla {
|
||||
namespace layers {
|
||||
|
||||
using namespace mozilla::gfx;
|
||||
using namespace mozilla::ipc;
|
||||
@@ -799,4 +800,5 @@ ImageContainer::ProducerID ImageContainer::AllocateProducerID() {
|
||||
return ++sProducerID;
|
||||
}
|
||||
|
||||
} // namespace mozilla::layers
|
||||
} // namespace layers
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -20,7 +20,8 @@
|
||||
|
||||
using namespace mozilla::gfx;
|
||||
|
||||
namespace mozilla::layers {
|
||||
namespace mozilla {
|
||||
namespace layers {
|
||||
|
||||
class BasicImageLayer : public ImageLayer, public BasicImplData {
|
||||
public:
|
||||
@@ -105,4 +106,5 @@ already_AddRefed<ImageLayer> BasicLayerManager::CreateImageLayer() {
|
||||
return layer.forget();
|
||||
}
|
||||
|
||||
} // namespace mozilla::layers
|
||||
} // namespace layers
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -22,7 +22,8 @@
|
||||
using namespace mozilla;
|
||||
using namespace mozilla::gfx;
|
||||
|
||||
namespace mozilla::layers {
|
||||
namespace mozilla {
|
||||
namespace layers {
|
||||
|
||||
X11TextureData::X11TextureData(gfx::IntSize aSize, gfx::SurfaceFormat aFormat,
|
||||
bool aClientDeallocation, bool aIsCrossProcess,
|
||||
@@ -136,4 +137,5 @@ X11TextureData* X11TextureData::Create(gfx::IntSize aSize,
|
||||
return texture;
|
||||
}
|
||||
|
||||
} // namespace mozilla::layers
|
||||
} // namespace layers
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -8,7 +8,8 @@
|
||||
#include "gfxXlibSurface.h"
|
||||
#include "gfx2DGlue.h"
|
||||
|
||||
namespace mozilla::layers {
|
||||
namespace mozilla {
|
||||
namespace layers {
|
||||
|
||||
using namespace mozilla::gfx;
|
||||
|
||||
@@ -45,4 +46,5 @@ SurfaceFormat X11TextureSourceBasic::ContentTypeToSurfaceFormat(
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace mozilla::layers
|
||||
} // namespace layers
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -70,7 +70,8 @@
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
namespace mozilla::layers {
|
||||
namespace mozilla {
|
||||
namespace layers {
|
||||
|
||||
using namespace mozilla::ipc;
|
||||
using namespace mozilla::gl;
|
||||
@@ -1906,4 +1907,5 @@ bool MappedYCbCrChannelData::CopyInto(MappedYCbCrChannelData& aDst) {
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace mozilla::layers
|
||||
} // namespace layers
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -14,7 +14,8 @@
|
||||
#include "gfxPlatform.h"
|
||||
#include "gfxXlibSurface.h"
|
||||
|
||||
namespace mozilla::layers {
|
||||
namespace mozilla {
|
||||
namespace layers {
|
||||
|
||||
using namespace mozilla::gfx;
|
||||
|
||||
@@ -100,4 +101,5 @@ already_AddRefed<gfx::DataSourceSurface> X11TextureHost::GetAsSurface() {
|
||||
return surf->GetDataSurface();
|
||||
}
|
||||
|
||||
} // namespace mozilla::layers
|
||||
} // namespace layers
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -8,7 +8,8 @@
|
||||
#include "mozilla/widget/WaylandDMABufSurface.h"
|
||||
#include "gfxPlatform.h"
|
||||
|
||||
namespace mozilla::layers {
|
||||
namespace mozilla {
|
||||
namespace layers {
|
||||
|
||||
using namespace gfx;
|
||||
|
||||
@@ -102,4 +103,5 @@ bool WaylandDMABUFTextureData::UpdateFromSurface(gfx::SourceSurface* aSurface) {
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace mozilla::layers
|
||||
} // namespace layers
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -11,7 +11,8 @@
|
||||
#include "mozilla/webrender/WebRenderAPI.h"
|
||||
#include "GLContextEGL.h"
|
||||
|
||||
namespace mozilla::layers {
|
||||
namespace mozilla {
|
||||
namespace layers {
|
||||
|
||||
WaylandDMABUFTextureHostOGL::WaylandDMABUFTextureHostOGL(
|
||||
TextureFlags aFlags, const SurfaceDescriptor& aDesc)
|
||||
@@ -134,4 +135,5 @@ void WaylandDMABUFTextureHostOGL::PushDisplayItems(
|
||||
!(mFlags & TextureFlags::NON_PREMULTIPLIED));
|
||||
}
|
||||
|
||||
} // namespace mozilla::layers
|
||||
} // namespace layers
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -9,7 +9,8 @@
|
||||
#include "gfx2DGlue.h"
|
||||
#include "GLContext.h"
|
||||
|
||||
namespace mozilla::layers {
|
||||
namespace mozilla {
|
||||
namespace layers {
|
||||
|
||||
using namespace mozilla::gfx;
|
||||
|
||||
@@ -86,4 +87,5 @@ SurfaceFormat X11TextureSourceOGL::ContentTypeToSurfaceFormat(
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace mozilla::layers
|
||||
} // namespace layers
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -15,7 +15,8 @@
|
||||
# include "mozilla/layers/TextureHostOGL.h"
|
||||
#endif
|
||||
|
||||
namespace mozilla::layers {
|
||||
namespace mozilla {
|
||||
namespace layers {
|
||||
|
||||
WebRenderTextureHost::WebRenderTextureHost(
|
||||
const SurfaceDescriptor& aDesc, TextureFlags aFlags, TextureHost* aTexture,
|
||||
@@ -229,4 +230,5 @@ bool WebRenderTextureHost::NeedsYFlip() const {
|
||||
return yFlip;
|
||||
}
|
||||
|
||||
} // namespace mozilla::layers
|
||||
} // namespace layers
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -23,7 +23,8 @@
|
||||
// RFC: https://tools.ietf.org/html/rfc2911#section-4.1.2
|
||||
#define IPP_JOB_NAME_LIMIT_LENGTH 255
|
||||
|
||||
namespace mozilla::gfx {
|
||||
namespace mozilla {
|
||||
namespace gfx {
|
||||
|
||||
PrintTarget::PrintTarget(cairo_surface_t* aCairoSurface, const IntSize& aSize)
|
||||
: mCairoSurface(aCairoSurface),
|
||||
@@ -201,4 +202,5 @@ void PrintTarget::RegisterPageDoneCallback(PageDoneCallback&& aCallback) {
|
||||
|
||||
void PrintTarget::UnregisterPageDoneCallback() { mPageDoneCallback = nullptr; }
|
||||
|
||||
} // namespace mozilla::gfx
|
||||
} // namespace gfx
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -8,7 +8,8 @@
|
||||
#include "cairo.h"
|
||||
#include "cairo-pdf.h"
|
||||
|
||||
namespace mozilla::gfx {
|
||||
namespace mozilla {
|
||||
namespace gfx {
|
||||
|
||||
static cairo_status_t write_func(void* closure, const unsigned char* data,
|
||||
unsigned int length) {
|
||||
@@ -68,4 +69,5 @@ void PrintTargetPDF::Finish() {
|
||||
mStream->Close();
|
||||
}
|
||||
|
||||
} // namespace mozilla::gfx
|
||||
} // namespace gfx
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -8,7 +8,8 @@
|
||||
#include "cairo.h"
|
||||
#include "cairo-ps.h"
|
||||
|
||||
namespace mozilla::gfx {
|
||||
namespace mozilla {
|
||||
namespace gfx {
|
||||
|
||||
static cairo_status_t write_func(void* closure, const unsigned char* data,
|
||||
unsigned int length) {
|
||||
@@ -93,4 +94,5 @@ void PrintTargetPS::Finish() {
|
||||
mStream->Close();
|
||||
}
|
||||
|
||||
} // namespace mozilla::gfx
|
||||
} // namespace gfx
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -9,7 +9,8 @@
|
||||
#include "nsString.h"
|
||||
#include <vector>
|
||||
|
||||
namespace mozilla::gfx {
|
||||
namespace mozilla {
|
||||
namespace gfx {
|
||||
|
||||
PrintTargetSkPDF::PrintTargetSkPDF(const IntSize& aSize,
|
||||
UniquePtr<SkWStream> aStream)
|
||||
@@ -123,4 +124,5 @@ already_AddRefed<DrawTarget> PrintTargetSkPDF::GetReferenceDrawTarget() {
|
||||
return do_AddRef(mRefDT);
|
||||
}
|
||||
|
||||
} // namespace mozilla::gfx
|
||||
} // namespace gfx
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -9,7 +9,8 @@
|
||||
#include "gfxPlatform.h"
|
||||
#include "mozilla/gfx/Logging.h"
|
||||
|
||||
namespace mozilla::gfx {
|
||||
namespace mozilla {
|
||||
namespace gfx {
|
||||
|
||||
/* static */
|
||||
already_AddRefed<PrintTargetThebes> PrintTargetThebes::CreateOrNull(
|
||||
@@ -95,4 +96,5 @@ nsresult PrintTargetThebes::EndPage() {
|
||||
|
||||
void PrintTargetThebes::Finish() { return mGfxSurface->Finish(); }
|
||||
|
||||
} // namespace mozilla::gfx
|
||||
} // namespace gfx
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -48,7 +48,8 @@ using namespace mozilla::gfx;
|
||||
using namespace mozilla::layers;
|
||||
using namespace mozilla::gl;
|
||||
|
||||
namespace mozilla::gfx {
|
||||
namespace mozilla {
|
||||
namespace gfx {
|
||||
|
||||
/**
|
||||
* When VR content is active, we run the tasks at 1ms
|
||||
@@ -1530,4 +1531,5 @@ VRManager::Observe(nsISupports* subject, const char* topic,
|
||||
|
||||
NS_IMPL_ISUPPORTS(VRManager, nsIObserver)
|
||||
|
||||
} // namespace mozilla::gfx
|
||||
} // namespace gfx
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -8,7 +8,8 @@
|
||||
#include "prthread.h"
|
||||
#include "mozilla/ClearOnShutdown.h"
|
||||
|
||||
namespace mozilla::gfx {
|
||||
namespace mozilla {
|
||||
namespace gfx {
|
||||
|
||||
static StaticRefPtr<VRPuppetCommandBuffer> sVRPuppetCommandBufferSingleton;
|
||||
|
||||
@@ -507,4 +508,5 @@ void VRPuppetCommandBuffer::EncodeStruct(nsTArray<uint64_t>& aBuffer,
|
||||
purgeBuffer();
|
||||
}
|
||||
|
||||
} // namespace mozilla::gfx
|
||||
} // namespace gfx
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -16,7 +16,8 @@
|
||||
#include "mozilla/dom/HTMLCanvasElement.h"
|
||||
#include "mozilla/layers/SyncObject.h" // for SyncObjectClient
|
||||
|
||||
namespace mozilla::gfx {
|
||||
namespace mozilla {
|
||||
namespace gfx {
|
||||
|
||||
VRLayerChild::VRLayerChild()
|
||||
: mCanvasElement(nullptr), mIPCOpen(false), mLastSubmittedFrameId(0) {
|
||||
@@ -139,4 +140,5 @@ void VRLayerChild::ReleaseIPDLReference() {
|
||||
Release();
|
||||
}
|
||||
|
||||
} // namespace mozilla::gfx
|
||||
} // namespace gfx
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -51,7 +51,8 @@ const uint32_t kVRHapticUpdateInterval = 5;
|
||||
|
||||
using namespace mozilla::gfx;
|
||||
|
||||
namespace mozilla::gfx {
|
||||
namespace mozilla {
|
||||
namespace gfx {
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -2363,4 +2364,5 @@ void OpenVRSession::UpdateTelemetry(VRSystemState& aSystemState) {
|
||||
aSystemState.displayState.droppedFrameCount = stats.m_nNumReprojectedFrames;
|
||||
}
|
||||
|
||||
} // namespace mozilla::gfx
|
||||
} // namespace gfx
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -19,7 +19,8 @@
|
||||
|
||||
using namespace mozilla::gfx;
|
||||
|
||||
namespace mozilla::gfx {
|
||||
namespace mozilla {
|
||||
namespace gfx {
|
||||
|
||||
PuppetSession::PuppetSession() : VRSession() {}
|
||||
|
||||
@@ -115,4 +116,5 @@ void PuppetSession::StopAllHaptics() {
|
||||
VRPuppetCommandBuffer::Get().StopAllHaptics();
|
||||
}
|
||||
|
||||
} // namespace mozilla::gfx
|
||||
} // namespace gfx
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -26,7 +26,8 @@
|
||||
# include <android/native_window_jni.h>
|
||||
#endif
|
||||
|
||||
namespace mozilla::wr {
|
||||
namespace mozilla {
|
||||
namespace wr {
|
||||
|
||||
/* static */
|
||||
UniquePtr<RenderCompositor> RenderCompositorEGL::Create(
|
||||
@@ -119,7 +120,7 @@ bool RenderCompositorEGL::Resume() {
|
||||
EGLNativeWindowType window = mWidget->AsAndroid()->GetEGLNativeWindow();
|
||||
JNIEnv* const env = jni::GetEnvForThread();
|
||||
ANativeWindow* const nativeWindow =
|
||||
ANativeWindow_fromSurface(env, reinterpret_cast<jobject>(window));
|
||||
ANativeWindow_fromSurface(env, reinterpret_cast<jobject>(window));
|
||||
const int32_t width = ANativeWindow_getWidth(nativeWindow);
|
||||
const int32_t height = ANativeWindow_getHeight(nativeWindow);
|
||||
mEGLSurfaceSize = LayoutDeviceIntSize(width, height);
|
||||
@@ -175,4 +176,5 @@ LayoutDeviceIntSize RenderCompositorEGL::GetBufferSize() {
|
||||
#endif
|
||||
}
|
||||
|
||||
} // namespace mozilla::wr
|
||||
} // namespace wr
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -10,7 +10,8 @@
|
||||
#include "mozilla/gfx/Logging.h"
|
||||
#include "ScopedGLHelpers.h"
|
||||
|
||||
namespace mozilla::wr {
|
||||
namespace mozilla {
|
||||
namespace wr {
|
||||
|
||||
RenderWaylandDMABUFTextureHostOGL::RenderWaylandDMABUFTextureHostOGL(
|
||||
WaylandDMABufSurface* aSurface)
|
||||
@@ -90,4 +91,5 @@ void RenderWaylandDMABUFTextureHostOGL::DeleteTextureHandle() {
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace mozilla::wr
|
||||
} // namespace wr
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -51,7 +51,8 @@ using namespace mozilla::dom;
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
namespace mozilla::hal {
|
||||
namespace mozilla {
|
||||
namespace hal {
|
||||
|
||||
static bool sInitialized = false;
|
||||
|
||||
@@ -479,4 +480,5 @@ void Shutdown() {
|
||||
sInitialized = false;
|
||||
}
|
||||
|
||||
} // namespace mozilla::hal
|
||||
} // namespace hal
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -80,7 +80,8 @@ class TestChild final : public mozilla::ipc::PBackgroundTestChild {
|
||||
|
||||
} // namespace
|
||||
|
||||
namespace mozilla::ipc {
|
||||
namespace mozilla {
|
||||
namespace ipc {
|
||||
|
||||
using mozilla::dom::UDPSocketChild;
|
||||
using mozilla::net::PUDPSocketChild;
|
||||
@@ -756,7 +757,8 @@ PFileDescriptorSetChild* BackgroundChildImpl::SendPFileDescriptorSetConstructor(
|
||||
return PBackgroundChild::SendPFileDescriptorSetConstructor(aFD);
|
||||
}
|
||||
|
||||
} // namespace mozilla::ipc
|
||||
} // namespace ipc
|
||||
} // namespace mozilla
|
||||
|
||||
mozilla::ipc::IPCResult TestChild::Recv__delete__(const nsCString& aTestArg) {
|
||||
MOZ_RELEASE_ASSERT(aTestArg == mTestArg,
|
||||
|
||||
@@ -112,7 +112,8 @@ class TestParent final : public mozilla::ipc::PBackgroundTestParent {
|
||||
|
||||
} // namespace
|
||||
|
||||
namespace mozilla::ipc {
|
||||
namespace mozilla {
|
||||
namespace ipc {
|
||||
|
||||
using mozilla::dom::BroadcastChannelParent;
|
||||
using mozilla::dom::ContentParent;
|
||||
@@ -1304,7 +1305,8 @@ BackgroundParentImpl::SendPFileDescriptorSetConstructor(
|
||||
return PBackgroundParent::SendPFileDescriptorSetConstructor(aFD);
|
||||
}
|
||||
|
||||
} // namespace mozilla::ipc
|
||||
} // namespace ipc
|
||||
} // namespace mozilla
|
||||
|
||||
void TestParent::ActorDestroy(ActorDestroyReason aWhy) {
|
||||
mozilla::ipc::AssertIsInMainOrSocketProcess();
|
||||
|
||||
@@ -6,7 +6,8 @@
|
||||
|
||||
#include "FileDescriptorSetChild.h"
|
||||
|
||||
namespace mozilla::ipc {
|
||||
namespace mozilla {
|
||||
namespace ipc {
|
||||
|
||||
FileDescriptorSetChild::FileDescriptorSetChild(
|
||||
const FileDescriptor& aFileDescriptor) {
|
||||
@@ -29,4 +30,5 @@ mozilla::ipc::IPCResult FileDescriptorSetChild::RecvAddFileDescriptor(
|
||||
return IPC_OK();
|
||||
}
|
||||
|
||||
} // namespace mozilla::ipc
|
||||
} // namespace ipc
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -6,7 +6,8 @@
|
||||
|
||||
#include "FileDescriptorSetParent.h"
|
||||
|
||||
namespace mozilla::ipc {
|
||||
namespace mozilla {
|
||||
namespace ipc {
|
||||
|
||||
FileDescriptorSetParent::FileDescriptorSetParent(
|
||||
const FileDescriptor& aFileDescriptor) {
|
||||
@@ -31,4 +32,5 @@ mozilla::ipc::IPCResult FileDescriptorSetParent::RecvAddFileDescriptor(
|
||||
return IPC_OK();
|
||||
}
|
||||
|
||||
} // namespace mozilla::ipc
|
||||
} // namespace ipc
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -21,7 +21,8 @@
|
||||
} \
|
||||
}
|
||||
|
||||
namespace mozilla::jsdebugger {
|
||||
namespace mozilla {
|
||||
namespace jsdebugger {
|
||||
|
||||
NS_IMPL_ISUPPORTS(JSDebugger, IJSDebugger)
|
||||
|
||||
@@ -68,4 +69,5 @@ JSDebugger::AddClass(JS::Handle<JS::Value> global, JSContext* cx) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
} // namespace mozilla::jsdebugger
|
||||
} // namespace jsdebugger
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -64,7 +64,8 @@ using mozilla::IsAsciiDigit;
|
||||
using JS::AutoCheckCannotGC;
|
||||
using JS::AutoStableStringChars;
|
||||
|
||||
namespace js::ctypes {
|
||||
namespace js {
|
||||
namespace ctypes {
|
||||
|
||||
static bool HasUnpairedSurrogate(const char16_t* chars, size_t nchars,
|
||||
char16_t* unpaired) {
|
||||
@@ -2318,7 +2319,8 @@ static bool GetObjectProperty(JSContext* cx, HandleObject obj,
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace js::ctypes
|
||||
} /* namespace ctypes */
|
||||
} /* namespace js */
|
||||
|
||||
using namespace js;
|
||||
using namespace js::ctypes;
|
||||
|
||||
@@ -17,7 +17,8 @@
|
||||
|
||||
using JS::AutoStableStringChars;
|
||||
|
||||
namespace js::ctypes {
|
||||
namespace js {
|
||||
namespace ctypes {
|
||||
|
||||
/*******************************************************************************
|
||||
** JSAPI function prototypes
|
||||
@@ -402,4 +403,5 @@ bool Library::Declare(JSContext* cx, unsigned argc, Value* vp) {
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace js::ctypes
|
||||
} // namespace ctypes
|
||||
} // namespace js
|
||||
|
||||
@@ -33,7 +33,8 @@
|
||||
using JS::RegExpFlag;
|
||||
using JS::RegExpFlags;
|
||||
|
||||
namespace js::frontend {
|
||||
namespace js {
|
||||
namespace frontend {
|
||||
|
||||
// Compare a bunch of `uint8_t` values (as returned by the tokenizer_) with
|
||||
// a string literal (and ONLY a string literal).
|
||||
@@ -5035,4 +5036,5 @@ JS::Result<ParseNode*> BinASTParser<Tok>::parseOptionalStatement(
|
||||
template class BinASTParser<BinASTTokenReaderContext>;
|
||||
template class BinASTParser<BinASTTokenReaderMultipart>;
|
||||
|
||||
} // namespace js::frontend
|
||||
} // namespace frontend
|
||||
} // namespace js
|
||||
|
||||
@@ -8,11 +8,13 @@
|
||||
|
||||
#include "vm/JSContext-inl.h"
|
||||
|
||||
namespace js::frontend {
|
||||
namespace js {
|
||||
namespace frontend {
|
||||
|
||||
BinASTParserBase::BinASTParserBase(JSContext* cx, ParseInfo& parseInfo,
|
||||
HandleScriptSourceObject sourceObject)
|
||||
: ParserSharedBase(cx, parseInfo, sourceObject,
|
||||
ParserSharedBase::Kind::BinASTParser) {}
|
||||
|
||||
} // namespace js::frontend
|
||||
} // namespace frontend
|
||||
} // namespace js
|
||||
|
||||
@@ -74,7 +74,8 @@
|
||||
//
|
||||
// They should be treated lazily (whenever we open a subscope), like bindings.
|
||||
|
||||
namespace js::frontend {
|
||||
namespace js {
|
||||
namespace frontend {
|
||||
|
||||
using UsedNamePtr = UsedNameTracker::UsedNameMap::Ptr;
|
||||
|
||||
@@ -810,4 +811,5 @@ BinASTParserPerTokenizer<Tok>::asFinalParser() const {
|
||||
template class BinASTParserPerTokenizer<BinASTTokenReaderContext>;
|
||||
template class BinASTParserPerTokenizer<BinASTTokenReaderMultipart>;
|
||||
|
||||
} // namespace js::frontend
|
||||
} // namespace frontend
|
||||
} // namespace js
|
||||
|
||||
@@ -12,7 +12,8 @@
|
||||
#include "js/Utility.h" // js_malloc
|
||||
#include "vm/StringType.h" // JSAtom
|
||||
|
||||
namespace js::frontend {
|
||||
namespace js {
|
||||
namespace frontend {
|
||||
|
||||
BinASTSourceMetadata::~BinASTSourceMetadata() {
|
||||
if (isMultipart()) {
|
||||
@@ -110,4 +111,6 @@ void BinASTSourceMetadataContext::release() {
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace js::frontend
|
||||
} // namespace frontend
|
||||
|
||||
} // namespace js
|
||||
|
||||
@@ -9,7 +9,8 @@
|
||||
#include "frontend/BinAST-macros.h"
|
||||
#include "js/Result.h"
|
||||
|
||||
namespace js::frontend {
|
||||
namespace js {
|
||||
namespace frontend {
|
||||
|
||||
template <typename T>
|
||||
using ErrorResult = mozilla::GenericErrorResult<T>;
|
||||
@@ -104,4 +105,5 @@ JS::Result<uint8_t> BinASTTokenReaderBase::readByte() {
|
||||
return *current_++;
|
||||
}
|
||||
|
||||
} // namespace js::frontend
|
||||
} // namespace frontend
|
||||
} // namespace js
|
||||
|
||||
@@ -26,7 +26,8 @@
|
||||
#include "vm/JSAtom.h" // AtomizeWTF8Chars
|
||||
#include "vm/JSScript.h" // ScriptSource
|
||||
|
||||
namespace js::frontend {
|
||||
namespace js {
|
||||
namespace frontend {
|
||||
|
||||
#ifdef BINAST_CX_MAGIC_HEADER // Context 0.1 doesn't implement the planned
|
||||
// magic header.
|
||||
@@ -3268,4 +3269,6 @@ mozilla::detail::IntegerRange<size_t> HuffmanLookup::suffixes(
|
||||
return mozilla::IntegerRange<size_t>(first, last + 1);
|
||||
}
|
||||
|
||||
} // namespace js::frontend
|
||||
} // namespace frontend
|
||||
|
||||
} // namespace js
|
||||
|
||||
@@ -20,7 +20,8 @@
|
||||
|
||||
#include "js/Result.h"
|
||||
|
||||
namespace js::frontend {
|
||||
namespace js {
|
||||
namespace frontend {
|
||||
|
||||
// The magic header, at the start of every binjs file.
|
||||
const char MAGIC_HEADER[] = "BINJS";
|
||||
@@ -473,4 +474,6 @@ JS::Result<Ok> BinASTTokenReaderMultipart::AutoTaggedTuple::done() {
|
||||
return Ok();
|
||||
}
|
||||
|
||||
} // namespace js::frontend
|
||||
} // namespace frontend
|
||||
|
||||
} // namespace js
|
||||
|
||||
@@ -79,7 +79,8 @@ using JS::AutoGCRooter;
|
||||
using JS::ReadOnlyCompileOptions;
|
||||
using JS::RegExpFlags;
|
||||
|
||||
namespace js::frontend {
|
||||
namespace js {
|
||||
namespace frontend {
|
||||
|
||||
using DeclaredNamePtr = ParseContext::Scope::DeclaredNamePtr;
|
||||
using AddDeclaredNamePtr = ParseContext::Scope::AddDeclaredNamePtr;
|
||||
@@ -10874,4 +10875,5 @@ template class Parser<SyntaxParseHandler, Utf8Unit>;
|
||||
template class Parser<FullParseHandler, char16_t>;
|
||||
template class Parser<SyntaxParseHandler, char16_t>;
|
||||
|
||||
} // namespace js::frontend
|
||||
} /* namespace frontend */
|
||||
} /* namespace js */
|
||||
|
||||
@@ -15,7 +15,8 @@
|
||||
#include "vm/Realm.h"
|
||||
#include "vm/Shape.h"
|
||||
|
||||
namespace js::vtune {
|
||||
namespace js {
|
||||
namespace vtune {
|
||||
|
||||
// VTune internals are not known to be threadsafe.
|
||||
static Mutex* VTuneMutex = nullptr;
|
||||
@@ -160,4 +161,5 @@ void UnmarkBytes(void* bytes, unsigned size) {
|
||||
if (ok != 1) printf("[!] VTune Integration: Failed to unload method.\n");
|
||||
}
|
||||
|
||||
} // namespace js::vtune
|
||||
} // namespace vtune
|
||||
} // namespace js
|
||||
|
||||
@@ -10,7 +10,8 @@
|
||||
#include "mozilla/VsyncDispatcher.h"
|
||||
#include "nsThreadUtils.h"
|
||||
|
||||
namespace mozilla::layout {
|
||||
namespace mozilla {
|
||||
namespace layout {
|
||||
|
||||
VsyncChild::VsyncChild()
|
||||
: mObservingVsync(false),
|
||||
@@ -90,4 +91,5 @@ mozilla::ipc::IPCResult VsyncChild::RecvVsyncRate(const float& aVsyncRate) {
|
||||
return IPC_OK();
|
||||
}
|
||||
|
||||
} // namespace mozilla::layout
|
||||
} // namespace layout
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -15,7 +15,8 @@
|
||||
|
||||
#include "nr_socket_proxy_config.h"
|
||||
|
||||
namespace mozilla::net {
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
|
||||
using std::shared_ptr;
|
||||
|
||||
@@ -121,4 +122,5 @@ void WebrtcTCPSocketWrapper::OnConnected(const nsCString& aProxyType) {
|
||||
&WebrtcTCPSocketCallback::OnConnected, aProxyType)));
|
||||
}
|
||||
|
||||
} // namespace mozilla::net
|
||||
} // namespace net
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -22,7 +22,8 @@
|
||||
# include <dlfcn.h>
|
||||
#endif
|
||||
|
||||
namespace mozilla::recordreplay {
|
||||
namespace mozilla {
|
||||
namespace recordreplay {
|
||||
|
||||
// clang-format off
|
||||
#define FOR_EACH_INTERFACE(Macro) \
|
||||
@@ -179,4 +180,5 @@ bool gIsMiddleman;
|
||||
|
||||
#undef ENABLE_RECORD_REPLAY
|
||||
|
||||
} // namespace mozilla::recordreplay
|
||||
} // namespace recordreplay
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -17,7 +17,8 @@
|
||||
|
||||
#include "NetworkInfoServiceImpl.h"
|
||||
|
||||
namespace mozilla::net {
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
|
||||
static nsresult ListInterfaceAddresses(int aFd, const char* aIface,
|
||||
AddrMapType& aAddrMap);
|
||||
@@ -93,4 +94,5 @@ static nsresult ListInterfaceAddresses(int aFd, const char* aInterface,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
} // namespace mozilla::net
|
||||
} // namespace net
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -19,7 +19,8 @@
|
||||
# error "Unsupported platform for nsNetworkInfoService! Check moz.build"
|
||||
#endif
|
||||
|
||||
namespace mozilla::net {
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
|
||||
NS_IMPL_ISUPPORTS(nsNetworkInfoService, nsINetworkInfoService)
|
||||
|
||||
@@ -92,4 +93,5 @@ nsresult nsNetworkInfoService::GetHostname(nsIGetHostnameListener* aListener) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
} // namespace mozilla::net
|
||||
} // namespace net
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -81,7 +81,8 @@ nsresult nsCacheServiceConstructor(nsISupports* aOuter, const nsIID& aIID,
|
||||
|
||||
#include "WebSocketChannel.h"
|
||||
#include "WebSocketChannelChild.h"
|
||||
namespace mozilla::net {
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
static BaseWebSocketChannel* WebSocketChannelConstructor(bool aSecure) {
|
||||
if (IsNeckoChild()) {
|
||||
return new WebSocketChannelChild(aSecure);
|
||||
@@ -112,7 +113,8 @@ static BaseWebSocketChannel* WebSocketChannelConstructor(bool aSecure) {
|
||||
WEB_SOCKET_HANDLER_CONSTRUCTOR(WebSocketChannel, false)
|
||||
WEB_SOCKET_HANDLER_CONSTRUCTOR(WebSocketSSLChannel, true)
|
||||
#undef WEB_SOCKET_HANDLER_CONSTRUCTOR
|
||||
} // namespace mozilla::net
|
||||
} // namespace net
|
||||
} // namespace mozilla
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
@@ -19,7 +19,8 @@
|
||||
#include "nsServiceManagerUtils.h"
|
||||
#include "nsThreadUtils.h"
|
||||
|
||||
namespace mozilla::net {
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
|
||||
AppCacheStorage::AppCacheStorage(nsILoadContextInfo* aInfo,
|
||||
nsIApplicationCache* aAppCache)
|
||||
@@ -167,4 +168,5 @@ NS_IMETHODIMP AppCacheStorage::GetCacheIndexEntryAttrs(
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
} // namespace mozilla::net
|
||||
} // namespace net
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -19,7 +19,8 @@
|
||||
#include "nsNetUtil.h"
|
||||
#include "nsServiceManagerUtils.h"
|
||||
|
||||
namespace mozilla::net {
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
|
||||
NS_IMPL_ISUPPORTS(CacheStorage, nsICacheStorage)
|
||||
|
||||
@@ -250,4 +251,5 @@ nsresult CacheStorage::ChooseApplicationCache(nsIURI* aURI,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
} // namespace mozilla::net
|
||||
} // namespace net
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -82,7 +82,8 @@ static_assert(
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
namespace mozilla::net {
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
LazyLogModule gHostResolverLog("nsHostResolver");
|
||||
#define LOG(args) \
|
||||
MOZ_LOG(mozilla::net::gHostResolverLog, mozilla::LogLevel::Debug, args)
|
||||
@@ -90,7 +91,8 @@ LazyLogModule gHostResolverLog("nsHostResolver");
|
||||
MOZ_LOG(mozilla::net::gHostResolverLog, mozilla::LogLevel::Error, args)
|
||||
#define LOG_ENABLED() \
|
||||
MOZ_LOG_TEST(mozilla::net::gHostResolverLog, mozilla::LogLevel::Debug)
|
||||
} // namespace mozilla::net
|
||||
} // namespace net
|
||||
} // namespace mozilla
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -37,7 +37,8 @@
|
||||
#include "nsIProxiedChannel.h"
|
||||
#include "nsIProxyInfo.h"
|
||||
|
||||
namespace mozilla::net {
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
|
||||
#define SUBRESOURCE_AUTH_DIALOG_DISALLOW_ALL 0
|
||||
#define SUBRESOURCE_AUTH_DIALOG_DISALLOW_CROSS_ORIGIN 1
|
||||
@@ -1663,4 +1664,5 @@ NS_IMPL_ISUPPORTS(nsHttpChannelAuthProvider, nsICancelable,
|
||||
nsIHttpChannelAuthProvider, nsIAuthPromptCallback,
|
||||
nsIHttpAuthenticatorCallback)
|
||||
|
||||
} // namespace mozilla::net
|
||||
} // namespace net
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -132,7 +132,8 @@
|
||||
|
||||
using mozilla::dom::Promise;
|
||||
|
||||
namespace mozilla::net {
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
|
||||
LazyLogModule gHttpLog("nsHttp");
|
||||
|
||||
@@ -293,7 +294,8 @@ nsHttpHandler::nsHttpHandler()
|
||||
mNextChannelId(1),
|
||||
mLastActiveTabLoadOptimizationLock(
|
||||
"nsHttpConnectionMgr::LastActiveTabLoadOptimization"),
|
||||
mSpdyBlacklistLock("nsHttpHandler::SpdyBlacklist"),
|
||||
mSpdyBlacklistLock(
|
||||
"nsHttpHandler::SpdyBlacklist"),
|
||||
mThroughCaptivePortal(false) {
|
||||
LOG(("Creating nsHttpHandler [this=%p].\n", this));
|
||||
|
||||
@@ -2723,4 +2725,5 @@ nsresult nsHttpHandler::CancelTransaction(HttpTransactionShell* trans,
|
||||
return mConnMgr->CancelTransaction(trans, reason);
|
||||
}
|
||||
|
||||
} // namespace mozilla::net
|
||||
} // namespace net
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -35,7 +35,8 @@
|
||||
/* a shorter name that better explains what it does */
|
||||
#define EINTR_RETRY(x) MOZ_TEMP_FAILURE_RETRY(x)
|
||||
|
||||
namespace mozilla::net {
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
|
||||
// period during which to absorb subsequent network change events, in
|
||||
// milliseconds
|
||||
@@ -1798,4 +1799,5 @@ void NetlinkService::GetIsLinkUp(bool* aIsUp) {
|
||||
*aIsUp = mLinkUp;
|
||||
}
|
||||
|
||||
} // namespace mozilla::net
|
||||
} // namespace net
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -15,7 +15,8 @@
|
||||
#include "mozStorageBindingParamsArray.h"
|
||||
#include "Variant.h"
|
||||
|
||||
namespace mozilla::storage {
|
||||
namespace mozilla {
|
||||
namespace storage {
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//// Local Helper Objects
|
||||
@@ -431,4 +432,5 @@ BindingParams::BindAdoptedBlobByIndex(uint32_t aIndex, uint8_t* aValue,
|
||||
return BindByIndex(aIndex, value);
|
||||
}
|
||||
|
||||
} // namespace mozilla::storage
|
||||
} // namespace storage
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -70,7 +70,8 @@ mozilla::LazyLogModule gStorageLog("mozStorage");
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
namespace mozilla::storage {
|
||||
namespace mozilla {
|
||||
namespace storage {
|
||||
|
||||
using mozilla::dom::quota::QuotaObject;
|
||||
|
||||
@@ -2278,4 +2279,5 @@ Connection::GetQuotaObjects(QuotaObject** aDatabaseQuotaObject,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
} // namespace mozilla::storage
|
||||
} // namespace storage
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -14,7 +14,8 @@
|
||||
#include "nsZipArchive.h"
|
||||
#include "xpc_make_class.h"
|
||||
|
||||
namespace mozilla::ctypes {
|
||||
namespace mozilla {
|
||||
namespace ctypes {
|
||||
|
||||
static char* UnicodeToNative(JSContext* cx, const char16_t* source,
|
||||
size_t slen) {
|
||||
@@ -97,4 +98,5 @@ Module::Call(nsIXPConnectWrappedNative* wrapper, JSContext* cx, JSObject* obj,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
} // namespace mozilla::ctypes
|
||||
} // namespace ctypes
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -10,7 +10,8 @@
|
||||
#include "nsNativeCharsetUtils.h"
|
||||
#include "xpc_make_class.h"
|
||||
|
||||
namespace mozilla::reflect {
|
||||
namespace mozilla {
|
||||
namespace reflect {
|
||||
|
||||
NS_IMPL_ISUPPORTS(Module, nsIXPCScriptable)
|
||||
|
||||
@@ -34,4 +35,5 @@ Module::Call(nsIXPConnectWrappedNative* wrapper, JSContext* cx, JSObject* obj,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
} // namespace mozilla::reflect
|
||||
} // namespace reflect
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -49,7 +49,8 @@ static void LogError(JSContext* aCx, const nsCString& aMessage) {
|
||||
}
|
||||
}
|
||||
|
||||
namespace mozilla::telemetry {
|
||||
namespace mozilla {
|
||||
namespace telemetry {
|
||||
|
||||
class Timer final {
|
||||
public:
|
||||
@@ -427,4 +428,5 @@ void Stopwatch::SetTestModeEnabled(const dom::GlobalObject& aGlobal,
|
||||
Timers::Singleton().SuppressErrors() = aTesting;
|
||||
}
|
||||
|
||||
} // namespace mozilla::telemetry
|
||||
} // namespace telemetry
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -1194,11 +1194,11 @@ static void internal_initFogotype(bool aUseTelemetry) {
|
||||
NS_WARNING("Couldn't find pingsender. Bailing on FOGotype");
|
||||
return;
|
||||
}
|
||||
# ifdef XP_WIN
|
||||
#ifdef XP_WIN
|
||||
pingsender->Append(NS_LITERAL_STRING("pingsender.exe"));
|
||||
# else
|
||||
#else
|
||||
pingsender->Append(NS_LITERAL_STRING("pingsender"));
|
||||
# endif
|
||||
#endif
|
||||
nsAutoString pingsenderPath;
|
||||
rv = pingsender->GetPath(pingsenderPath);
|
||||
if (NS_FAILED(rv)) {
|
||||
@@ -1986,7 +1986,8 @@ void RecordShutdownEndTimeStamp() {
|
||||
// EXTERNALLY VISIBLE FUNCTIONS in mozilla::Telemetry::
|
||||
// These are listed in Telemetry.h
|
||||
|
||||
namespace mozilla::Telemetry {
|
||||
namespace mozilla {
|
||||
namespace Telemetry {
|
||||
|
||||
// The external API for controlling recording state
|
||||
void SetHistogramRecordingEnabled(HistogramID aID, bool aEnabled) {
|
||||
@@ -2206,7 +2207,8 @@ void RecordOrigin(mozilla::Telemetry::OriginMetricID aId,
|
||||
|
||||
void ShutdownTelemetry() { TelemetryImpl::ShutdownTelemetry(); }
|
||||
|
||||
} // namespace mozilla::Telemetry
|
||||
} // namespace Telemetry
|
||||
} // namespace mozilla
|
||||
|
||||
NS_IMPL_COMPONENT_FACTORY(nsITelemetry) {
|
||||
return TelemetryImpl::CreateTelemetryInstance().downcast<nsISupports>();
|
||||
|
||||
@@ -18,7 +18,9 @@
|
||||
#include "TelemetryProcessData.h"
|
||||
#include "Telemetry.h"
|
||||
|
||||
namespace mozilla::Telemetry::Common {
|
||||
namespace mozilla {
|
||||
namespace Telemetry {
|
||||
namespace Common {
|
||||
|
||||
bool IsExpiredVersion(const char* aExpiration) {
|
||||
MOZ_ASSERT(aExpiration);
|
||||
@@ -197,4 +199,6 @@ SupportedProduct GetCurrentProduct() {
|
||||
#endif
|
||||
}
|
||||
|
||||
} // namespace mozilla::Telemetry::Common
|
||||
} // namespace Common
|
||||
} // namespace Telemetry
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -10,7 +10,8 @@
|
||||
#include "js/Array.h" // JS::NewArrayObject
|
||||
#include "mozilla/HangAnnotations.h"
|
||||
|
||||
namespace mozilla::Telemetry {
|
||||
namespace mozilla {
|
||||
namespace Telemetry {
|
||||
|
||||
// The maximum number of chrome hangs stacks that we're keeping.
|
||||
const size_t kMaxChromeStacksKept = 50;
|
||||
@@ -224,4 +225,5 @@ JSObject* CreateJSStackObject(JSContext* cx, const CombinedStacks& stacks) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
} // namespace mozilla::Telemetry
|
||||
} // namespace Telemetry
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -57,7 +57,8 @@ bool IsKeyValid(const nsACString& aKey) {
|
||||
|
||||
} // anonymous namespace
|
||||
|
||||
namespace mozilla::Telemetry {
|
||||
namespace mozilla {
|
||||
namespace Telemetry {
|
||||
|
||||
void KeyedStackCapturer::Capture(const nsACString& aKey) {
|
||||
MutexAutoLock captureStackMutex(mStackCapturerMutex);
|
||||
@@ -161,4 +162,5 @@ size_t KeyedStackCapturer::SizeOfExcludingThis(
|
||||
return n;
|
||||
}
|
||||
|
||||
} // namespace mozilla::Telemetry
|
||||
} // namespace Telemetry
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -26,7 +26,8 @@ static bool CompareByIndex(const StackFrame& a, const StackFrame& b) {
|
||||
|
||||
} // namespace
|
||||
|
||||
namespace mozilla::Telemetry {
|
||||
namespace mozilla {
|
||||
namespace Telemetry {
|
||||
|
||||
const size_t kMaxChromeStackDepth = 50;
|
||||
|
||||
@@ -185,4 +186,5 @@ ProcessedStack BatchProcessedStackGenerator::GetStackAndModules(
|
||||
#endif
|
||||
}
|
||||
|
||||
} // namespace mozilla::Telemetry
|
||||
} // namespace Telemetry
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -8,7 +8,8 @@
|
||||
#include "core/TelemetryCommon.h"
|
||||
#include "js/Array.h" // JS::NewArrayObject
|
||||
|
||||
namespace mozilla::Telemetry {
|
||||
namespace mozilla {
|
||||
namespace Telemetry {
|
||||
|
||||
TelemetryIOInterposeObserver::TelemetryIOInterposeObserver(nsIFile* aXreDir)
|
||||
: mCurStage(STAGE_STARTUP) {
|
||||
@@ -175,4 +176,5 @@ size_t TelemetryIOInterposeObserver::SizeOfExcludingThis(
|
||||
return size;
|
||||
}
|
||||
|
||||
} // namespace mozilla::Telemetry
|
||||
} // namespace Telemetry
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -101,7 +101,8 @@ extern mozilla::LazyLogModule gUrlClassifierDbServiceLog;
|
||||
#define LOG_ENABLED() \
|
||||
MOZ_LOG_TEST(gUrlClassifierDbServiceLog, mozilla::LogLevel::Debug)
|
||||
|
||||
namespace mozilla::safebrowsing {
|
||||
namespace mozilla {
|
||||
namespace safebrowsing {
|
||||
|
||||
const uint32_t STORE_MAGIC = 0x1231af3b;
|
||||
const uint32_t CURRENT_VERSION = 4;
|
||||
@@ -1177,4 +1178,5 @@ ChunkSet& HashStore::SubChunks() {
|
||||
return mSubChunks;
|
||||
}
|
||||
|
||||
} // namespace mozilla::safebrowsing
|
||||
} // namespace safebrowsing
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -24,7 +24,8 @@ static mozilla::LazyLogModule gUrlClassifierPrefixSetLog(
|
||||
#define LOG_ENABLED() \
|
||||
MOZ_LOG_TEST(gUrlClassifierPrefixSetLog, mozilla::LogLevel::Debug)
|
||||
|
||||
namespace mozilla::safebrowsing {
|
||||
namespace mozilla {
|
||||
namespace safebrowsing {
|
||||
|
||||
#define PREFIX_SIZE_FIXED 4
|
||||
|
||||
@@ -491,4 +492,5 @@ size_t VariableLengthPrefixSet::SizeOfIncludingThis(
|
||||
return n;
|
||||
}
|
||||
|
||||
} // namespace mozilla::safebrowsing
|
||||
} // namespace safebrowsing
|
||||
} // namespace mozilla
|
||||
|
||||
@@ -3634,14 +3634,16 @@ bool IsWaylandDisabled() {
|
||||
}
|
||||
#endif
|
||||
|
||||
namespace mozilla::startup {
|
||||
namespace mozilla {
|
||||
namespace startup {
|
||||
Result<nsCOMPtr<nsIFile>, nsresult> GetIncompleteStartupFile(nsIFile* aProfLD) {
|
||||
nsCOMPtr<nsIFile> crashFile;
|
||||
MOZ_TRY(aProfLD->Clone(getter_AddRefs(crashFile)));
|
||||
MOZ_TRY(crashFile->Append(FILE_STARTUP_INCOMPLETE));
|
||||
return std::move(crashFile);
|
||||
}
|
||||
} // namespace mozilla::startup
|
||||
} // namespace startup
|
||||
} // namespace mozilla
|
||||
|
||||
// Check whether the last startup attempt resulted in a crash within the
|
||||
// last 6 hours.
|
||||
|
||||
@@ -248,9 +248,11 @@ const char* XRE_ChildProcessTypeToAnnotation(GeckoProcessType aProcessType) {
|
||||
}
|
||||
}
|
||||
|
||||
namespace mozilla::startup {
|
||||
namespace mozilla {
|
||||
namespace startup {
|
||||
GeckoProcessType sChildProcessType = GeckoProcessType_Default;
|
||||
} // namespace mozilla::startup
|
||||
} // namespace startup
|
||||
} // namespace mozilla
|
||||
|
||||
#if defined(MOZ_WIDGET_ANDROID)
|
||||
void XRE_SetAndroidChildFds(JNIEnv* env, const XRE_AndroidChildFds& fds) {
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user