Bug 788829 - Call SetSizeConstraints even if a popup is not open. r=enndeakin
[gecko.git] / netwerk / ipc / NeckoChild.h
blobadecce22aeb2145b6af2ea433bcc88c94853db4a
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"
14 namespace mozilla {
15 namespace net {
17 // Header file contents
18 class NeckoChild :
19 public PNeckoChild
21 public:
22 NeckoChild();
23 virtual ~NeckoChild();
25 static void InitNeckoChild();
26 static void DestroyNeckoChild();
28 protected:
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,
41 const bool& useSSL,
42 const nsString& aBinaryType,
43 PBrowserChild* aBrowser);
44 virtual bool DeallocPTCPSocket(PTCPSocketChild*);
47 /**
48 * Reference to the PNecko Child protocol.
49 * Null if this is not a content process.
51 extern PNeckoChild *gNeckoChild;
53 } // namespace net
54 } // namespace mozilla
56 #endif // mozilla_net_NeckoChild_h