Skip to content

Commit

Permalink
Showing 410 changed files with 800 additions and 866 deletions.
2 changes: 1 addition & 1 deletion accessible/generic/Accessible.cpp
Original file line number Diff line number Diff line change
@@ -1768,7 +1768,7 @@ Accessible::GetNativeInterface(void** aNativeAccessible)
void
Accessible::DoCommand(nsIContent *aContent, uint32_t aActionIndex)
{
class Runnable final : public nsRunnable
class Runnable final : public mozilla::Runnable
{
public:
Runnable(Accessible* aAcc, nsIContent* aContent, uint32_t aIdx) :
4 changes: 2 additions & 2 deletions docshell/base/nsDocShell.cpp
Original file line number Diff line number Diff line change
@@ -9461,7 +9461,7 @@ nsDocShell::CopyFavicon(nsIURI* aOldURI,
#endif
}

class InternalLoadEvent : public nsRunnable
class InternalLoadEvent : public Runnable
{
public:
InternalLoadEvent(nsDocShell* aDocShell, nsIURI* aURI,
@@ -13524,7 +13524,7 @@ nsDocShell::SelectNone(void)

// link handling

class OnLinkClickEvent : public nsRunnable
class OnLinkClickEvent : public Runnable
{
public:
OnLinkClickEvent(nsDocShell* aHandler, nsIContent* aContent,
2 changes: 1 addition & 1 deletion docshell/base/nsDocShell.h
Original file line number Diff line number Diff line change
@@ -759,7 +759,7 @@ class nsDocShell final

public:
// Event type dispatched by RestorePresentation
class RestorePresentationEvent : public nsRunnable
class RestorePresentationEvent : public mozilla::Runnable
{
public:
NS_DECL_NSIRUNNABLE
2 changes: 1 addition & 1 deletion docshell/shistory/nsSHEntryShared.cpp
Original file line number Diff line number Diff line change
@@ -248,7 +248,7 @@ nsSHEntryShared::RemoveFromBFCacheSync()
return NS_OK;
}

class DestroyViewerEvent : public nsRunnable
class DestroyViewerEvent : public mozilla::Runnable
{
public:
DestroyViewerEvent(nsIContentViewer* aViewer, nsIDocument* aDocument)
2 changes: 1 addition & 1 deletion dom/archivereader/ArchiveEvent.h
Original file line number Diff line number Diff line change
@@ -49,7 +49,7 @@ class ArchiveItem : public nsISupports
* This class runs in a different thread and it calls the 'exec()' method.
* The exec() must populate mFileList and mStatus then it must call RunShare();
*/
class ArchiveReaderEvent : public nsRunnable
class ArchiveReaderEvent : public Runnable
{
public:
NS_DECL_NSIRUNNABLE
2 changes: 1 addition & 1 deletion dom/archivereader/ArchiveRequest.cpp
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@ USING_ARCHIVEREADER_NAMESPACE
/**
* Class used to make asynchronous the ArchiveRequest.
*/
class ArchiveRequestEvent : public nsRunnable
class ArchiveRequestEvent : public Runnable
{
public:
NS_DECL_NSIRUNNABLE
2 changes: 1 addition & 1 deletion dom/asmjscache/AsmJSCache.cpp
Original file line number Diff line number Diff line change
@@ -238,7 +238,7 @@ EvictEntries(nsIFile* aDirectory, const nsACString& aGroup,
// FileDescriptorHolder owns a file descriptor and its memory mapping.
// FileDescriptorHolder is derived by two runnable classes (that is,
// (Parent|Child)Runnable.
class FileDescriptorHolder : public nsRunnable
class FileDescriptorHolder : public Runnable
{
public:
FileDescriptorHolder()
6 changes: 3 additions & 3 deletions dom/audiochannel/AudioChannelService.cpp
Original file line number Diff line number Diff line change
@@ -43,7 +43,7 @@ namespace {
bool sAudioChannelMutedByDefault = false;
bool sXPCOMShuttingDown = false;

class NotifyChannelActiveRunnable final : public nsRunnable
class NotifyChannelActiveRunnable final : public Runnable
{
public:
NotifyChannelActiveRunnable(uint64_t aWindowID, AudioChannel aAudioChannel,
@@ -98,7 +98,7 @@ void
NotifyChannelActive(uint64_t aWindowID, AudioChannel aAudioChannel,
bool aActive)
{
RefPtr<nsRunnable> runnable =
RefPtr<Runnable> runnable =
new NotifyChannelActiveRunnable(aWindowID, aAudioChannel, aActive);
NS_DispatchToCurrentThread(runnable);
}
@@ -109,7 +109,7 @@ IsParentProcess()
return XRE_GetProcessType() == GeckoProcessType_Default;
}

class MediaPlaybackRunnable : public nsRunnable
class MediaPlaybackRunnable : public Runnable
{
public:
MediaPlaybackRunnable(nsPIDOMWindowOuter* aWindow, bool aActive)
2 changes: 1 addition & 1 deletion dom/base/Console.cpp
Original file line number Diff line number Diff line change
@@ -312,7 +312,7 @@ class ClearException
JSContext* mCx;
};

class ConsoleRunnable : public nsRunnable
class ConsoleRunnable : public Runnable
, public WorkerFeature
, public StructuredCloneHolderBase
{
4 changes: 2 additions & 2 deletions dom/base/DOMRequest.cpp
Original file line number Diff line number Diff line change
@@ -295,7 +295,7 @@ DOMRequestService::FireDetailedError(nsIDOMDOMRequest* aRequest,
return NS_OK;
}

class FireSuccessAsyncTask : public nsRunnable
class FireSuccessAsyncTask : public mozilla::Runnable
{

FireSuccessAsyncTask(DOMRequest* aRequest,
@@ -332,7 +332,7 @@ class FireSuccessAsyncTask : public nsRunnable
JS::PersistentRooted<JS::Value> mResult;
};

class FireErrorAsyncTask : public nsRunnable
class FireErrorAsyncTask : public mozilla::Runnable
{
public:
FireErrorAsyncTask(DOMRequest* aRequest,
2 changes: 1 addition & 1 deletion dom/base/Element.h
Original file line number Diff line number Diff line change
@@ -1351,7 +1351,7 @@ class Element : public FragmentOrElement
EventStates mState;
};

class RemoveFromBindingManagerRunnable : public nsRunnable
class RemoveFromBindingManagerRunnable : public mozilla::Runnable
{
public:
RemoveFromBindingManagerRunnable(nsBindingManager* aManager,
2 changes: 1 addition & 1 deletion dom/base/File.cpp
Original file line number Diff line number Diff line change
@@ -866,7 +866,7 @@ BlobImplFile::GetSize(ErrorResult& aRv)

namespace {

class GetTypeRunnable final : public nsRunnable
class GetTypeRunnable final : public Runnable
{
public:
GetTypeRunnable(WorkerPrivate* aWorkerPrivate,
2 changes: 1 addition & 1 deletion dom/base/FragmentOrElement.cpp
Original file line number Diff line number Diff line change
@@ -1237,7 +1237,7 @@ FragmentOrElement::FireNodeInserted(nsIDocument* aDoc,

#define SUBTREE_UNBINDINGS_PER_RUNNABLE 500

class ContentUnbinder : public nsRunnable
class ContentUnbinder : public Runnable
{
public:
ContentUnbinder()
6 changes: 3 additions & 3 deletions dom/base/ImageEncoder.cpp
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ namespace dom {
// This class should be placed inside GetBRGADataSourceSurfaceSync(). However,
// due to B2G ICS uses old complier (C++98/03) which forbids local class as
// template parameter, we need to move this class outside.
class SurfaceHelper : public nsRunnable {
class SurfaceHelper : public Runnable {
public:
explicit SurfaceHelper(already_AddRefed<layers::Image> aImage) : mImage(aImage) {}

@@ -135,7 +135,7 @@ class EncodingCompleteEvent : public CancelableRunnable
bool mFailed;
};

class EncodingRunnable : public nsRunnable
class EncodingRunnable : public Runnable
{
virtual ~EncodingRunnable() {}

@@ -236,7 +236,7 @@ class EncodingRunnable : public nsRunnable
bool mUsingCustomOptions;
};

NS_IMPL_ISUPPORTS_INHERITED0(EncodingRunnable, nsRunnable);
NS_IMPL_ISUPPORTS_INHERITED0(EncodingRunnable, Runnable);

StaticRefPtr<nsIThreadPool> ImageEncoder::sThreadPool;

2 changes: 1 addition & 1 deletion dom/base/ImportManager.cpp
Original file line number Diff line number Diff line change
@@ -378,7 +378,7 @@ ImportLoader::RemoveLinkElement(nsINode* aNode)
// be set on the link element before the load event is fired even
// if ImportLoader::Get returns an already loaded import and we
// fire the load event immediately on the new referring link element.
class AsyncEvent : public nsRunnable {
class AsyncEvent : public Runnable {
public:
AsyncEvent(nsINode* aNode, bool aSuccess)
: mNode(aNode)
2 changes: 1 addition & 1 deletion dom/base/PostMessageEvent.h
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ namespace dom {
* Class used to represent events generated by calls to Window.postMessage,
* which asynchronously creates and dispatches events.
*/
class PostMessageEvent final : public nsRunnable
class PostMessageEvent final : public Runnable
, public StructuredCloneHolder
{
public:
8 changes: 4 additions & 4 deletions dom/base/WebSocket.cpp
Original file line number Diff line number Diff line change
@@ -389,7 +389,7 @@ WebSocketImpl::PrintErrorOnConsole(const char *aBundleURI,

namespace {

class CancelWebSocketRunnable final : public nsRunnable
class CancelWebSocketRunnable final : public Runnable
{
public:
CancelWebSocketRunnable(nsIWebSocketChannel* aChannel, uint16_t aReasonCode,
@@ -437,7 +437,7 @@ class MOZ_STACK_CLASS MaybeDisconnect
WebSocketImpl* mImpl;
};

class CloseConnectionRunnable final : public nsRunnable
class CloseConnectionRunnable final : public Runnable
{
public:
CloseConnectionRunnable(WebSocketImpl* aImpl,
@@ -466,9 +466,9 @@ WebSocketImpl::CloseConnection(uint16_t aReasonCode,
const nsACString& aReasonString)
{
if (!IsTargetThread()) {
RefPtr<nsRunnable> runnable =
nsCOMPtr<nsIRunnable> runnable =
new CloseConnectionRunnable(this, aReasonCode, aReasonString);
return Dispatch(runnable, NS_DISPATCH_NORMAL);
return Dispatch(runnable.forget(), NS_DISPATCH_NORMAL);
}

AssertIsOnTargetThread();
2 changes: 1 addition & 1 deletion dom/base/nsContentUtils.cpp
Original file line number Diff line number Diff line change
@@ -4733,7 +4733,7 @@ nsContentUtils::IsInSameAnonymousTree(const nsINode* aNode,
return nodeAsContent->GetBindingParent() == aContent->GetBindingParent();
}

class AnonymousContentDestroyer : public nsRunnable {
class AnonymousContentDestroyer : public Runnable {
public:
explicit AnonymousContentDestroyer(nsCOMPtr<nsIContent>* aContent) {
mContent.swap(*aContent);
2 changes: 1 addition & 1 deletion dom/base/nsDOMMutationObserver.cpp
Original file line number Diff line number Diff line change
@@ -855,7 +855,7 @@ nsDOMMutationObserver::HandleMutation()
mCallback->Call(this, mutations, *this);
}

class AsyncMutationHandler : public nsRunnable
class AsyncMutationHandler : public mozilla::Runnable
{
public:
NS_IMETHOD Run()
2 changes: 1 addition & 1 deletion dom/base/nsDocElementCreatedNotificationRunner.h
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
#include "nsCOMPtr.h"
#include "nsIDocument.h"

class nsDocElementCreatedNotificationRunner : public nsRunnable
class nsDocElementCreatedNotificationRunner : public mozilla::Runnable
{
public:
explicit nsDocElementCreatedNotificationRunner(nsIDocument* aDoc)
20 changes: 10 additions & 10 deletions dom/base/nsDocument.cpp
Original file line number Diff line number Diff line change
@@ -1360,7 +1360,7 @@ void nsIDocument::SelectorCache::CacheList(const nsAString& aSelector,
AddObject(key);
}

class nsIDocument::SelectorCacheKeyDeleter final : public nsRunnable
class nsIDocument::SelectorCacheKeyDeleter final : public Runnable
{
public:
explicit SelectorCacheKeyDeleter(SelectorCacheKey* aToDelete)
@@ -9147,7 +9147,7 @@ nsDocument::UnblockOnload(bool aFireSync)
}
}

class nsUnblockOnloadEvent : public nsRunnable {
class nsUnblockOnloadEvent : public Runnable {
public:
explicit nsUnblockOnloadEvent(nsDocument* aDoc) : mDoc(aDoc) {}
NS_IMETHOD Run() {
@@ -10021,7 +10021,7 @@ nsDocument::LoadChromeSheetSync(nsIURI* uri, bool isAgentSheet,
return CSSLoader()->LoadSheetSync(uri, mode, isAgentSheet, aSheet);
}

class nsDelayedEventDispatcher : public nsRunnable
class nsDelayedEventDispatcher : public Runnable
{
public:
explicit nsDelayedEventDispatcher(nsTArray<nsCOMPtr<nsIDocument>>& aDocuments)
@@ -11210,7 +11210,7 @@ AskWindowToExitFullscreen(nsIDocument* aDoc)
}
}

class nsCallExitFullscreen : public nsRunnable
class nsCallExitFullscreen : public Runnable
{
public:
explicit nsCallExitFullscreen(nsIDocument* aDoc)
@@ -11284,7 +11284,7 @@ ResetFullScreen(nsIDocument* aDocument, void* aData)
// Since nsIDocument::ExitFullscreenInDocTree() could be called from
// Element::UnbindFromTree() where it is not safe to synchronously run
// script. This runnable is the script part of that function.
class ExitFullscreenScriptRunnable : public nsRunnable
class ExitFullscreenScriptRunnable : public Runnable
{
public:
explicit ExitFullscreenScriptRunnable(nsCOMArray<nsIDocument>&& aDocuments)
@@ -11478,7 +11478,7 @@ nsDocument::RestorePreviousFullScreenState()
}
}

class nsCallRequestFullScreen : public nsRunnable
class nsCallRequestFullScreen : public Runnable
{
public:
explicit nsCallRequestFullScreen(UniquePtr<FullscreenRequest>&& aRequest)
@@ -11725,8 +11725,8 @@ GetFullscreenError(nsIDocument* aDoc, bool aCallerIsChrome)
if (nsContentUtils::IsFullScreenApiEnabled() && aCallerIsChrome) {
// Chrome code can always use the full-screen API, provided it's not
// explicitly disabled. Note IsCallerChrome() returns true when running
// in an nsRunnable, so don't use GetMozFullScreenEnabled() from an
// nsRunnable!
// in a Runnable, so don't use GetMozFullScreenEnabled() from a
// Runnable!
return nullptr;
}

@@ -12251,7 +12251,7 @@ static const uint8_t kPointerLockRequestLimit = 2;
class nsPointerLockPermissionRequest;
mozilla::StaticRefPtr<nsPointerLockPermissionRequest> gPendingPointerLockRequest;

class nsPointerLockPermissionRequest : public nsRunnable,
class nsPointerLockPermissionRequest : public Runnable,
public nsIContentPermissionRequest
{
public:
@@ -12326,7 +12326,7 @@ class nsPointerLockPermissionRequest : public nsRunnable,
};

NS_IMPL_ISUPPORTS_INHERITED(nsPointerLockPermissionRequest,
nsRunnable,
Runnable,
nsIContentPermissionRequest)

NS_IMETHODIMP
4 changes: 2 additions & 2 deletions dom/base/nsFocusManager.cpp
Original file line number Diff line number Diff line change
@@ -1958,7 +1958,7 @@ nsFocusManager::Focus(nsPIDOMWindowOuter* aWindow,
mFirstFocusEvent = nullptr;
}

class FocusBlurEvent : public nsRunnable
class FocusBlurEvent : public Runnable
{
public:
FocusBlurEvent(nsISupports* aTarget, EventMessage aEventMessage,
@@ -3453,7 +3453,7 @@ nsFocusManager::GetFocusInSelection(nsPIDOMWindowOuter* aWindow,
while (selectionNode && selectionNode != endSelectionNode);
}

class PointerUnlocker : public nsRunnable
class PointerUnlocker : public Runnable
{
public:
PointerUnlocker()
4 changes: 2 additions & 2 deletions dom/base/nsFrameLoader.cpp
Original file line number Diff line number Diff line change
@@ -1405,7 +1405,7 @@ nsFrameLoader::Destroy()
return NS_OK;
}

class nsFrameLoaderDestroyRunnable : public nsRunnable
class nsFrameLoaderDestroyRunnable : public Runnable
{
enum DestroyPhase
{
@@ -2581,7 +2581,7 @@ nsFrameLoader::DoLoadMessageManagerScript(const nsAString& aURL, bool aRunInGlob
}

class nsAsyncMessageToChild : public nsSameProcessAsyncMessageBase,
public nsRunnable
public Runnable
{
public:
nsAsyncMessageToChild(JSContext* aCx, JS::Handle<JSObject*> aCpows, nsFrameLoader* aFrameLoader)
2 changes: 1 addition & 1 deletion dom/base/nsFrameMessageManager.cpp
Original file line number Diff line number Diff line change
@@ -1890,7 +1890,7 @@ nsFrameMessageManager* nsFrameMessageManager::sParentProcessManager = nullptr;
nsFrameMessageManager* nsFrameMessageManager::sSameProcessParentManager = nullptr;

class nsAsyncMessageToSameProcessChild : public nsSameProcessAsyncMessageBase,
public nsRunnable
public Runnable
{
public:
nsAsyncMessageToSameProcessChild(JSContext* aCx, JS::Handle<JSObject*> aCpows)
2 changes: 1 addition & 1 deletion dom/base/nsFrameMessageManager.h
Original file line number Diff line number Diff line change
@@ -317,7 +317,7 @@ class nsFrameMessageManager final : public nsIContentFrameMessageManager,
/* A helper class for taking care of many details for async message sending
within a single process. Intended to be used like so:

class MyAsyncMessage : public nsSameProcessAsyncMessageBase, public nsRunnable
class MyAsyncMessage : public nsSameProcessAsyncMessageBase, public Runnable
{
NS_IMETHOD Run() {
ReceiveMessage(..., ...);
Loading
Oops, something went wrong.

0 comments on commit c736569

Please sign in to comment.