michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsStreamListenerWrapper.h" michael@0: #ifdef DEBUG michael@0: #include "MainThreadUtils.h" michael@0: #endif michael@0: michael@0: NS_IMPL_ISUPPORTS(nsStreamListenerWrapper, michael@0: nsIStreamListener, michael@0: nsIRequestObserver, michael@0: nsIThreadRetargetableStreamListener) michael@0: michael@0: NS_IMETHODIMP michael@0: nsStreamListenerWrapper::CheckListenerChain() michael@0: { michael@0: NS_ASSERTION(NS_IsMainThread(), "Should be on main thread!"); michael@0: nsresult rv = NS_OK; michael@0: nsCOMPtr retargetableListener = michael@0: do_QueryInterface(mListener, &rv); michael@0: if (retargetableListener) { michael@0: rv = retargetableListener->CheckListenerChain(); michael@0: } michael@0: return rv; michael@0: }