2009-08-18 23:05:15 +04: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 15:12:37 +04: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 23:05:15 +04:00
|
|
|
|
2010-07-19 22:33:33 +04:00
|
|
|
include protocol PContent;
|
2010-04-27 11:12:38 +04:00
|
|
|
include protocol PHttpChannel;
|
|
|
|
include protocol PCookieService;
|
2010-07-19 22:33:33 +04:00
|
|
|
include protocol PBrowser;
|
2010-10-11 15:35:10 +04:00
|
|
|
include protocol PWyciwygChannel;
|
2010-08-10 22:47:00 +04:00
|
|
|
include protocol PFTPChannel;
|
2011-05-04 17:36:23 +04:00
|
|
|
include protocol PWebSocket;
|
2012-09-24 22:53:49 +04:00
|
|
|
include protocol PTCPSocket;
|
2013-07-29 21:36:43 +04:00
|
|
|
include protocol PTCPServerSocket;
|
2013-05-10 16:00:28 +04:00
|
|
|
include protocol PUDPSocket;
|
2012-12-22 17:56:21 +04:00
|
|
|
include protocol PRemoteOpenFile;
|
2013-12-11 23:03:51 +04:00
|
|
|
include protocol PDNSRequest;
|
2014-03-11 02:04:28 +04:00
|
|
|
include protocol PChannelDiverter;
|
2013-06-22 20:09:19 +04:00
|
|
|
include protocol PBlob; //FIXME: bug #792908
|
2014-03-25 22:37:28 +04:00
|
|
|
include protocol PFileDescriptorSet;
|
2013-06-22 20:09:19 +04:00
|
|
|
|
2013-09-23 14:12:11 +04:00
|
|
|
include protocol PRtspController;
|
2014-04-03 15:08:34 +04:00
|
|
|
include protocol PRtspChannel;
|
2012-12-22 17:56:21 +04:00
|
|
|
include URIParams;
|
2013-06-22 20:09:19 +04:00
|
|
|
include InputStreamParams;
|
|
|
|
include NeckoChannelParams;
|
2014-10-28 02:56:45 +03:00
|
|
|
|
2012-10-10 03:46:24 +04:00
|
|
|
|
2013-10-01 23:25:07 +04:00
|
|
|
using class IPC::SerializedLoadContext from "SerializedLoadContext.h";
|
2012-10-10 03:46:24 +04:00
|
|
|
|
2009-08-18 23:05:15 +04:00
|
|
|
namespace mozilla {
|
|
|
|
namespace net {
|
|
|
|
|
2014-10-28 02:56:45 +03:00
|
|
|
union PBrowserOrId {
|
|
|
|
nullable PBrowser;
|
|
|
|
uint64_t;
|
|
|
|
};
|
|
|
|
|
2009-08-18 23:05:15 +04:00
|
|
|
//-------------------------------------------------------------------
|
2014-10-29 21:41:10 +03:00
|
|
|
prio(normal upto urgent) sync protocol PNecko
|
2009-08-18 23:05:15 +04:00
|
|
|
{
|
2010-07-19 22:33:33 +04:00
|
|
|
manager PContent;
|
2009-08-18 23:05:15 +04:00
|
|
|
manages PHttpChannel;
|
2010-03-26 02:02:28 +03:00
|
|
|
manages PCookieService;
|
2010-10-11 15:35:10 +04:00
|
|
|
manages PWyciwygChannel;
|
2010-08-10 22:47:00 +04:00
|
|
|
manages PFTPChannel;
|
2011-05-04 17:36:23 +04:00
|
|
|
manages PWebSocket;
|
2012-09-24 22:53:49 +04:00
|
|
|
manages PTCPSocket;
|
2013-07-29 21:36:43 +04:00
|
|
|
manages PTCPServerSocket;
|
2013-05-10 16:00:28 +04:00
|
|
|
manages PUDPSocket;
|
2013-12-11 23:03:51 +04:00
|
|
|
manages PDNSRequest;
|
2012-12-22 17:56:21 +04:00
|
|
|
manages PRemoteOpenFile;
|
2013-09-23 14:12:11 +04:00
|
|
|
manages PRtspController;
|
2014-04-03 15:08:34 +04:00
|
|
|
manages PRtspChannel;
|
2014-03-11 02:04:28 +04:00
|
|
|
manages PChannelDiverter;
|
2009-08-18 23:05:15 +04:00
|
|
|
|
|
|
|
parent:
|
2009-12-03 11:16:14 +03:00
|
|
|
__delete__();
|
|
|
|
|
2014-10-29 21:41:10 +03:00
|
|
|
prio(urgent) async PCookieService();
|
2014-06-11 09:44:36 +04:00
|
|
|
PHttpChannel(PBrowserOrId browser,
|
2013-06-22 20:09:19 +04:00
|
|
|
SerializedLoadContext loadContext,
|
|
|
|
HttpChannelCreationArgs args);
|
2010-10-11 15:35:10 +04:00
|
|
|
PWyciwygChannel();
|
2014-06-11 09:44:36 +04:00
|
|
|
PFTPChannel(PBrowserOrId browser, SerializedLoadContext loadContext,
|
2013-06-22 20:09:19 +04:00
|
|
|
FTPChannelCreationArgs args);
|
|
|
|
|
2014-06-11 09:44:36 +04:00
|
|
|
PWebSocket(PBrowserOrId browser, SerializedLoadContext loadContext);
|
2013-07-29 21:36:43 +04:00
|
|
|
PTCPServerSocket(uint16_t localPort, uint16_t backlog, nsString binaryType);
|
2014-05-06 14:32:25 +04:00
|
|
|
PUDPSocket(nsCString filter);
|
2013-05-10 16:00:28 +04:00
|
|
|
|
2013-12-11 23:03:51 +04:00
|
|
|
PDNSRequest(nsCString hostName, uint32_t flags);
|
|
|
|
|
2014-05-30 23:50:51 +04:00
|
|
|
PRemoteOpenFile(SerializedLoadContext loadContext,
|
|
|
|
URIParams fileuri,
|
|
|
|
OptionalURIParams appuri);
|
2010-07-26 22:49:09 +04:00
|
|
|
|
2012-08-22 19:56:38 +04:00
|
|
|
HTMLDNSPrefetch(nsString hostname, uint16_t flags);
|
|
|
|
CancelHTMLDNSPrefetch(nsString hostname, uint16_t flags, nsresult reason);
|
2013-09-23 14:12:11 +04:00
|
|
|
PRtspController();
|
2014-04-03 15:08:34 +04:00
|
|
|
PRtspChannel(RtspChannelConnectArgs args);
|
2014-03-11 02:04:28 +04:00
|
|
|
PChannelDiverter(ChannelDiverterArgs channel);
|
2010-08-11 07:11:57 +04:00
|
|
|
|
2014-06-11 09:44:36 +04: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-28 02:56:45 +03:00
|
|
|
AsyncAuthPromptForNestedFrame(uint64_t nestedFrameId, nsCString uri,
|
2014-06-11 09:44:36 +04:00
|
|
|
nsString realm, uint64_t callbackId);
|
2014-08-23 07:05:56 +04:00
|
|
|
// Notifies child that a given app is now offline (or online)
|
|
|
|
AppOfflineStatus(uint32_t appId, bool offline);
|
2014-06-11 09:44:36 +04:00
|
|
|
|
2013-07-29 21:36:43 +04:00
|
|
|
both:
|
2013-12-19 07:21:12 +04: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 23:05:15 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace net
|
|
|
|
} // namespace mozilla
|