1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 include protocol PNecko;
6 include protocol PBrowser;
10 using class IPC::SerializedLoadContext from "SerializedLoadContext.h";
15 //-------------------------------------------------------------------
16 protocol PWyciwygChannel
24 AsyncOpen(URIParams originalURI,
26 SerializedLoadContext loadContext,
28 AppData(SerializedLoadContext loadContext, PBrowser browser);
30 // methods corresponding to those of nsIWyciwygChannel
31 WriteToCacheEntry(nsString data);
32 CloseCacheEntry(nsresult reason);
33 SetCharsetAndSource(int32_t source, nsCString charset);
34 SetSecurityInfo(nsCString securityInfo);
35 Cancel(nsresult status);
38 OnStartRequest(nsresult statusCode,
39 int64_t contentLength,
42 nsCString securityInfo);
44 OnDataAvailable(nsCString data,
47 OnStopRequest(nsresult statusCode);
49 CancelEarly(nsresult statusCode);
54 } // namespace mozilla