mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 16:22:00 +00:00
Bug 1744025: Use CheckedUnsafePtr<WorkerPrivate> in WorkerEventTarget. r=dom-worker-reviewers,edenchuang
Depends on D132799 Differential Revision: https://phabricator.services.mozilla.com/D132800
This commit is contained in:
parent
b7adbf2325
commit
dcae57ea85
@ -9,12 +9,11 @@
|
||||
|
||||
#include "nsISerialEventTarget.h"
|
||||
#include "mozilla/Mutex.h"
|
||||
#include "mozilla/dom/WorkerPrivate.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
|
||||
class WorkerPrivate;
|
||||
|
||||
class WorkerEventTarget final : public nsISerialEventTarget {
|
||||
public:
|
||||
// The WorkerEventTarget supports different dispatch behaviors:
|
||||
@ -30,7 +29,7 @@ class WorkerEventTarget final : public nsISerialEventTarget {
|
||||
|
||||
private:
|
||||
mozilla::Mutex mMutex;
|
||||
WorkerPrivate* mWorkerPrivate;
|
||||
CheckedUnsafePtr<WorkerPrivate> mWorkerPrivate;
|
||||
const Behavior mBehavior;
|
||||
|
||||
~WorkerEventTarget() = default;
|
||||
|
Loading…
Reference in New Issue
Block a user