Bumping manifests a=b2g-bump
[gecko.git] / netwerk / ipc / NeckoChild.h
blobd705db0d24e171d09d4657d2a2c0eb3cba3a168e
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*
30 AllocPHttpChannelChild(const PBrowserOrId&, const SerializedLoadContext&,
31 const HttpChannelCreationArgs& aOpenArgs) MOZ_OVERRIDE;
32 virtual bool DeallocPHttpChannelChild(PHttpChannelChild*) MOZ_OVERRIDE;
33 virtual PCookieServiceChild* AllocPCookieServiceChild() MOZ_OVERRIDE;
34 virtual bool DeallocPCookieServiceChild(PCookieServiceChild*) MOZ_OVERRIDE;
35 virtual PWyciwygChannelChild* AllocPWyciwygChannelChild() MOZ_OVERRIDE;
36 virtual bool DeallocPWyciwygChannelChild(PWyciwygChannelChild*) MOZ_OVERRIDE;
37 virtual PFTPChannelChild*
38 AllocPFTPChannelChild(const PBrowserOrId& aBrowser,
39 const SerializedLoadContext& aSerialized,
40 const FTPChannelCreationArgs& aOpenArgs) MOZ_OVERRIDE;
41 virtual bool DeallocPFTPChannelChild(PFTPChannelChild*) MOZ_OVERRIDE;
42 virtual PWebSocketChild*
43 AllocPWebSocketChild(const PBrowserOrId&,
44 const SerializedLoadContext&) MOZ_OVERRIDE;
45 virtual bool DeallocPWebSocketChild(PWebSocketChild*) MOZ_OVERRIDE;
46 virtual PTCPSocketChild* AllocPTCPSocketChild(const nsString& host,
47 const uint16_t& port) MOZ_OVERRIDE;
48 virtual bool DeallocPTCPSocketChild(PTCPSocketChild*) MOZ_OVERRIDE;
49 virtual PTCPServerSocketChild*
50 AllocPTCPServerSocketChild(const uint16_t& aLocalPort,
51 const uint16_t& aBacklog,
52 const nsString& aBinaryType) MOZ_OVERRIDE;
53 virtual bool DeallocPTCPServerSocketChild(PTCPServerSocketChild*) MOZ_OVERRIDE;
54 virtual PUDPSocketChild* AllocPUDPSocketChild(const nsCString& aFilter) MOZ_OVERRIDE;
55 virtual bool DeallocPUDPSocketChild(PUDPSocketChild*) MOZ_OVERRIDE;
56 virtual PDNSRequestChild* AllocPDNSRequestChild(const nsCString& aHost,
57 const uint32_t& aFlags,
58 const nsCString& aNetworkInterface) MOZ_OVERRIDE;
59 virtual bool DeallocPDNSRequestChild(PDNSRequestChild*) MOZ_OVERRIDE;
60 virtual PRemoteOpenFileChild*
61 AllocPRemoteOpenFileChild(const SerializedLoadContext& aSerialized,
62 const URIParams&,
63 const OptionalURIParams&) MOZ_OVERRIDE;
64 virtual bool DeallocPRemoteOpenFileChild(PRemoteOpenFileChild*) MOZ_OVERRIDE;
65 virtual PRtspControllerChild* AllocPRtspControllerChild() MOZ_OVERRIDE;
66 virtual bool DeallocPRtspControllerChild(PRtspControllerChild*) MOZ_OVERRIDE;
67 virtual PRtspChannelChild*
68 AllocPRtspChannelChild(const RtspChannelConnectArgs& aArgs)
69 MOZ_OVERRIDE;
70 virtual bool DeallocPRtspChannelChild(PRtspChannelChild*) MOZ_OVERRIDE;
71 virtual PChannelDiverterChild*
72 AllocPChannelDiverterChild(const ChannelDiverterArgs& channel) MOZ_OVERRIDE;
73 virtual bool
74 DeallocPChannelDiverterChild(PChannelDiverterChild* actor) MOZ_OVERRIDE;
75 virtual bool RecvAsyncAuthPromptForNestedFrame(const TabId& aNestedFrameId,
76 const nsCString& aUri,
77 const nsString& aRealm,
78 const uint64_t& aCallbackId) MOZ_OVERRIDE;
79 virtual bool RecvAppOfflineStatus(const uint32_t& aId, const bool& aOffline) MOZ_OVERRIDE;
82 /**
83 * Reference to the PNecko Child protocol.
84 * Null if this is not a content process.
86 extern PNeckoChild *gNeckoChild;
88 } // namespace net
89 } // namespace mozilla
91 #endif // mozilla_net_NeckoChild_h