PGeckoViewContentChannel.ipdl (1263B)
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* vim: set sw=2 ts=2 sts=2 et tw=80 ft=cpp : */ 3 /* This Source Code Form is subject to the terms of the Mozilla Public 4 * License, v. 2.0. If a copy of the MPL was not distributed with this 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 7 include protocol PNecko; 8 include NeckoChannelParams; 9 10 [RefCounted] using class nsIURI from "mozilla/ipc/URIUtils.h"; 11 12 namespace mozilla { 13 namespace net { 14 15 async protocol PGeckoViewContentChannel 16 { 17 manager PNecko; 18 19 parent: 20 // Note: channels are opened during construction, so no open method here: 21 // see PNecko.ipdl 22 async __delete__(); 23 24 async Cancel(nsresult status); 25 async Suspend(); 26 async Resume(); 27 28 child: 29 async OnStartRequest(nsresult aChannelStatus, 30 nsCString aContentType, 31 nsCString aEntityID, 32 nsIURI aURI); 33 async OnDataAvailable(nsresult channelStatus, 34 nsCString data, 35 uint64_t offset, 36 uint32_t count); 37 async OnStopRequest(nsresult channelStatus); 38 async OnAsyncOpenFailed(nsresult aResult); 39 async DeleteSelf(); 40 }; 41 42 } // namespace net 43 } // namespace mozilla