netwerk/protocol/wyciwyg/PWyciwygChannel.ipdl

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:be81581ff7b7
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/. */
4
5 include protocol PNecko;
6 include protocol PBrowser;
7 include URIParams;
8
9
10 using class IPC::SerializedLoadContext from "SerializedLoadContext.h";
11
12 namespace mozilla {
13 namespace net {
14
15 //-------------------------------------------------------------------
16 protocol PWyciwygChannel
17 {
18 manager PNecko;
19
20 parent:
21 __delete__();
22
23 Init(URIParams uri);
24 AsyncOpen(URIParams originalURI,
25 uint32_t loadFlags,
26 SerializedLoadContext loadContext,
27 PBrowser browser);
28 AppData(SerializedLoadContext loadContext, PBrowser browser);
29
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);
36
37 child:
38 OnStartRequest(nsresult statusCode,
39 int64_t contentLength,
40 int32_t source,
41 nsCString charset,
42 nsCString securityInfo);
43
44 OnDataAvailable(nsCString data,
45 uint64_t offset);
46
47 OnStopRequest(nsresult statusCode);
48
49 CancelEarly(nsresult statusCode);
50 };
51
52
53 } // namespace net
54 } // namespace mozilla

mercurial