2009-09-21 07:51:35 -07:00
|
|
|
/* -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 8 -*- */
|
2012-05-21 04:12:37 -07: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 07:51:35 -07:00
|
|
|
|
2010-04-26 18:11:46 -07:00
|
|
|
include protocol PPluginInstance;
|
2009-09-21 07:51:35 -07:00
|
|
|
|
2009-11-12 14:20:20 -08:00
|
|
|
include "mozilla/plugins/PluginMessageUtils.h";
|
|
|
|
|
2009-09-21 07:51:35 -07:00
|
|
|
using mozilla::plugins::Buffer;
|
|
|
|
using NPError;
|
2009-12-03 00:16:14 -08:00
|
|
|
using NPReason;
|
2009-09-21 07:51:35 -07: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 00:16:14 -08: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 07:51:35 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace plugins
|
|
|
|
} // namespace mozilla
|