bug 816059 - properly reset blocklist in browser-chrome tests r=jaws
[gecko.git] / uriloader / exthandler / ExternalHelperAppChild.h
blob794c0d83b4b7536de4ade99238b0b8ac655547cd
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"
11 namespace mozilla {
12 namespace dom {
14 class ExternalHelperAppChild : public PExternalHelperAppChild
15 , public nsIStreamListener
17 public:
18 NS_DECL_ISUPPORTS
19 NS_DECL_NSISTREAMLISTENER
20 NS_DECL_NSIREQUESTOBSERVER
22 ExternalHelperAppChild();
23 virtual ~ExternalHelperAppChild();
25 // Give the listener a real nsExternalAppHandler to complete processing on
26 // the child.
27 void SetHandler(nsIStreamListener *handler) { mHandler = handler; }
29 virtual bool RecvCancel(const nsresult& aStatus);
30 private:
31 nsCOMPtr<nsIStreamListener> mHandler;
32 nsresult mStatus;
35 } // namespace dom
36 } // namespace mozilla