1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/plugins/ipc/PPluginStream.ipdl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,37 @@ 1.4 +/* -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 8 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +include protocol PPluginInstance; 1.10 + 1.11 + 1.12 +using mozilla::plugins::Buffer from "mozilla/plugins/PluginMessageUtils.h"; 1.13 +using NPError from "npapi.h"; 1.14 +using NPReason from "npapi.h"; 1.15 + 1.16 +namespace mozilla { 1.17 +namespace plugins { 1.18 + 1.19 +/** 1.20 + * PPluginStream represents an NPStream sent from the plugin to the browser. 1.21 + */ 1.22 + 1.23 +intr protocol PPluginStream 1.24 +{ 1.25 + manager PPluginInstance; 1.26 + 1.27 +parent: 1.28 + intr NPN_Write(Buffer data) returns (int32_t written); 1.29 + 1.30 +both: 1.31 + /** 1.32 + * ~PPluginStream is for both NPN_DestroyStream and NPP_DestroyStream. 1.33 + * @param artificial True when the stream is closed as a by-product of 1.34 + * some other call (such as a failure in NPN_Write). 1.35 + */ 1.36 + intr __delete__(NPReason reason, bool artificial); 1.37 +}; 1.38 + 1.39 +} // namespace plugins 1.40 +} // namespace mozilla