2009-08-18 12:05:15 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set sw=2 ts=8 et tw=80 ft=cpp : */
|
|
|
|
|
2012-05-21 04:12:37 -07:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2009-08-18 12:05:15 -07:00
|
|
|
|
2010-07-19 11:33:33 -07:00
|
|
|
include protocol PContent;
|
2010-04-27 00:12:38 -07:00
|
|
|
include protocol PHttpChannel;
|
|
|
|
include protocol PCookieService;
|
2010-07-19 11:33:33 -07:00
|
|
|
include protocol PBrowser;
|
2010-10-11 04:35:10 -07:00
|
|
|
include protocol PWyciwygChannel;
|
2010-08-10 11:47:00 -07:00
|
|
|
include protocol PFTPChannel;
|
2011-05-04 06:36:23 -07:00
|
|
|
include protocol PWebSocket;
|
2012-09-24 11:53:49 -07:00
|
|
|
include protocol PTCPSocket;
|
2013-07-29 10:36:43 -07:00
|
|
|
include protocol PTCPServerSocket;
|
2013-05-10 05:00:28 -07:00
|
|
|
include protocol PUDPSocket;
|
2012-12-22 05:56:21 -08:00
|
|
|
include protocol PRemoteOpenFile;
|
2013-12-11 11:03:51 -08:00
|
|
|
include protocol PDNSRequest;
|
2014-03-10 15:04:28 -07:00
|
|
|
include protocol PChannelDiverter;
|
2013-06-22 09:09:19 -07:00
|
|
|
include protocol PBlob; //FIXME: bug #792908
|
2014-03-25 11:37:28 -07:00
|
|
|
include protocol PFileDescriptorSet;
|
2013-06-22 09:09:19 -07:00
|
|
|
|
2013-09-23 03:12:11 -07:00
|
|
|
include protocol PRtspController;
|
2014-04-03 04:08:34 -07:00
|
|
|
include protocol PRtspChannel;
|
2012-12-22 05:56:21 -08:00
|
|
|
include URIParams;
|
2013-06-22 09:09:19 -07:00
|
|
|
include InputStreamParams;
|
|
|
|
include NeckoChannelParams;
|
2014-10-29 11:11:00 -07:00
|
|
|
include PBrowserOrId;
|
2012-10-09 16:46:24 -07:00
|
|
|
|
2013-10-01 12:25:07 -07:00
|
|
|
using class IPC::SerializedLoadContext from "SerializedLoadContext.h";
|
2014-10-23 17:29:00 -07:00
|
|
|
using mozilla::dom::TabId from "mozilla/dom/ipc/IdType.h";
|
2012-10-09 16:46:24 -07:00
|
|
|
|
2009-08-18 12:05:15 -07:00
|
|
|
namespace mozilla {
|
|
|
|
namespace net {
|
|
|
|
|
|
|
|
//-------------------------------------------------------------------
|
2014-10-30 15:51:39 -07:00
|
|
|
prio(normal upto urgent) sync protocol PNecko
|
2009-08-18 12:05:15 -07:00
|
|
|
{
|
2010-07-19 11:33:33 -07:00
|
|
|
manager PContent;
|
2009-08-18 12:05:15 -07:00
|
|
|
manages PHttpChannel;
|
2010-03-25 16:02:28 -07:00
|
|
|
manages PCookieService;
|
2010-10-11 04:35:10 -07:00
|
|
|
manages PWyciwygChannel;
|
2010-08-10 11:47:00 -07:00
|
|
|
manages PFTPChannel;
|
2011-05-04 06:36:23 -07:00
|
|
|
manages PWebSocket;
|
2012-09-24 11:53:49 -07:00
|
|
|
manages PTCPSocket;
|
2013-07-29 10:36:43 -07:00
|
|
|
manages PTCPServerSocket;
|
2013-05-10 05:00:28 -07:00
|
|
|
manages PUDPSocket;
|
2013-12-11 11:03:51 -08:00
|
|
|
manages PDNSRequest;
|
2012-12-22 05:56:21 -08:00
|
|
|
manages PRemoteOpenFile;
|
2013-09-23 03:12:11 -07:00
|
|
|
manages PRtspController;
|
2014-04-03 04:08:34 -07:00
|
|
|
manages PRtspChannel;
|
2014-03-10 15:04:28 -07:00
|
|
|
manages PChannelDiverter;
|
2009-08-18 12:05:15 -07:00
|
|
|
|
|
|
|
parent:
|
2009-12-03 00:16:14 -08:00
|
|
|
__delete__();
|
|
|
|
|
2014-10-30 15:51:39 -07:00
|
|
|
prio(urgent) async PCookieService();
|
2014-06-10 22:44:36 -07:00
|
|
|
PHttpChannel(PBrowserOrId browser,
|
2013-06-22 09:09:19 -07:00
|
|
|
SerializedLoadContext loadContext,
|
|
|
|
HttpChannelCreationArgs args);
|
2010-10-11 04:35:10 -07:00
|
|
|
PWyciwygChannel();
|
2014-06-10 22:44:36 -07:00
|
|
|
PFTPChannel(PBrowserOrId browser, SerializedLoadContext loadContext,
|
2013-06-22 09:09:19 -07:00
|
|
|
FTPChannelCreationArgs args);
|
|
|
|
|
2014-06-10 22:44:36 -07:00
|
|
|
PWebSocket(PBrowserOrId browser, SerializedLoadContext loadContext);
|
2013-07-29 10:36:43 -07:00
|
|
|
PTCPServerSocket(uint16_t localPort, uint16_t backlog, nsString binaryType);
|
2014-05-06 03:32:25 -07:00
|
|
|
PUDPSocket(nsCString filter);
|
2013-05-10 05:00:28 -07:00
|
|
|
|
2015-02-18 21:14:00 -08:00
|
|
|
PDNSRequest(nsCString hostName, uint32_t flags, nsCString networkInterface);
|
2013-12-11 11:03:51 -08:00
|
|
|
|
2014-05-30 12:50:51 -07:00
|
|
|
PRemoteOpenFile(SerializedLoadContext loadContext,
|
|
|
|
URIParams fileuri,
|
|
|
|
OptionalURIParams appuri);
|
2010-07-26 11:49:09 -07:00
|
|
|
|
2012-08-22 08:56:38 -07:00
|
|
|
HTMLDNSPrefetch(nsString hostname, uint16_t flags);
|
|
|
|
CancelHTMLDNSPrefetch(nsString hostname, uint16_t flags, nsresult reason);
|
2013-09-23 03:12:11 -07:00
|
|
|
PRtspController();
|
2014-04-03 04:08:34 -07:00
|
|
|
PRtspChannel(RtspChannelConnectArgs args);
|
2014-03-10 15:04:28 -07:00
|
|
|
PChannelDiverter(ChannelDiverterArgs channel);
|
2010-08-10 20:11:57 -07:00
|
|
|
|
2014-06-10 22:44:36 -07:00
|
|
|
/**
|
|
|
|
* These are called from the child with the results of the auth prompt.
|
|
|
|
* callbackId is the id that was passed in PBrowser::AsyncAuthPrompt,
|
|
|
|
* corresponding to an nsIAuthPromptCallback
|
|
|
|
*/
|
|
|
|
OnAuthAvailable(uint64_t callbackId, nsString user,
|
|
|
|
nsString password, nsString domain);
|
|
|
|
OnAuthCancelled(uint64_t callbackId, bool userCancel);
|
|
|
|
|
|
|
|
child:
|
|
|
|
/*
|
|
|
|
* Bring up the http auth prompt for a nested remote mozbrowser.
|
|
|
|
* NestedFrameId is the id corresponding to the PBrowser. It is the same id
|
|
|
|
* that was passed to the PBrowserOrId param in to the PHttpChannel constructor
|
|
|
|
*/
|
2014-10-23 17:29:00 -07:00
|
|
|
AsyncAuthPromptForNestedFrame(TabId nestedFrameId, nsCString uri,
|
2014-06-10 22:44:36 -07:00
|
|
|
nsString realm, uint64_t callbackId);
|
2014-08-22 20:05:56 -07:00
|
|
|
// Notifies child that a given app is now offline (or online)
|
|
|
|
AppOfflineStatus(uint32_t appId, bool offline);
|
2014-06-10 22:44:36 -07:00
|
|
|
|
2013-07-29 10:36:43 -07:00
|
|
|
both:
|
2013-12-18 19:21:12 -08:00
|
|
|
// Actually we need PTCPSocket() for parent. But ipdl disallows us having different
|
|
|
|
// signatures on parent and child. So when constructing the parent side object, we just
|
|
|
|
// leave host/port unused.
|
|
|
|
PTCPSocket(nsString host, uint16_t port);
|
2009-08-18 12:05:15 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace net
|
|
|
|
} // namespace mozilla
|