2009-09-21 14:51:35 +00:00
|
|
|
/* -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 8 -*- */
|
2012-05-21 11:12:37 +00: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 14:51:35 +00:00
|
|
|
|
2010-04-27 01:11:46 +00:00
|
|
|
include protocol PPluginInstance;
|
2009-09-21 14:51:35 +00:00
|
|
|
|
2009-11-12 22:20:20 +00:00
|
|
|
include "mozilla/plugins/PluginMessageUtils.h";
|
|
|
|
|
2009-09-21 14:51:35 +00:00
|
|
|
using mozilla::plugins::Buffer;
|
|
|
|
using NPError;
|
2009-12-03 08:16:14 +00:00
|
|
|
using NPReason;
|
2009-09-21 14:51:35 +00:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace plugins {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* PPluginStream represents an NPStream sent from the plugin to the browser.
|
|
|
|
*/
|
|
|
|
|
|
|
|
rpc protocol PPluginStream
|
|
|
|
{
|
|
|
|
manager PPluginInstance;
|
|
|
|
|
|
|
|
parent:
|
|
|
|
rpc NPN_Write(Buffer data) returns (int32_t written);
|
2009-12-03 08:16:14 +00: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).
|
|
|
|
*/
|
|
|
|
rpc __delete__(NPReason reason, bool artificial);
|
2009-09-21 14:51:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace plugins
|
|
|
|
} // namespace mozilla
|