1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/netwerk/protocol/wyciwyg/PWyciwygChannel.ipdl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,54 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +include protocol PNecko; 1.9 +include protocol PBrowser; 1.10 +include URIParams; 1.11 + 1.12 + 1.13 +using class IPC::SerializedLoadContext from "SerializedLoadContext.h"; 1.14 + 1.15 +namespace mozilla { 1.16 +namespace net { 1.17 + 1.18 +//------------------------------------------------------------------- 1.19 +protocol PWyciwygChannel 1.20 +{ 1.21 + manager PNecko; 1.22 + 1.23 +parent: 1.24 + __delete__(); 1.25 + 1.26 + Init(URIParams uri); 1.27 + AsyncOpen(URIParams originalURI, 1.28 + uint32_t loadFlags, 1.29 + SerializedLoadContext loadContext, 1.30 + PBrowser browser); 1.31 + AppData(SerializedLoadContext loadContext, PBrowser browser); 1.32 + 1.33 + // methods corresponding to those of nsIWyciwygChannel 1.34 + WriteToCacheEntry(nsString data); 1.35 + CloseCacheEntry(nsresult reason); 1.36 + SetCharsetAndSource(int32_t source, nsCString charset); 1.37 + SetSecurityInfo(nsCString securityInfo); 1.38 + Cancel(nsresult status); 1.39 + 1.40 +child: 1.41 + OnStartRequest(nsresult statusCode, 1.42 + int64_t contentLength, 1.43 + int32_t source, 1.44 + nsCString charset, 1.45 + nsCString securityInfo); 1.46 + 1.47 + OnDataAvailable(nsCString data, 1.48 + uint64_t offset); 1.49 + 1.50 + OnStopRequest(nsresult statusCode); 1.51 + 1.52 + CancelEarly(nsresult statusCode); 1.53 +}; 1.54 + 1.55 + 1.56 +} // namespace net 1.57 +} // namespace mozilla