michael@0: /* -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 8 -*- */ 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 michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef mozilla_plugins_AStream_h michael@0: #define mozilla_plugins_AStream_h michael@0: michael@0: namespace mozilla { michael@0: namespace plugins { michael@0: michael@0: /** michael@0: * When we are passed NPStream->{ndata,pdata} in {NPN,NPP}_DestroyStream, we michael@0: * don't know whether it's a plugin stream or a browser stream. This abstract michael@0: * class lets us cast to the right type of object and send the appropriate michael@0: * message. michael@0: */ michael@0: class AStream michael@0: { michael@0: public: michael@0: virtual bool IsBrowserStream() = 0; michael@0: }; michael@0: michael@0: } // namespace plugins michael@0: } // namespace mozilla michael@0: michael@0: #endif