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/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2010-10-11 04:35:10 -07:00
|
|
|
include protocol PNecko;
|
2012-12-29 01:02:16 -08:00
|
|
|
include protocol PBrowser;
|
2012-08-23 12:33:46 -07:00
|
|
|
include URIParams;
|
2010-10-11 04:35:10 -07:00
|
|
|
|
2012-08-23 12:33:46 -07:00
|
|
|
include "SerializedLoadContext.h";
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-08-06 21:47:48 -07:00
|
|
|
using IPC::SerializedLoadContext;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2010-10-11 04:35:10 -07:00
|
|
|
namespace mozilla {
|
|
|
|
namespace net {
|
|
|
|
|
|
|
|
//-------------------------------------------------------------------
|
|
|
|
protocol PWyciwygChannel
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
2010-10-11 04:35:10 -07:00
|
|
|
manager PNecko;
|
|
|
|
|
|
|
|
parent:
|
|
|
|
__delete__();
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-08-23 12:33:46 -07:00
|
|
|
Init(URIParams uri);
|
|
|
|
AsyncOpen(URIParams originalURI,
|
2012-08-22 08:56:38 -07:00
|
|
|
uint32_t loadFlags,
|
2012-12-29 01:02:16 -08:00
|
|
|
SerializedLoadContext loadContext,
|
|
|
|
PBrowser browser);
|
2013-01-11 06:40:25 -08:00
|
|
|
AppData(SerializedLoadContext loadContext, PBrowser browser);
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2010-10-11 04:35:10 -07:00
|
|
|
// methods corresponding to those of nsIWyciwygChannel
|
|
|
|
WriteToCacheEntry(nsString data);
|
|
|
|
CloseCacheEntry(nsresult reason);
|
2012-08-22 08:56:38 -07:00
|
|
|
SetCharsetAndSource(int32_t source, nsCString charset);
|
2010-10-11 04:35:10 -07:00
|
|
|
SetSecurityInfo(nsCString securityInfo);
|
2010-11-19 13:12:45 -08:00
|
|
|
Cancel(nsresult status);
|
2010-10-11 04:35:10 -07:00
|
|
|
|
|
|
|
child:
|
|
|
|
OnStartRequest(nsresult statusCode,
|
2012-10-22 10:51:07 -07:00
|
|
|
int64_t contentLength,
|
2012-08-22 08:56:38 -07:00
|
|
|
int32_t source,
|
2010-10-11 04:35:10 -07:00
|
|
|
nsCString charset,
|
|
|
|
nsCString securityInfo);
|
|
|
|
|
|
|
|
OnDataAvailable(nsCString data,
|
2012-09-05 19:41:02 -07:00
|
|
|
uint64_t offset);
|
2010-10-11 04:35:10 -07:00
|
|
|
|
|
|
|
OnStopRequest(nsresult statusCode);
|
2010-11-19 13:12:45 -08:00
|
|
|
|
|
|
|
CancelEarly(nsresult statusCode);
|
2007-03-22 10:30:00 -07:00
|
|
|
};
|
|
|
|
|
2010-10-11 04:35:10 -07:00
|
|
|
|
|
|
|
} // namespace net
|
|
|
|
} // namespace mozilla
|