зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1660555 - Add a |Signal()| accessor to |AbortFollower| rather than directly accessing an inherited, protected member. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D93888
This commit is contained in:
Родитель
8dde7f4f23
Коммит
1e16fcd4c3
|
@ -31,6 +31,8 @@ class AbortFollower {
|
|||
|
||||
bool IsFollowing() const;
|
||||
|
||||
AbortSignalImpl* Signal() const { return mFollowingSignal; }
|
||||
|
||||
protected:
|
||||
virtual ~AbortFollower();
|
||||
|
||||
|
|
|
@ -166,7 +166,10 @@ class AbortSignalProxy final : public AbortFollower {
|
|||
return mSignalImplMainThread;
|
||||
}
|
||||
|
||||
AbortSignalImpl* GetSignalImplForTargetThread() { return mFollowingSignal; }
|
||||
AbortSignalImpl* GetSignalImplForTargetThread() {
|
||||
MOZ_ASSERT(!NS_IsMainThread());
|
||||
return Signal();
|
||||
}
|
||||
|
||||
void Shutdown() { Unfollow(); }
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче