mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 17:31:47 +09:00
[network] move some generic websocket code to the baseclass
This commit is contained in:
parent
af3667d715
commit
6a1e540412
4 changed files with 7 additions and 3 deletions
|
|
@ -62,6 +62,11 @@ BaseWebSocketChannel::BaseWebSocketChannel()
|
|||
mSerial = (processBits << kWebSocketIDWebSocketBits) | webSocketBits;
|
||||
}
|
||||
|
||||
BaseWebSocketChannel::~BaseWebSocketChannel() {
|
||||
NS_ReleaseOnMainThread(mLoadGroup.forget());
|
||||
NS_ReleaseOnMainThread(mLoadInfo.forget());
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// BaseWebSocketChannel::nsIWebSocketChannel
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -79,6 +79,7 @@ class BaseWebSocketChannel : public nsIWebSocketChannel,
|
|||
};
|
||||
|
||||
protected:
|
||||
virtual ~BaseWebSocketChannel();
|
||||
nsCOMPtr<nsIURI> mOriginalURI;
|
||||
nsCOMPtr<nsIURI> mURI;
|
||||
RefPtr<ListenerAndContextContainer> mListenerMT;
|
||||
|
|
|
|||
|
|
@ -1243,8 +1243,6 @@ WebSocketChannel::~WebSocketChannel()
|
|||
|
||||
mListenerMT = nullptr;
|
||||
|
||||
NS_ReleaseOnMainThread(mLoadGroup.forget());
|
||||
NS_ReleaseOnMainThread(mLoadInfo.forget());
|
||||
NS_ReleaseOnMainThread(mService.forget());
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ public:
|
|||
const static uint8_t kPayloadLengthBitsMask = 0x7F;
|
||||
|
||||
protected:
|
||||
virtual ~WebSocketChannel();
|
||||
~WebSocketChannel() override;
|
||||
|
||||
private:
|
||||
friend class OutboundEnqueuer;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue