2010-08-10 22:47:00 +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/. */
|
2010-08-10 22:47:00 +04:00
|
|
|
|
|
|
|
include protocol PNecko;
|
2012-08-23 23:33:46 +04:00
|
|
|
include InputStreamParams;
|
|
|
|
include URIParams;
|
2010-08-10 22:47:00 +04:00
|
|
|
|
2012-08-23 23:33:46 +04:00
|
|
|
include "SerializedLoadContext.h";
|
2010-08-10 22:47:00 +04:00
|
|
|
|
2012-08-07 08:47:48 +04:00
|
|
|
using IPC::SerializedLoadContext;
|
2010-08-10 22:47:00 +04:00
|
|
|
using PRTime;
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace net {
|
|
|
|
|
|
|
|
async protocol PFTPChannel
|
|
|
|
{
|
|
|
|
manager PNecko;
|
|
|
|
|
|
|
|
parent:
|
|
|
|
__delete__();
|
|
|
|
|
2012-08-23 23:33:46 +04:00
|
|
|
AsyncOpen(URIParams uri,
|
2012-08-22 19:56:38 +04:00
|
|
|
uint64_t startPos,
|
2012-07-23 02:35:33 +04:00
|
|
|
nsCString entityID,
|
2012-08-23 06:13:54 +04:00
|
|
|
OptionalInputStreamParams uploadStream,
|
2012-08-07 08:47:48 +04:00
|
|
|
SerializedLoadContext loadContext);
|
|
|
|
|
2012-08-22 19:56:38 +04:00
|
|
|
ConnectChannel(uint32_t channelId);
|
2010-08-10 22:47:00 +04:00
|
|
|
Cancel(nsresult status);
|
|
|
|
Suspend();
|
|
|
|
Resume();
|
|
|
|
|
|
|
|
child:
|
2012-08-22 19:56:38 +04:00
|
|
|
OnStartRequest(int32_t aContentLength, nsCString aContentType,
|
2012-08-23 23:33:46 +04:00
|
|
|
PRTime aLastModified, nsCString aEntityID, URIParams aURI);
|
2012-09-06 06:41:02 +04:00
|
|
|
OnDataAvailable(nsCString data, uint64_t offset, uint32_t count);
|
2010-08-10 22:47:00 +04:00
|
|
|
OnStopRequest(nsresult statusCode);
|
2012-01-11 11:19:17 +04:00
|
|
|
FailedAsyncOpen(nsresult statusCode);
|
2010-11-24 01:56:06 +03:00
|
|
|
DeleteSelf();
|
2010-08-10 22:47:00 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace net
|
|
|
|
} // namespace mozilla
|
|
|
|
|