Bug 1382172 - Name nsITimerCallback instances in native implementation. r=billm

This commit is contained in:
Bevis Tseng
2017-07-27 02:18:20 +08:00
parent 2ecbda13e2
commit 59627df038
84 changed files with 605 additions and 81 deletions

View File

@@ -89,7 +89,8 @@ NS_IMPL_ISUPPORTS(WebSocketChannel,
nsIInterfaceRequestor,
nsIChannelEventSink,
nsIThreadRetargetableRequest,
nsIObserver)
nsIObserver,
nsINamed)
// We implement RFC 6455, which uses Sec-WebSocket-Version: 13 on the wire.
#define SEC_WEBSOCKET_VERSION "13"
@@ -3320,6 +3321,15 @@ WebSocketChannel::Notify(nsITimer *timer)
return NS_OK;
}
// nsINamed
NS_IMETHODIMP
WebSocketChannel::GetName(nsACString& aName)
{
aName.AssignLiteral("WebSocketChannel");
return NS_OK;
}
// nsIWebSocketChannel
NS_IMETHODIMP