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: include protocol PPluginInstance; michael@0: michael@0: michael@0: using mozilla::plugins::Buffer from "mozilla/plugins/PluginMessageUtils.h"; michael@0: using NPError from "npapi.h"; michael@0: using NPReason from "npapi.h"; michael@0: michael@0: namespace mozilla { michael@0: namespace plugins { michael@0: michael@0: /** michael@0: * PPluginStream represents an NPStream sent from the plugin to the browser. michael@0: */ michael@0: michael@0: intr protocol PPluginStream michael@0: { michael@0: manager PPluginInstance; michael@0: michael@0: parent: michael@0: intr NPN_Write(Buffer data) returns (int32_t written); michael@0: michael@0: both: michael@0: /** michael@0: * ~PPluginStream is for both NPN_DestroyStream and NPP_DestroyStream. michael@0: * @param artificial True when the stream is closed as a by-product of michael@0: * some other call (such as a failure in NPN_Write). michael@0: */ michael@0: intr __delete__(NPReason reason, bool artificial); michael@0: }; michael@0: michael@0: } // namespace plugins michael@0: } // namespace mozilla