1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/netwerk/ipc/NeckoChild.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,84 @@ 1.4 +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* vim: set sw=2 ts=8 et tw=80 : */ 1.6 + 1.7 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.8 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.9 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.10 + 1.11 +#ifndef mozilla_net_NeckoChild_h 1.12 +#define mozilla_net_NeckoChild_h 1.13 + 1.14 +#include "mozilla/net/PNeckoChild.h" 1.15 +#include "mozilla/net/NeckoCommon.h" 1.16 + 1.17 +namespace mozilla { 1.18 +namespace net { 1.19 + 1.20 +// Header file contents 1.21 +class NeckoChild : 1.22 + public PNeckoChild 1.23 +{ 1.24 +public: 1.25 + NeckoChild(); 1.26 + virtual ~NeckoChild(); 1.27 + 1.28 + static void InitNeckoChild(); 1.29 + static void DestroyNeckoChild(); 1.30 + 1.31 +protected: 1.32 + virtual PHttpChannelChild* 1.33 + AllocPHttpChannelChild(PBrowserChild*, const SerializedLoadContext&, 1.34 + const HttpChannelCreationArgs& aOpenArgs) MOZ_OVERRIDE; 1.35 + virtual bool DeallocPHttpChannelChild(PHttpChannelChild*) MOZ_OVERRIDE; 1.36 + virtual PCookieServiceChild* AllocPCookieServiceChild() MOZ_OVERRIDE; 1.37 + virtual bool DeallocPCookieServiceChild(PCookieServiceChild*) MOZ_OVERRIDE; 1.38 + virtual PWyciwygChannelChild* AllocPWyciwygChannelChild() MOZ_OVERRIDE; 1.39 + virtual bool DeallocPWyciwygChannelChild(PWyciwygChannelChild*) MOZ_OVERRIDE; 1.40 + virtual PFTPChannelChild* 1.41 + AllocPFTPChannelChild(PBrowserChild* aBrowser, 1.42 + const SerializedLoadContext& aSerialized, 1.43 + const FTPChannelCreationArgs& aOpenArgs) MOZ_OVERRIDE; 1.44 + virtual bool DeallocPFTPChannelChild(PFTPChannelChild*) MOZ_OVERRIDE; 1.45 + virtual PWebSocketChild* 1.46 + AllocPWebSocketChild(PBrowserChild*, const SerializedLoadContext&) MOZ_OVERRIDE; 1.47 + virtual bool DeallocPWebSocketChild(PWebSocketChild*) MOZ_OVERRIDE; 1.48 + virtual PTCPSocketChild* AllocPTCPSocketChild() MOZ_OVERRIDE; 1.49 + virtual bool DeallocPTCPSocketChild(PTCPSocketChild*) MOZ_OVERRIDE; 1.50 + virtual PTCPServerSocketChild* 1.51 + AllocPTCPServerSocketChild(const uint16_t& aLocalPort, 1.52 + const uint16_t& aBacklog, 1.53 + const nsString& aBinaryType) MOZ_OVERRIDE; 1.54 + virtual bool DeallocPTCPServerSocketChild(PTCPServerSocketChild*) MOZ_OVERRIDE; 1.55 + virtual PUDPSocketChild* AllocPUDPSocketChild(const nsCString& aHost, 1.56 + const uint16_t& aPort, 1.57 + const nsCString& aFilter) MOZ_OVERRIDE; 1.58 + virtual bool DeallocPUDPSocketChild(PUDPSocketChild*) MOZ_OVERRIDE; 1.59 + virtual PDNSRequestChild* AllocPDNSRequestChild(const nsCString& aHost, 1.60 + const uint32_t& aFlags) MOZ_OVERRIDE; 1.61 + virtual bool DeallocPDNSRequestChild(PDNSRequestChild*) MOZ_OVERRIDE; 1.62 + virtual PRemoteOpenFileChild* 1.63 + AllocPRemoteOpenFileChild(const URIParams&, 1.64 + const OptionalURIParams&) MOZ_OVERRIDE; 1.65 + virtual bool DeallocPRemoteOpenFileChild(PRemoteOpenFileChild*) MOZ_OVERRIDE; 1.66 + virtual PRtspControllerChild* AllocPRtspControllerChild() MOZ_OVERRIDE; 1.67 + virtual bool DeallocPRtspControllerChild(PRtspControllerChild*) MOZ_OVERRIDE; 1.68 + virtual PRtspChannelChild* 1.69 + AllocPRtspChannelChild(const RtspChannelConnectArgs& aArgs) 1.70 + MOZ_OVERRIDE; 1.71 + virtual bool DeallocPRtspChannelChild(PRtspChannelChild*) MOZ_OVERRIDE; 1.72 + virtual PChannelDiverterChild* 1.73 + AllocPChannelDiverterChild(const ChannelDiverterArgs& channel) MOZ_OVERRIDE; 1.74 + virtual bool 1.75 + DeallocPChannelDiverterChild(PChannelDiverterChild* actor) MOZ_OVERRIDE; 1.76 +}; 1.77 + 1.78 +/** 1.79 + * Reference to the PNecko Child protocol. 1.80 + * Null if this is not a content process. 1.81 + */ 1.82 +extern PNeckoChild *gNeckoChild; 1.83 + 1.84 +} // namespace net 1.85 +} // namespace mozilla 1.86 + 1.87 +#endif // mozilla_net_NeckoChild_h