Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* vim: set sw=2 ts=8 et tw=80 : */ |
michael@0 | 3 | |
michael@0 | 4 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 5 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 6 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 7 | |
michael@0 | 8 | #ifndef mozilla_net_NeckoChild_h |
michael@0 | 9 | #define mozilla_net_NeckoChild_h |
michael@0 | 10 | |
michael@0 | 11 | #include "mozilla/net/PNeckoChild.h" |
michael@0 | 12 | #include "mozilla/net/NeckoCommon.h" |
michael@0 | 13 | |
michael@0 | 14 | namespace mozilla { |
michael@0 | 15 | namespace net { |
michael@0 | 16 | |
michael@0 | 17 | // Header file contents |
michael@0 | 18 | class NeckoChild : |
michael@0 | 19 | public PNeckoChild |
michael@0 | 20 | { |
michael@0 | 21 | public: |
michael@0 | 22 | NeckoChild(); |
michael@0 | 23 | virtual ~NeckoChild(); |
michael@0 | 24 | |
michael@0 | 25 | static void InitNeckoChild(); |
michael@0 | 26 | static void DestroyNeckoChild(); |
michael@0 | 27 | |
michael@0 | 28 | protected: |
michael@0 | 29 | virtual PHttpChannelChild* |
michael@0 | 30 | AllocPHttpChannelChild(PBrowserChild*, const SerializedLoadContext&, |
michael@0 | 31 | const HttpChannelCreationArgs& aOpenArgs) MOZ_OVERRIDE; |
michael@0 | 32 | virtual bool DeallocPHttpChannelChild(PHttpChannelChild*) MOZ_OVERRIDE; |
michael@0 | 33 | virtual PCookieServiceChild* AllocPCookieServiceChild() MOZ_OVERRIDE; |
michael@0 | 34 | virtual bool DeallocPCookieServiceChild(PCookieServiceChild*) MOZ_OVERRIDE; |
michael@0 | 35 | virtual PWyciwygChannelChild* AllocPWyciwygChannelChild() MOZ_OVERRIDE; |
michael@0 | 36 | virtual bool DeallocPWyciwygChannelChild(PWyciwygChannelChild*) MOZ_OVERRIDE; |
michael@0 | 37 | virtual PFTPChannelChild* |
michael@0 | 38 | AllocPFTPChannelChild(PBrowserChild* aBrowser, |
michael@0 | 39 | const SerializedLoadContext& aSerialized, |
michael@0 | 40 | const FTPChannelCreationArgs& aOpenArgs) MOZ_OVERRIDE; |
michael@0 | 41 | virtual bool DeallocPFTPChannelChild(PFTPChannelChild*) MOZ_OVERRIDE; |
michael@0 | 42 | virtual PWebSocketChild* |
michael@0 | 43 | AllocPWebSocketChild(PBrowserChild*, const SerializedLoadContext&) MOZ_OVERRIDE; |
michael@0 | 44 | virtual bool DeallocPWebSocketChild(PWebSocketChild*) MOZ_OVERRIDE; |
michael@0 | 45 | virtual PTCPSocketChild* AllocPTCPSocketChild() MOZ_OVERRIDE; |
michael@0 | 46 | virtual bool DeallocPTCPSocketChild(PTCPSocketChild*) MOZ_OVERRIDE; |
michael@0 | 47 | virtual PTCPServerSocketChild* |
michael@0 | 48 | AllocPTCPServerSocketChild(const uint16_t& aLocalPort, |
michael@0 | 49 | const uint16_t& aBacklog, |
michael@0 | 50 | const nsString& aBinaryType) MOZ_OVERRIDE; |
michael@0 | 51 | virtual bool DeallocPTCPServerSocketChild(PTCPServerSocketChild*) MOZ_OVERRIDE; |
michael@0 | 52 | virtual PUDPSocketChild* AllocPUDPSocketChild(const nsCString& aHost, |
michael@0 | 53 | const uint16_t& aPort, |
michael@0 | 54 | const nsCString& aFilter) MOZ_OVERRIDE; |
michael@0 | 55 | virtual bool DeallocPUDPSocketChild(PUDPSocketChild*) MOZ_OVERRIDE; |
michael@0 | 56 | virtual PDNSRequestChild* AllocPDNSRequestChild(const nsCString& aHost, |
michael@0 | 57 | const uint32_t& aFlags) MOZ_OVERRIDE; |
michael@0 | 58 | virtual bool DeallocPDNSRequestChild(PDNSRequestChild*) MOZ_OVERRIDE; |
michael@0 | 59 | virtual PRemoteOpenFileChild* |
michael@0 | 60 | AllocPRemoteOpenFileChild(const URIParams&, |
michael@0 | 61 | const OptionalURIParams&) MOZ_OVERRIDE; |
michael@0 | 62 | virtual bool DeallocPRemoteOpenFileChild(PRemoteOpenFileChild*) MOZ_OVERRIDE; |
michael@0 | 63 | virtual PRtspControllerChild* AllocPRtspControllerChild() MOZ_OVERRIDE; |
michael@0 | 64 | virtual bool DeallocPRtspControllerChild(PRtspControllerChild*) MOZ_OVERRIDE; |
michael@0 | 65 | virtual PRtspChannelChild* |
michael@0 | 66 | AllocPRtspChannelChild(const RtspChannelConnectArgs& aArgs) |
michael@0 | 67 | MOZ_OVERRIDE; |
michael@0 | 68 | virtual bool DeallocPRtspChannelChild(PRtspChannelChild*) MOZ_OVERRIDE; |
michael@0 | 69 | virtual PChannelDiverterChild* |
michael@0 | 70 | AllocPChannelDiverterChild(const ChannelDiverterArgs& channel) MOZ_OVERRIDE; |
michael@0 | 71 | virtual bool |
michael@0 | 72 | DeallocPChannelDiverterChild(PChannelDiverterChild* actor) MOZ_OVERRIDE; |
michael@0 | 73 | }; |
michael@0 | 74 | |
michael@0 | 75 | /** |
michael@0 | 76 | * Reference to the PNecko Child protocol. |
michael@0 | 77 | * Null if this is not a content process. |
michael@0 | 78 | */ |
michael@0 | 79 | extern PNeckoChild *gNeckoChild; |
michael@0 | 80 | |
michael@0 | 81 | } // namespace net |
michael@0 | 82 | } // namespace mozilla |
michael@0 | 83 | |
michael@0 | 84 | #endif // mozilla_net_NeckoChild_h |