1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
8 #include "mozilla/dom/PExternalHelperAppChild.h"
9 #include "nsIStreamListener.h"
14 class ExternalHelperAppChild
: public PExternalHelperAppChild
15 , public nsIStreamListener
19 NS_DECL_NSISTREAMLISTENER
20 NS_DECL_NSIREQUESTOBSERVER
22 ExternalHelperAppChild();
23 virtual ~ExternalHelperAppChild();
25 // Give the listener a real nsExternalAppHandler to complete processing on
27 void SetHandler(nsIStreamListener
*handler
) { mHandler
= handler
; }
29 virtual bool RecvCancel(const nsresult
& aStatus
);
31 nsCOMPtr
<nsIStreamListener
> mHandler
;
36 } // namespace mozilla