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