Bug 1455025 - Cleanup some private methods in WorkerPrivate.h, r=asuth

This commit is contained in:
Andrea Marchesini 2018-04-19 00:02:08 +02:00
Родитель 8cc9d24a4f
Коммит 20806e024b
2 изменённых файлов: 5 добавлений и 27 удалений

Просмотреть файл

@ -1777,7 +1777,7 @@ WorkerPrivate::Start()
// aCx is null when called from the finalizer
bool
WorkerPrivate::NotifyPrivate(WorkerStatus aStatus)
WorkerPrivate::Notify(WorkerStatus aStatus)
{
AssertIsOnParentThread();
@ -4345,7 +4345,7 @@ WorkerPrivate::AssertValidSyncLoop(nsIEventTarget* aSyncLoopTarget)
#endif
void
WorkerPrivate::PostMessageToParentInternal(
WorkerPrivate::PostMessageToParent(
JSContext* aCx,
JS::Handle<JS::Value> aMessage,
const Sequence<JSObject*>& aTransferable,

Просмотреть файл

@ -158,10 +158,7 @@ public:
// Called on the parent thread.
bool
Notify(WorkerStatus aStatus)
{
return NotifyPrivate(aStatus);
}
Notify(WorkerStatus aStatus);
bool
Cancel()
@ -178,8 +175,7 @@ public:
bool
Terminate()
{
AssertIsOnParentThread();
return TerminatePrivate();
return Notify(Terminating);
}
bool
@ -291,10 +287,7 @@ public:
PostMessageToParent(JSContext* aCx,
JS::Handle<JS::Value> aMessage,
const Sequence<JSObject*>& aTransferable,
ErrorResult& aRv)
{
PostMessageToParentInternal(aCx, aMessage, aTransferable, aRv);
}
ErrorResult& aRv);
void
PostMessageToParentMessagePort(JSContext* aCx,
@ -1219,15 +1212,6 @@ private:
~WorkerPrivate();
bool
NotifyPrivate(WorkerStatus aStatus);
bool
TerminatePrivate()
{
return NotifyPrivate(Terminating);
}
bool
MayContinueRunning()
{
@ -1279,12 +1263,6 @@ private:
void
WaitForWorkerEvents();
void
PostMessageToParentInternal(JSContext* aCx,
JS::Handle<JS::Value> aMessage,
const Sequence<JSObject*>& aTransferable,
ErrorResult& aRv);
// If the worker shutdown status is equal or greater then aFailStatus, this
// operation will fail and nullptr will be returned. See WorkerHolder.h for
// more information about the correct value to use.