netwerk/protocol/wyciwyg/PWyciwygChannel.ipdl

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 include protocol PNecko;
michael@0 6 include protocol PBrowser;
michael@0 7 include URIParams;
michael@0 8
michael@0 9
michael@0 10 using class IPC::SerializedLoadContext from "SerializedLoadContext.h";
michael@0 11
michael@0 12 namespace mozilla {
michael@0 13 namespace net {
michael@0 14
michael@0 15 //-------------------------------------------------------------------
michael@0 16 protocol PWyciwygChannel
michael@0 17 {
michael@0 18 manager PNecko;
michael@0 19
michael@0 20 parent:
michael@0 21 __delete__();
michael@0 22
michael@0 23 Init(URIParams uri);
michael@0 24 AsyncOpen(URIParams originalURI,
michael@0 25 uint32_t loadFlags,
michael@0 26 SerializedLoadContext loadContext,
michael@0 27 PBrowser browser);
michael@0 28 AppData(SerializedLoadContext loadContext, PBrowser browser);
michael@0 29
michael@0 30 // methods corresponding to those of nsIWyciwygChannel
michael@0 31 WriteToCacheEntry(nsString data);
michael@0 32 CloseCacheEntry(nsresult reason);
michael@0 33 SetCharsetAndSource(int32_t source, nsCString charset);
michael@0 34 SetSecurityInfo(nsCString securityInfo);
michael@0 35 Cancel(nsresult status);
michael@0 36
michael@0 37 child:
michael@0 38 OnStartRequest(nsresult statusCode,
michael@0 39 int64_t contentLength,
michael@0 40 int32_t source,
michael@0 41 nsCString charset,
michael@0 42 nsCString securityInfo);
michael@0 43
michael@0 44 OnDataAvailable(nsCString data,
michael@0 45 uint64_t offset);
michael@0 46
michael@0 47 OnStopRequest(nsresult statusCode);
michael@0 48
michael@0 49 CancelEarly(nsresult statusCode);
michael@0 50 };
michael@0 51
michael@0 52
michael@0 53 } // namespace net
michael@0 54 } // namespace mozilla

mercurial