1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set sw=2 ts=8 et tw=80 : */
4 /* This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
8 #ifndef mozilla_net_NeckoChild_h
9 #define mozilla_net_NeckoChild_h
11 #include "mozilla/net/PNeckoChild.h"
12 #include "mozilla/net/NeckoCommon.h"
17 // Header file contents
23 virtual ~NeckoChild();
25 static void InitNeckoChild();
26 static void DestroyNeckoChild();
29 virtual PHttpChannelChild
* AllocPHttpChannel(PBrowserChild
* iframeEmbedding
);
30 virtual bool DeallocPHttpChannel(PHttpChannelChild
*);
31 virtual PCookieServiceChild
* AllocPCookieService();
32 virtual bool DeallocPCookieService(PCookieServiceChild
*);
33 virtual PWyciwygChannelChild
* AllocPWyciwygChannel();
34 virtual bool DeallocPWyciwygChannel(PWyciwygChannelChild
*);
35 virtual PFTPChannelChild
* AllocPFTPChannel();
36 virtual bool DeallocPFTPChannel(PFTPChannelChild
*);
37 virtual PWebSocketChild
* AllocPWebSocket(PBrowserChild
*);
38 virtual bool DeallocPWebSocket(PWebSocketChild
*);
39 virtual PTCPSocketChild
* AllocPTCPSocket(const nsString
& aHost
,
40 const uint16_t& aPort
,
42 const nsString
& aBinaryType
,
43 PBrowserChild
* aBrowser
);
44 virtual bool DeallocPTCPSocket(PTCPSocketChild
*);
48 * Reference to the PNecko Child protocol.
49 * Null if this is not a content process.
51 extern PNeckoChild
*gNeckoChild
;
54 } // namespace mozilla
56 #endif // mozilla_net_NeckoChild_h