gecko/netwerk/protocol/wyciwyg/PWyciwygChannel.ipdl
2012-12-07 17:12:02 -05:00

55 lines
1.3 KiB
Plaintext

/* 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/. */
include protocol PNecko;
include protocol PBrowser;
include URIParams;
include "SerializedLoadContext.h";
using IPC::SerializedLoadContext;
namespace mozilla {
namespace net {
//-------------------------------------------------------------------
protocol PWyciwygChannel
{
manager PNecko;
parent:
__delete__();
Init(URIParams uri);
AsyncOpen(URIParams originalURI,
uint32_t loadFlags,
SerializedLoadContext loadContext,
PBrowser browser);
// methods corresponding to those of nsIWyciwygChannel
WriteToCacheEntry(nsString data);
CloseCacheEntry(nsresult reason);
SetCharsetAndSource(int32_t source, nsCString charset);
SetSecurityInfo(nsCString securityInfo);
Cancel(nsresult status);
child:
OnStartRequest(nsresult statusCode,
int64_t contentLength,
int32_t source,
nsCString charset,
nsCString securityInfo);
OnDataAvailable(nsCString data,
uint64_t offset);
OnStopRequest(nsresult statusCode);
CancelEarly(nsresult statusCode);
};
} // namespace net
} // namespace mozilla