michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: include protocol PNecko; michael@0: include protocol PBrowser; michael@0: include URIParams; michael@0: michael@0: michael@0: using class IPC::SerializedLoadContext from "SerializedLoadContext.h"; michael@0: michael@0: namespace mozilla { michael@0: namespace net { michael@0: michael@0: //------------------------------------------------------------------- michael@0: protocol PWyciwygChannel michael@0: { michael@0: manager PNecko; michael@0: michael@0: parent: michael@0: __delete__(); michael@0: michael@0: Init(URIParams uri); michael@0: AsyncOpen(URIParams originalURI, michael@0: uint32_t loadFlags, michael@0: SerializedLoadContext loadContext, michael@0: PBrowser browser); michael@0: AppData(SerializedLoadContext loadContext, PBrowser browser); michael@0: michael@0: // methods corresponding to those of nsIWyciwygChannel michael@0: WriteToCacheEntry(nsString data); michael@0: CloseCacheEntry(nsresult reason); michael@0: SetCharsetAndSource(int32_t source, nsCString charset); michael@0: SetSecurityInfo(nsCString securityInfo); michael@0: Cancel(nsresult status); michael@0: michael@0: child: michael@0: OnStartRequest(nsresult statusCode, michael@0: int64_t contentLength, michael@0: int32_t source, michael@0: nsCString charset, michael@0: nsCString securityInfo); michael@0: michael@0: OnDataAvailable(nsCString data, michael@0: uint64_t offset); michael@0: michael@0: OnStopRequest(nsresult statusCode); michael@0: michael@0: CancelEarly(nsresult statusCode); michael@0: }; michael@0: michael@0: michael@0: } // namespace net michael@0: } // namespace mozilla