Loading netwerk/protocol/http/moz.build +1 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ XPIDL_SOURCES += [ "nsIHttpHeaderVisitor.idl", "nsIHttpProtocolHandler.idl", "nsIRaceCacheWithNetwork.idl", "nsITlsHandshakeListener.idl", "nsIWellKnownOpportunisticUtils.idl", ] Loading netwerk/protocol/http/nsHttpConnection.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -2368,6 +2368,7 @@ NS_INTERFACE_MAP_BEGIN(nsHttpConnection) NS_INTERFACE_MAP_ENTRY(nsIOutputStreamCallback) NS_INTERFACE_MAP_ENTRY(nsITransportEventSink) NS_INTERFACE_MAP_ENTRY(nsIInterfaceRequestor) NS_INTERFACE_MAP_ENTRY(nsITlsHandshakeCallbackListener) NS_INTERFACE_MAP_ENTRY(HttpConnectionBase) NS_INTERFACE_MAP_ENTRY_CONCRETE(nsHttpConnection) NS_INTERFACE_MAP_END Loading Loading @@ -2597,5 +2598,10 @@ bool nsHttpConnection::GetEchConfigUsed() { return val; } NS_IMETHODIMP nsHttpConnection::HandshakeDone() { return NS_OK; } } // namespace net } // namespace mozilla netwerk/protocol/http/nsHttpConnection.h +3 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ #include "nsIInterfaceRequestor.h" #include "nsISupportsPriority.h" #include "nsITimer.h" #include "nsITlsHandshakeListener.h" class nsISocketTransport; class nsISSLSocketControl; Loading Loading @@ -56,6 +57,7 @@ class nsHttpConnection final : public HttpConnectionBase, public nsIOutputStreamCallback, public nsITransportEventSink, public nsIInterfaceRequestor, public nsITlsHandshakeCallbackListener, public NudgeTunnelCallback { private: virtual ~nsHttpConnection(); Loading @@ -70,6 +72,7 @@ class nsHttpConnection final : public HttpConnectionBase, NS_DECL_NSIOUTPUTSTREAMCALLBACK NS_DECL_NSITRANSPORTEVENTSINK NS_DECL_NSIINTERFACEREQUESTOR NS_DECL_NSITLSHANDSHAKECALLBACKLISTENER NS_DECL_NUDGETUNNELCALLBACK nsHttpConnection(); Loading netwerk/protocol/http/nsITlsHandshakeListener.idl 0 → 100644 +12 −0 Original line number Diff line number Diff line /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "nsISupports.idl" [builtinclass, uuid(b4bbe824-ec4c-48be-9a40-6a7339347f40)] interface nsITlsHandshakeCallbackListener : nsISupports { [noscript] void handshakeDone(); }; netwerk/socket/nsISSLSocketControl.idl +3 −1 Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ interface nsIInterfaceRequestor; interface nsIX509Cert; interface nsITlsHandshakeCallbackListener; %{C++ #include "nsStringFwd.h" Loading Loading @@ -171,5 +172,6 @@ interface nsISSLSocketControl : nsISupports { * Disable early data. */ [noscript] void disableEarlyData(); }; [noscript] void setHandshakeCallbackListener(in nsITlsHandshakeCallbackListener callback); }; Loading
netwerk/protocol/http/moz.build +1 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ XPIDL_SOURCES += [ "nsIHttpHeaderVisitor.idl", "nsIHttpProtocolHandler.idl", "nsIRaceCacheWithNetwork.idl", "nsITlsHandshakeListener.idl", "nsIWellKnownOpportunisticUtils.idl", ] Loading
netwerk/protocol/http/nsHttpConnection.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -2368,6 +2368,7 @@ NS_INTERFACE_MAP_BEGIN(nsHttpConnection) NS_INTERFACE_MAP_ENTRY(nsIOutputStreamCallback) NS_INTERFACE_MAP_ENTRY(nsITransportEventSink) NS_INTERFACE_MAP_ENTRY(nsIInterfaceRequestor) NS_INTERFACE_MAP_ENTRY(nsITlsHandshakeCallbackListener) NS_INTERFACE_MAP_ENTRY(HttpConnectionBase) NS_INTERFACE_MAP_ENTRY_CONCRETE(nsHttpConnection) NS_INTERFACE_MAP_END Loading Loading @@ -2597,5 +2598,10 @@ bool nsHttpConnection::GetEchConfigUsed() { return val; } NS_IMETHODIMP nsHttpConnection::HandshakeDone() { return NS_OK; } } // namespace net } // namespace mozilla
netwerk/protocol/http/nsHttpConnection.h +3 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ #include "nsIInterfaceRequestor.h" #include "nsISupportsPriority.h" #include "nsITimer.h" #include "nsITlsHandshakeListener.h" class nsISocketTransport; class nsISSLSocketControl; Loading Loading @@ -56,6 +57,7 @@ class nsHttpConnection final : public HttpConnectionBase, public nsIOutputStreamCallback, public nsITransportEventSink, public nsIInterfaceRequestor, public nsITlsHandshakeCallbackListener, public NudgeTunnelCallback { private: virtual ~nsHttpConnection(); Loading @@ -70,6 +72,7 @@ class nsHttpConnection final : public HttpConnectionBase, NS_DECL_NSIOUTPUTSTREAMCALLBACK NS_DECL_NSITRANSPORTEVENTSINK NS_DECL_NSIINTERFACEREQUESTOR NS_DECL_NSITLSHANDSHAKECALLBACKLISTENER NS_DECL_NUDGETUNNELCALLBACK nsHttpConnection(); Loading
netwerk/protocol/http/nsITlsHandshakeListener.idl 0 → 100644 +12 −0 Original line number Diff line number Diff line /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "nsISupports.idl" [builtinclass, uuid(b4bbe824-ec4c-48be-9a40-6a7339347f40)] interface nsITlsHandshakeCallbackListener : nsISupports { [noscript] void handshakeDone(); };
netwerk/socket/nsISSLSocketControl.idl +3 −1 Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ interface nsIInterfaceRequestor; interface nsIX509Cert; interface nsITlsHandshakeCallbackListener; %{C++ #include "nsStringFwd.h" Loading Loading @@ -171,5 +172,6 @@ interface nsISSLSocketControl : nsISupports { * Disable early data. */ [noscript] void disableEarlyData(); }; [noscript] void setHandshakeCallbackListener(in nsITlsHandshakeCallbackListener callback); };