2009-09-21 18:51:35 +04:00
|
|
|
/* -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 8 -*- */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2009-09-21 18:51:35 +04:00
|
|
|
|
2010-04-27 05:11:46 +04:00
|
|
|
include protocol PPluginInstance;
|
2009-09-21 18:51:35 +04:00
|
|
|
|
2009-11-13 01:20:20 +03:00
|
|
|
|
2013-10-01 23:25:07 +04:00
|
|
|
using mozilla::plugins::Buffer from "mozilla/plugins/PluginMessageUtils.h";
|
|
|
|
using NPError from "npapi.h";
|
|
|
|
using NPReason from "npapi.h";
|
2009-09-21 18:51:35 +04:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace plugins {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* PPluginStream represents an NPStream sent from the plugin to the browser.
|
|
|
|
*/
|
|
|
|
|
2013-10-01 04:27:45 +04:00
|
|
|
intr protocol PPluginStream
|
2009-09-21 18:51:35 +04:00
|
|
|
{
|
|
|
|
manager PPluginInstance;
|
|
|
|
|
|
|
|
parent:
|
2013-10-01 04:27:45 +04:00
|
|
|
intr NPN_Write(Buffer data) returns (int32_t written);
|
2009-12-03 11:16:14 +03:00
|
|
|
|
|
|
|
both:
|
|
|
|
/**
|
|
|
|
* ~PPluginStream is for both NPN_DestroyStream and NPP_DestroyStream.
|
|
|
|
* @param artificial True when the stream is closed as a by-product of
|
|
|
|
* some other call (such as a failure in NPN_Write).
|
|
|
|
*/
|
2013-10-01 04:27:45 +04:00
|
|
|
intr __delete__(NPReason reason, bool artificial);
|
2009-09-21 18:51:35 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace plugins
|
|
|
|
} // namespace mozilla
|