import changes from rmottola/Arctic-Fox:

- Bug 932865 - Add ThreadHangStats for collecting background hang telemetry; r=vladan (2f08a076b)
- Bug 932865 - Add way for telemetry to iterate over active threads; r=froydnj (535615d3d)
- Bug 1128768: Part 3 - Update BHR to allow for hang annotations; r=vladan (0b880a667)
- Bug 935092 - Add ThreadStackHelper to get a thread's pesudo-stack; r=BenWa (1422cfe4d)
- Bug 942488 - Don't report pseudo-stacks without SPS profiler. r=nchen (e160a7a08)
- Bug 946817 - Don't assert mPseudoStack on B2G. r=BenWa (9f846df3b)
- Bug 951431 - Don't get stacks during profiler runs on Linux; r=BenWa (15036e907)
- Bug 978262 - Ignore duplicate frames when getting BHR stack. r=froydnj (964721b1b)
- Bug 985155 - Add signal trampoline on ARM Linux to work around kernel bug. r=snorp (cb8a7846c)
- Bug 995730 - Convert xpcom/threads/ to Gecko style. r=froydnj (fe150404e)
- Bug 1013326 - Distinguish chrome and content scripts in pseudostack; r=snorp (81273c977)
- Bug 1023461 - Remove temporary stack buffer in ThreadStackHelper; r=snorp (cf5a717c2)
- Bug 1023461 - Record filename and line number for chrome JS entries; r=snorp (10c89808f)
- Bug 1022456 - Fix modelines in xpcom/{base,glue,io,string,threads}/. (48dbc0416)
- Bug 1016441 - Switch to using real-time signal in ThreadStackHelper; (2c5f818be)
- Bug 1016629 - b. Use RAII class to assign mStackToFill; r=snorp (769eae130)
- Bug 1016629 - c. Add define for ThreadStackHelper pseudostack support; r=snorp (67def0d2f)
- Bug 1016629 - d. Add and implement GetNativeStack method in ThreadStackHelper; r=snorp r=jseward (46c52f2be)
- Bug 1016629 - e. Implement platform-specific code for filling in context; r=snorp r=jseward (e6a66858b)
- Bug 1016629 - g. Avoid ASan flag when copying stack; r=snorp (0159628b5)
- Bug 1045176 - Unbreak build on non-SPS platforms after bug 1016629. (f1d60d838)
- Bug 1047123 - ThreadStackHelper should use UniquePtr<uint8_t[]>, not ScopedDeleteArray. r=jchen (0e4af313c)
- Bug 1049161 - Fix ThreadStackHelper thread handle permissions on Windows; r=snorp (c05172b1c)
- Bug 1050185 - Make ThreadStackHelper::FillThreadContext Valgrind-friendly. r=nchen (368725774)
- Bug 1050440 - Remove repeated js::RunScript frames in ThreadStackHelper (2a79600b3)
- Bug 1046841 - Fix more style violations in previously touched .cpp files in xpcom/. r=froydnj (02afe2493)
- Bug 1069694 - Remove or move around functions in OldDebugAPI. r=shu (177197302)
- Bug 1069694 - Remove OldDebugAPI from the browser. r=shu (b8c917d42)
- Bug 1100911 - For MacOS builds running on Valgrind, make ThreadStackHelper::GetStack be a no-op. r=nchen. (d99c02e16)
- Bug 1091758 - Report full paths for most chrome scripts; r=snorp (2b72e7878)
- Bug 1109291 - Include better paths for hanging chrome scripts in profile extensions directory; r=snorp r=bsmedberg (1997b9532)
- Bug 1113416 - Don't read stack labels inside hang monitor sighandler; r=nfroyd r=snorp (9688f6069)
- bug 1146027 - more final r=froydnj (7b0f295e5)
- Bug 1164090 - Check for Windows path separator in BHR file name; r=snorp (f014b4d78)
- Bug 1169034 - include <cstdlib> in ThreadStackHelper.cpp to declare correct overload for std::abs; r=jseward (874d4447e)
- Bug 1182996 - Fix and add missing namespace comments. rs=ehsan (054fc00b2)
- Bug 932865 - Collect thread hang stats in BackgroundHangMonitor; (ac80c8e9f)
- minor anticipated fixes to get it compiling (2bd701d15)
This commit is contained in:
2020-02-01 08:07:15 +08:00
parent 603e20b300
commit 8f529f64f5
1513 changed files with 4000 additions and 2645 deletions
+1
View File
@@ -215,6 +215,7 @@ WrapperFor(ProxyAccessible* aProxy)
{
return reinterpret_cast<AccessibleWrap*>(aProxy->GetWrapper());
}
} // namespace a11y
} // namespace mozilla
+1 -1
View File
@@ -19,7 +19,7 @@ class nsIContentParent;
namespace ipc {
class URIParams;
};
} // namespace ipc
enum DomainSetChangeType{
ACTIVATE_POLICY,
+1 -1
View File
@@ -197,6 +197,6 @@ struct ParamTraits<OverrideMapping>
}
};
}
} // namespace IPC
#endif // RegistryMessageUtils_h
+2 -2
View File
@@ -15,8 +15,8 @@
namespace mozilla {
namespace dom {
class PContentParent;
}
}
} // namespace dom
} // namespace mozilla
class nsIPrefBranch;
struct ChromePackage;
+1 -1
View File
@@ -16,7 +16,7 @@ namespace mozilla {
namespace dom {
class Link;
}
} // namespace dom
// 0057c9d3-b98e-4933-bdc5-0275d06705e1
#define IHISTORY_IID \
+3 -2
View File
@@ -8486,7 +8486,8 @@ private:
mRestorePresentationEvent;
nsRefPtr<nsDocShell::RestorePresentationEvent> mEvent;
};
}
} // namespace
nsresult
nsDocShell::RestoreFromHistory()
@@ -9526,7 +9527,7 @@ CopyFavicon(nsIURI* aOldURI, nsIURI* aNewURI, bool aInPrivateBrowsing)
#endif
}
} // anonymous namespace
} // namespace
class InternalLoadEvent : public nsRunnable
{
+3 -3
View File
@@ -95,6 +95,6 @@ AlarmHalService::Notify(
aSystemTimezoneChangeInfo.newTimezoneOffsetMinutes());
}
} // alarm
} // dom
} // mozilla
} // namespace alarm
} // namespace dom
} // namespace mozilla
+1 -1
View File
@@ -1594,7 +1594,7 @@ OpenFile(nsIPrincipal* aPrincipal,
return JS::AsmJSCache_Success;
}
} // anonymous namespace
} // namespace
typedef uint32_t AsmJSCookieType;
static const uint32_t sAsmJSCookie = 0x600d600d;
+1 -1
View File
@@ -19,7 +19,7 @@ namespace dom {
namespace quota {
class Client;
}
} // namespace quota
namespace asmjscache {
+2 -2
View File
@@ -137,5 +137,5 @@ AnonymousContent::WrapObject(JSContext* aCx,
return AnonymousContentBinding::Wrap(aCx, this, aGivenProto, aReflector);
}
} // dom namespace
} // mozilla namespace
} // namespace dom
} // namespace mozilla
+2 -2
View File
@@ -58,7 +58,7 @@ private:
nsCOMPtr<Element> mContentNode;
};
} // dom namespace
} // mozilla namespace
} // namespace dom
} // namespace mozilla
#endif // mozilla_dom_AnonymousContent_h
+2 -2
View File
@@ -82,7 +82,7 @@ protected:
uint64_t mDataBufferLen;
};
} // dom namespace
} // mozilla namespace
} // namespace dom
} // namespace mozilla
#endif // mozilla_dom_BlobSet_h
+1
View File
@@ -345,5 +345,6 @@ AllChildrenIterator::GetNextChild()
return nullptr;
}
} // namespace dom
} // namespace mozilla
+2 -2
View File
@@ -207,7 +207,7 @@ private:
friend class ConsoleProfileRunnable;
};
} // dom namespace
} // mozilla namespace
} // namespace dom
} // namespace mozilla
#endif /* mozilla_dom_Console_h */
+2 -2
View File
@@ -247,7 +247,7 @@ private:
void Ensure3DMatrix();
};
}
}
} // namespace dom
} // namespace mozilla
#endif /*MOZILLA_DOM_DOMMATRIX_H_*/
+2 -2
View File
@@ -72,7 +72,7 @@ public:
void SetW(double aW) { mW = aW; }
};
}
}
} // namespace dom
} // namespace mozilla
#endif /*MOZILLA_DOMPOINT_H_*/
+2 -2
View File
@@ -64,7 +64,7 @@ protected:
mutable nsRefPtr<QuadBounds> mBounds; // allocated lazily
};
}
}
} // namespace dom
} // namespace mozilla
#endif /*MOZILLA_DOMRECT_H_*/
+2 -3
View File
@@ -209,8 +209,7 @@ protected:
nsCOMPtr<nsISupports> mParent;
};
}
}
} // namespace dom
} // namespace mozilla
#endif /*MOZILLA_DOMRECT_H_*/
+2 -2
View File
@@ -25,7 +25,7 @@ Element::UnregisterActivityObserver()
OwnerDoc()->UnregisterActivityObserver(this);
}
}
}
} // namespace dom
} // namespace mozilla
#endif // mozilla_dom_ElementInlines_h
+2 -2
View File
@@ -1321,5 +1321,5 @@ BlobSet::AppendBlobImpls(const nsTArray<nsRefPtr<FileImpl>>& aBlobImpls)
return NS_OK;
}
} // dom namespace
} // mozilla namespace
} // namespace dom
} // namespace mozilla
+3 -3
View File
@@ -43,7 +43,7 @@ namespace dom {
namespace indexedDB {
class FileInfo;
};
} // namespace indexedDB
struct BlobPropertyBag;
struct ChromeFilePropertyBag;
@@ -890,7 +890,7 @@ private:
nsISupports *mParent;
};
} // dom namespace
} // file namespace
} // namespace dom
} // namespace mozilla
#endif // mozilla_dom_File_h
+1 -1
View File
@@ -2336,7 +2336,7 @@ private:
uint32_t mLength;
};
} // anonymous namespace
} // namespace
static void
AppendEncodedCharacters(const nsTextFragment* aText, StringBuilder& aBuilder)
+2 -2
View File
@@ -35,8 +35,8 @@ class nsIURI;
namespace mozilla {
namespace dom {
class Element;
}
}
} // namespace dom
} // namespace mozilla
/**
* Class that implements the nsIDOMNodeList interface (a list of children of
+1 -1
View File
@@ -20,7 +20,7 @@ namespace mozilla {
namespace layers {
class Image;
}
} // namespace layers
namespace dom {
+1 -1
View File
@@ -743,7 +743,7 @@ VibrateWindowListener::RemoveListener()
true /* use capture */);
}
} // anonymous namespace
} // namespace
void
Navigator::AddIdleObserver(MozIdleObserver& aIdleObserver, ErrorResult& aRv)
+3 -3
View File
@@ -38,8 +38,8 @@ class WakeLock;
class ArrayBufferViewOrBlobOrStringOrFormData;
struct MobileIdOptions;
class ServiceWorkerContainer;
}
}
} // namespace dom
} // namespace mozilla
#ifdef MOZ_B2G_RIL
class nsIDOMMozIccManager;
@@ -76,7 +76,7 @@ class MozGetUserMediaDevicesSuccessCallback;
namespace network {
class Connection;
} // namespace Connection;
} // namespace network
#ifdef MOZ_B2G_BT
namespace bluetooth {
+2 -2
View File
@@ -28,8 +28,8 @@ class HTMLContentElement;
class HTMLShadowElement;
class ShadowRootStyleSheetList;
class ShadowRoot : public DocumentFragment,
public nsStubMutationObserver
class ShadowRoot final : public DocumentFragment,
public nsStubMutationObserver
{
friend class ShadowRootStyleSheetList;
public:
+2 -2
View File
@@ -546,5 +546,5 @@ URL::CreateSearchParamsIfNeeded()
}
}
}
}
} // namespace dom
} // namespace mozilla
+3 -3
View File
@@ -30,7 +30,7 @@ struct objectURLOptions;
namespace workers {
class URLProxy;
}
} // namespace workers
class URL final : public URLSearchParamsObserver
{
@@ -158,7 +158,7 @@ private:
bool IsChromeURI(nsIURI* aURI);
}
}
} // namespace dom
} // namespace mozilla
#endif /* URL_h___ */
+1 -1
View File
@@ -357,7 +357,7 @@ void SerializeString(const nsCString& aInput, nsAString& aValue)
}
}
} // anonymous namespace
} // namespace
void
URLSearchParams::Serialize(nsAString& aValue) const
+9 -9
View File
@@ -314,7 +314,7 @@ private:
nsresult mRv;
};
} // anonymous namespace
} // namespace
nsresult
WebSocketImpl::PrintErrorOnConsole(const char *aBundleURI,
@@ -488,7 +488,7 @@ private:
const nsCString mReasonString;
};
} // anonymous namespace
} // namespace
nsresult
WebSocketImpl::CloseConnection(uint16_t aReasonCode,
@@ -628,7 +628,7 @@ private:
WebSocketImpl* mImpl;
};
} // anonymous namespace
} // namespace
nsresult
WebSocketImpl::Disconnect()
@@ -1181,7 +1181,7 @@ private:
ErrorResult& mRv;
};
} // anonymous namespace
} // namespace
already_AddRefed<WebSocket>
WebSocket::Constructor(const GlobalObject& aGlobal,
@@ -2122,7 +2122,7 @@ private:
WebSocketImpl* mWebSocketImpl;
};
} // anonymous namespace
} // namespace
void
WebSocketImpl::AddRefObject()
@@ -2553,7 +2553,7 @@ private:
nsRefPtr<WebSocketImpl> mImpl;
};
} // anonymous namespace
} // namespace
// Window closed, stop/reload button pressed, user navigated away from page, etc.
NS_IMETHODIMP
@@ -2724,7 +2724,7 @@ private:
nsCOMPtr<nsIRunnable> mEvent;
};
} // anonymous namespace
} // namespace
NS_IMETHODIMP
WebSocketImpl::Dispatch(nsIRunnable* aEvent, uint32_t aFlags)
@@ -2776,5 +2776,5 @@ WebSocket::AssertIsOnTargetThread() const
MOZ_ASSERT(NS_IsMainThread() == mIsMainThread);
}
} // dom namespace
} // mozilla namespace
} // namespace dom
} // namespace mozilla
+2 -1
View File
@@ -40,5 +40,6 @@ struct ChangesToFlush {
bool mFlushAnimations;
};
}
} // namespace mozilla
#endif /* mozFlushType_h___ */
+2 -2
View File
@@ -34,8 +34,8 @@ namespace css {
class StyleRule;
struct URLValue;
struct ImageValue;
}
}
} // namespace css
} // namespace mozilla
#define NS_ATTRVALUE_MAX_STRINGLENGTH_ATOM 12
+2 -2
View File
@@ -44,7 +44,7 @@ private:
namespace mozilla {
namespace dom {
void TraceBlackJS(JSTracer* aTrc, uint32_t aGCNumber, bool aIsShutdownGC);
}
}
} // namespace dom
} // namespace mozilla
#endif
+2 -2
View File
@@ -25,8 +25,8 @@ class nsISimpleEnumerator;
namespace mozilla {
namespace dom {
class DataTransfer;
}
}
} // namespace dom
} // namespace mozilla
//
// class nsContentAreaDragDrop, used to generate the dragdata
+2 -2
View File
@@ -32,8 +32,8 @@
namespace mozilla {
namespace dom {
class Element;
}
}
} // namespace dom
} // namespace mozilla
class nsBaseContentList : public nsINodeList
+1 -1
View File
@@ -25,7 +25,7 @@ class nsContentPermissionRequestProxy;
// That will mess up windows build.
namespace IPC {
class Principal;
}
} // namespace IPC
namespace mozilla {
namespace dom {
+2 -2
View File
@@ -43,8 +43,8 @@ class nsIApplicationCache;
namespace mozilla {
namespace css {
class Loader;
}
}
} // namespace css
} // namespace mozilla
#ifdef DEBUG
+4 -4
View File
@@ -431,7 +431,7 @@ private:
nsCString mCharset;
};
} // anonymous namespace
} // namespace
/* static */
TimeDuration
@@ -1982,9 +1982,9 @@ namespace dom {
namespace workers {
extern bool IsCurrentThreadRunningChromeWorker();
extern JSContext* GetCurrentThreadJSContext();
}
}
}
} // namespace workers
} // namespace dom
} // namespace mozilla
bool
nsContentUtils::ThreadsafeIsCallerChrome()
+2 -2
View File
@@ -82,8 +82,8 @@ private:
};
// Helper class that implements the nsIDOMMozNamedAttrMap interface.
class nsDOMAttributeMap : public nsIDOMMozNamedAttrMap
, public nsWrapperCache
class nsDOMAttributeMap final : public nsIDOMMozNamedAttrMap
, public nsWrapperCache
{
public:
typedef mozilla::dom::Attr Attr;
+2 -2
View File
@@ -13,8 +13,8 @@
namespace mozilla {
namespace dom {
class DOMRect;
}
}
} // namespace dom
} // namespace mozilla
/**
* Implementation of a DOM Caret Position, which is a node and offset within
+3 -3
View File
@@ -24,9 +24,9 @@ class File;
class DataChannel;
};
class nsDOMDataChannel : public mozilla::DOMEventTargetHelper,
public nsIDOMDataChannel,
public mozilla::DataChannelListener
class nsDOMDataChannel final : public mozilla::DOMEventTargetHelper,
public nsIDOMDataChannel,
public mozilla::DataChannelListener
{
public:
nsDOMDataChannel(already_AddRefed<mozilla::DataChannel>& aDataChannel,
+4 -4
View File
@@ -30,10 +30,10 @@ class File;
}
}
class nsDOMFileReader : public mozilla::dom::FileIOObject,
public nsIDOMFileReader,
public nsIInterfaceRequestor,
public nsSupportsWeakReference
class nsDOMFileReader final : public mozilla::dom::FileIOObject,
public nsIDOMFileReader,
public nsIInterfaceRequestor,
public nsSupportsWeakReference
{
typedef mozilla::ErrorResult ErrorResult;
typedef mozilla::dom::GlobalObject GlobalObject;
+3 -3
View File
@@ -23,9 +23,9 @@ static const nsDOMPerformanceNavigationType TYPE_NAVIGATE = 0;
static const nsDOMPerformanceNavigationType TYPE_RELOAD = 1;
static const nsDOMPerformanceNavigationType TYPE_BACK_FORWARD = 2;
static const nsDOMPerformanceNavigationType TYPE_RESERVED = 255;
}
}
}
} // namespace PerformanceNavigation
} // namespace dom
} // namespace mozilla
class nsDOMNavigationTiming final
{
+2 -2
View File
@@ -23,8 +23,8 @@ struct nsPoint;
namespace mozilla {
namespace layers {
class LayerTransactionChild;
}
}
} // namespace layers
} // namespace mozilla
class nsTranslationNodeList final : public nsITranslationNodeList
{
+5 -4
View File
@@ -568,6 +568,7 @@ struct PositionComparator
return 1;
}
};
} // namespace
bool
@@ -5964,7 +5965,7 @@ public:
NS_IMPL_ISUPPORTS(ProcessStackRunner, nsIRunnable);
} // anonymous namespace
} // namespace
void
nsDocument::EnqueueLifecycleCallback(nsIDocument::ElementCallbackType aType,
@@ -9631,7 +9632,7 @@ struct SuppressArgs
uint32_t mIncrease;
};
}
} // namespace
static bool
SuppressEventHandlingInDocument(nsIDocument* aDocument, void* aData)
@@ -9869,7 +9870,7 @@ public:
};
NS_IMPL_ISUPPORTS(StubCSSLoaderObserver, nsICSSLoaderObserver)
}
} // namespace
void
nsDocument::PreloadStyle(nsIURI* uri, const nsAString& charset,
@@ -9926,7 +9927,7 @@ struct UnsuppressArgs
nsTArray<nsCOMPtr<nsIDocument>> mDocs;
};
}
} // namespace
static bool
GetAndUnsuppressSubDocuments(nsIDocument* aDocument,
+3 -3
View File
@@ -41,12 +41,12 @@ class ContentParent;
class PBrowserParent;
class TabParent;
struct StructuredCloneData;
}
} // namespace dom
namespace layout {
class RenderFrameParent;
}
}
} // namespace layout
} // namespace mozilla
#if defined(MOZ_WIDGET_GTK)
typedef struct _GtkWidget GtkWidget;
+1 -1
View File
@@ -1305,7 +1305,7 @@ struct MessageManagerReferentCount
nsDataHashtable<nsStringHashKey, uint32_t> mMessageCounter;
};
} // anonymous namespace
} // namespace
namespace mozilla {
namespace dom {
+2 -2
View File
@@ -569,8 +569,8 @@ namespace mozilla {
namespace dom {
extern uint64_t
NextWindowID();
}
}
} // namespace dom
} // namespace mozilla
nsPIDOMWindow::nsPIDOMWindow(nsPIDOMWindow *aOuterWindow)
: mFrameElement(nullptr), mDocShell(nullptr), mModalStateDepth(0),
+1 -1
View File
@@ -267,7 +267,7 @@ CreateVoidVariant()
//
// We also use the same machinery for |returnValue|, which needs similar origin
// checks.
class DialogValueHolder : public nsISupports
class DialogValueHolder final : public nsISupports
{
public:
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
+1 -1
View File
@@ -20,7 +20,7 @@
class nsIContent;
class nsIAtom;
class nsHTMLContentSerializer : public nsXHTMLContentSerializer {
class nsHTMLContentSerializer final : public nsXHTMLContentSerializer {
public:
nsHTMLContentSerializer();
virtual ~nsHTMLContentSerializer();
+1 -1
View File
@@ -275,7 +275,7 @@ class BlobURLsReporter final : public nsIMemoryReporter
NS_IMPL_ISUPPORTS(BlobURLsReporter, nsIMemoryReporter)
}
} // namespace mozilla
void
nsHostObjectProtocolHandler::Init(void)
+2 -2
View File
@@ -25,8 +25,8 @@ class DOMMediaStream;
namespace dom {
class FileImpl;
class MediaSource;
}
}
} // namespace dom
} // namespace mozilla
class nsHostObjectProtocolHandler : public nsIProtocolHandler
{
+1 -1
View File
@@ -2697,7 +2697,7 @@ struct SelectorMatchInfo {
nsCSSSelectorList* const mSelectorList;
TreeMatchContext& mMatchContext;
};
}
} // namespace
// Given an id, find elements with that id under aRoot that match aMatchInfo if
// any is provided. If no SelectorMatchInfo is provided, just find the ones
+1 -1
View File
@@ -1317,7 +1317,7 @@ private:
nsCOMPtr<imgIRequest> mRequest;
};
} // anonymous namespace
} // namespace
void
nsImageLoadingContent::MakePendingRequestCurrent()
+2 -2
View File
@@ -27,8 +27,8 @@ namespace mozilla {
namespace dom {
class AutoJSAPI;
class Element;
}
}
} // namespace dom
} // namespace mozilla
class nsJSUtils
{
+2 -2
View File
@@ -29,8 +29,8 @@ template<class T> struct already_AddRefed;
namespace mozilla {
namespace dom {
class NodeInfo;
}
}
} // namespace dom
} // namespace mozilla
class nsNodeInfoManager final
{
+2 -2
View File
@@ -35,8 +35,8 @@ namespace mozilla {
namespace dom {
template<typename T> class Sequence;
struct MozPluginParameter;
}
}
} // namespace dom
} // namespace mozilla
class nsObjectLoadingContent : public nsImageLoadingContent
, public nsIStreamListener
+3 -3
View File
@@ -38,11 +38,11 @@ namespace mozilla {
namespace dom {
class AudioContext;
class Element;
}
} // namespace dom
namespace gfx {
class VRHMDInfo;
}
}
} // namespace gfx
} // namespace mozilla
// Popup control state enum. The values in this enum must go from most
// permissive to least permissive so that it's safe to push state in
+2 -2
View File
@@ -24,8 +24,8 @@ namespace mozilla {
class ErrorResult;
namespace dom {
class PerformanceEntry;
}
}
} // namespace dom
} // namespace mozilla
// Script "performance.timing" object
class nsPerformanceTiming final : public nsWrapperCache
+3 -3
View File
@@ -24,13 +24,13 @@ class nsIURI;
namespace JS {
class SourceBufferHolder;
}
} // namespace JS
namespace mozilla {
namespace dom {
class AutoJSAPI;
}
}
} // namespace dom
} // namespace mozilla
//////////////////////////////////////////////////////////////
// Script loader implementation
+2 -2
View File
@@ -20,8 +20,8 @@
namespace mozilla {
namespace css {
class StyleRule;
}
}
} // namespace css
} // namespace mozilla
typedef mozilla::dom::Element nsStyledElementBase;
+2 -2
View File
@@ -167,8 +167,8 @@ FirstNon8BitUnvectorized(const char16_t *str, const char16_t *end)
namespace mozilla {
namespace SSE2 {
int32_t FirstNon8Bit(const char16_t *str, const char16_t *end);
}
}
} // namespace SSE2
} // namespace mozilla
#endif
/*
+1 -1
View File
@@ -26,7 +26,7 @@ class EventChainPreVisitor;
#include "nsTHashtable.h"
#include "nsHashKeys.h"
class nsWindowRoot : public nsPIWindowRoot
class nsWindowRoot final : public nsPIWindowRoot
{
public:
explicit nsWindowRoot(nsPIDOMWindow* aWindow);
+1
View File
@@ -968,6 +968,7 @@ DoGetOrCreateDOMReflector(JSContext* cx, T* value,
return JS_WrapValue(cx, rval);
}
} // namespace binding_detail
// Create a JSObject wrapping "value", if there isn't one already, and store it
+1 -1
View File
@@ -65,6 +65,6 @@ struct ParamTraits<mozilla::ErrorResult>
}
};
}
} // namespace IPC
#endif
+1 -1
View File
@@ -22,7 +22,7 @@
namespace IPC {
class Message;
template <typename> struct ParamTraits;
}
} // namespace IPC
namespace mozilla {
+1
View File
@@ -41,6 +41,7 @@ public:
DataType mData;
};
} // namespace binding_detail
template<typename DataType>
+1 -1
View File
@@ -24,7 +24,7 @@ USING_BLUETOOTH_NAMESPACE
namespace {
StaticRefPtr<BluetoothHidManager> sBluetoothHidManager;
bool sInShutdown = false;
} // anonymous namespace
} // namespace
NS_IMETHODIMP
BluetoothHidManager::Observe(nsISupports* aSubject,
@@ -32,7 +32,7 @@ namespace {
bool sInShutdown = false;
static BluetoothA2dpInterface* sBtA2dpInterface;
static BluetoothAvrcpInterface* sBtAvrcpInterface;
} // anonymous namespace
} // namespace
/*
* This function maps attribute id and returns corresponding values
@@ -18,7 +18,7 @@ USING_BLUETOOTH_NAMESPACE
namespace {
StaticRefPtr<BluetoothHfpManager> sBluetoothHfpManager;
bool sInShutdown = false;
} // anonymous namespace
} // namespace
/**
* nsIObserver function
@@ -55,7 +55,7 @@ namespace {
// The mechanism should be revised once we know the exact time at which
// Dialer stops playing.
static int sBusyToneInterval = 3700; //unit: ms
} // anonymous namespace
} // namespace
const int BluetoothHfpManager::MAX_NUM_CLIENTS = 1;
+1 -1
View File
@@ -26,7 +26,7 @@ USING_BLUETOOTH_NAMESPACE
namespace {
StaticRefPtr<BluetoothA2dpManager> sBluetoothA2dpManager;
bool sInShutdown = false;
} // anonymous namespace
} // namespace
NS_IMETHODIMP
BluetoothA2dpManager::Observe(nsISupports* aSubject,
+1 -1
View File
@@ -97,7 +97,7 @@ namespace {
// Dialer stops playing.
static int sBusyToneInterval = 3700; //unit: ms
#endif // MOZ_B2G_RIL
} // anonymous namespace
} // namespace
#ifdef MOZ_B2G_RIL
/* CallState for sCINDItems[CINDType::CALL].value
+3 -3
View File
@@ -378,7 +378,7 @@ private:
bool mEnabled;
};
} // anonymous namespace
} // namespace
/* static */ bool
BroadcastChannel::IsEnabled(JSContext* aCx, JSObject* aGlobal)
@@ -791,5 +791,5 @@ NS_INTERFACE_MAP_END_INHERITING(DOMEventTargetHelper)
NS_IMPL_ADDREF_INHERITED(BroadcastChannel, DOMEventTargetHelper)
NS_IMPL_RELEASE_INHERITED(BroadcastChannel, DOMEventTargetHelper)
} // dom namespace
} // mozilla namespace
} // namespace dom
} // namespace mozilla
+2 -2
View File
@@ -19,13 +19,13 @@ namespace mozilla {
namespace ipc {
class PrincipalInfo;
}
} // namespace ipc
namespace dom {
namespace workers {
class WorkerFeature;
}
} // namespace workers
class BroadcastChannelChild;
class BroadcastChannelMessage;
@@ -127,5 +127,5 @@ BroadcastChannelChild::ActorDestroy(ActorDestroyReason aWhy)
mActorDestroyed = true;
}
} // dom namespace
} // mozilla namespace
} // namespace dom
} // namespace mozilla
+3 -3
View File
@@ -11,7 +11,7 @@ namespace mozilla {
namespace ipc {
class BackgroundChildImpl;
}
} // namespace ipc
namespace dom {
@@ -51,7 +51,7 @@ private:
bool mActorDestroyed;
};
} // dom namespace
} // mozilla namespace
} // namespace dom
} // namespace mozilla
#endif // mozilla_dom_BroadcastChannelChild_h
@@ -116,5 +116,5 @@ BroadcastChannelParent::CheckAndDeliver(const ClonedMessageData& aData,
}
}
} // dom namespace
} // mozilla namespace
} // namespace dom
} // namespace mozilla
@@ -46,7 +46,7 @@ private:
bool mPrivateBrowsing;
};
} // dom namespace
} // mozilla namespace
} // namespace dom
} // namespace mozilla
#endif // mozilla_dom_BroadcastChannelParent_h
@@ -23,7 +23,7 @@ namespace {
BroadcastChannelService* sInstance = nullptr;
} // anonymous namespace
} // namespace
BroadcastChannelService::BroadcastChannelService()
{
@@ -138,7 +138,7 @@ PostMessageEnumerator(nsPtrHashKey<BroadcastChannelParent>* aKey, void* aPtr)
return PL_DHASH_NEXT;
}
} // anonymous namespace
} // namespace
void
BroadcastChannelService::PostMessage(BroadcastChannelParent* aParent,
@@ -155,5 +155,5 @@ BroadcastChannelService::PostMessage(BroadcastChannelParent* aParent,
mAgents.EnumerateEntries(PostMessageEnumerator, &data);
}
} // dom namespace
} // mozilla namespace
} // namespace dom
} // namespace mozilla
@@ -42,7 +42,7 @@ private:
nsTHashtable<nsPtrHashKey<BroadcastChannelParent>> mAgents;
};
} // dom namespace
} // mozilla namespace
} // namespace dom
} // namespace mozilla
#endif // mozilla_dom_BroadcastChannelService_h
+1 -1
View File
@@ -127,7 +127,7 @@ DispatchCustomDOMEvent(Element* aFrameElement, const nsAString& aEventName,
return NS_SUCCEEDED(rv);
}
} // anonymous namespace
} // namespace
namespace mozilla {
+1 -1
View File
@@ -18,7 +18,7 @@ namespace mozilla {
namespace dom {
class TabParent;
}
} // namespace dom
/**
* BrowserElementParent implements a portion of the parent-process side of
+2 -2
View File
@@ -14,7 +14,7 @@ namespace mozilla {
namespace ipc {
class PBackgroundParent;
class PrincipalInfo;
}
} // namespace ipc
namespace dom {
namespace cache {
@@ -58,7 +58,7 @@ DeallocPCacheStorageChild(PCacheStorageChild* aActor);
void
DeallocPCacheStorageParent(PCacheStorageParent* aActor);
} // namesapce cache
} // namespace cache
} // namespace dom
} // namespace mozilla
+1 -1
View File
@@ -129,7 +129,7 @@ CleanupParentFds(CacheReadStreamOrVoid& aReadStreamOrVoid, CleanupAction aAction
CleanupParentFds(aReadStreamOrVoid.get_CacheReadStream(), aAction);
}
} // anonymous namespace
} // namespace
namespace mozilla {
namespace dom {
+1 -1
View File
@@ -21,7 +21,7 @@ class ErrorResult;
namespace ipc {
class PBackgroundParent;
}
} // namespace ipc
namespace dom {
+1 -1
View File
@@ -65,7 +65,7 @@ IsValidPutRequestMethod(const OwningRequestOrUSVString& aRequest,
return IsValidPutRequestMethod(*aRequest.GetAsRequest().get(), aRv);
}
} // anonymous namespace
} // namespace
namespace mozilla {
namespace dom {
+1 -1
View File
@@ -165,4 +165,4 @@ CacheChild::NoteDeletedActor()
} // namespace cache
} // namespace dom
} // namesapce mozilla
} // namespace mozilla
+1 -1
View File
@@ -54,7 +54,7 @@ AddFeatureToStreamChild(const CacheRequest& aRequest, Feature* aFeature)
AddFeatureToStreamChild(aRequest.body().get_CacheReadStream(), aFeature);
}
} // anonymous namespace
} // namespace
CacheOpChild::CacheOpChild(Feature* aFeature, nsIGlobalObject* aGlobal,
Promise* aPromise)
+1 -1
View File
@@ -16,7 +16,7 @@
namespace mozilla {
namespace ipc {
class PBackgroundParent;
}
} // namespace ipc
namespace dom {
namespace cache {
+1 -1
View File
@@ -101,4 +101,4 @@ CacheParent::RecvTeardown()
} // namespace cache
} // namespace dom
} // namesapce mozilla
} // namespace mozilla
+2 -2
View File
@@ -25,7 +25,7 @@ class ErrorResult;
namespace ipc {
class PrincipalInfo;
}
} // namespace ipc
namespace dom {
@@ -33,7 +33,7 @@ class Promise;
namespace workers {
class WorkerPrivate;
}
} // namespace workers
namespace cache {
+1 -1
View File
@@ -53,7 +53,7 @@ private:
nsRefPtr<ManagerId> mManagerId;
};
} // namesapce cache
} // namespace cache
} // namespace dom
} // namespace mozilla
+1 -1
View File
@@ -54,7 +54,7 @@ private:
const QuotaInfo mQuotaInfo;
};
} // anonymous namespace
} // namespace
namespace mozilla {
namespace dom {
+2 -2
View File
@@ -35,7 +35,7 @@ namespace {
const int32_t kLatestSchemaVersion = 6;
const int32_t kMaxEntriesPerStatement = 255;
} // anonymous namespace
} // namespace
// If any of the static_asserts below fail, it means that you have changed
// the corresponding WebIDL enum in a way that may be incompatible with the
@@ -1562,7 +1562,7 @@ ExtractId(mozIStorageStatement* aState, uint32_t aPos, nsID* aIdOut)
return rv;
}
} // anonymouns namespace
} // namespace
} // namespace db
} // namespace cache
+1 -1
View File
@@ -15,7 +15,7 @@ namespace mozilla {
namespace workers {
class WorkerPrivate;
}
} // namespace workers
namespace dom {
namespace cache {
+2 -2
View File
@@ -36,7 +36,7 @@ nsresult
BodyIdToFile(nsIFile* aBaseDir, const nsID& aId, BodyFileType aType,
nsIFile** aBodyFileOut);
} // anonymous namespace
} // namespace
// static
nsresult
@@ -317,7 +317,7 @@ BodyIdToFile(nsIFile* aBaseDir, const nsID& aId, BodyFileType aType,
return rv;
}
} // anonymous namespace
} // namespace
} // namespace cache
} // namespace dom
+1 -1
View File
@@ -54,6 +54,6 @@ namespace IPC {
mozilla::dom::cache::DEFAULT_NAMESPACE,
mozilla::dom::cache::NUMBER_OF_NAMESPACES>
{};
}
} // namespace IPC
#endif // mozilla_dom_cache_IPCUtils_h
+1 -1
View File
@@ -127,7 +127,7 @@ private:
nsTArray<nsID> mDeletedBodyIdList;
};
} // anonymous namespace
} // namespace
namespace mozilla {
namespace dom {

Some files were not shown because too many files have changed in this diff Show More