Wed, 31 Dec 2014 07:53:36 +0100
Correct small whitespace inconsistency, lost while renaming variables.
michael@0 | 1 | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* vim: set ts=2 et sw=2 tw=80: */ |
michael@0 | 3 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 6 | |
michael@0 | 7 | #ifndef mozilla_dom_ExternalHelperAppChild_h |
michael@0 | 8 | #define mozilla_dom_ExternalHelperAppChild_h |
michael@0 | 9 | |
michael@0 | 10 | #include "mozilla/dom/PExternalHelperAppChild.h" |
michael@0 | 11 | #include "nsExternalHelperAppService.h" |
michael@0 | 12 | #include "nsIStreamListener.h" |
michael@0 | 13 | |
michael@0 | 14 | class nsIDivertableChannel; |
michael@0 | 15 | |
michael@0 | 16 | namespace mozilla { |
michael@0 | 17 | namespace dom { |
michael@0 | 18 | |
michael@0 | 19 | class ExternalHelperAppChild : public PExternalHelperAppChild |
michael@0 | 20 | , public nsIStreamListener |
michael@0 | 21 | { |
michael@0 | 22 | public: |
michael@0 | 23 | NS_DECL_ISUPPORTS |
michael@0 | 24 | NS_DECL_NSISTREAMLISTENER |
michael@0 | 25 | NS_DECL_NSIREQUESTOBSERVER |
michael@0 | 26 | |
michael@0 | 27 | ExternalHelperAppChild(); |
michael@0 | 28 | virtual ~ExternalHelperAppChild(); |
michael@0 | 29 | |
michael@0 | 30 | // Give the listener a real nsExternalAppHandler to complete processing on |
michael@0 | 31 | // the child. |
michael@0 | 32 | void SetHandler(nsExternalAppHandler *handler) { mHandler = handler; } |
michael@0 | 33 | |
michael@0 | 34 | virtual bool RecvCancel(const nsresult& aStatus) MOZ_OVERRIDE; |
michael@0 | 35 | private: |
michael@0 | 36 | nsresult DivertToParent(nsIDivertableChannel *divertable, nsIRequest *request); |
michael@0 | 37 | |
michael@0 | 38 | nsRefPtr<nsExternalAppHandler> mHandler; |
michael@0 | 39 | nsresult mStatus; |
michael@0 | 40 | }; |
michael@0 | 41 | |
michael@0 | 42 | } // namespace dom |
michael@0 | 43 | } // namespace mozilla |
michael@0 | 44 | |
michael@0 | 45 | #endif // mozilla_dom_ExternalHelperAppChild_h |