2001-04-10 10:01:08 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
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/. */
|
2001-04-10 10:01:08 +04:00
|
|
|
|
2016-05-19 05:02:57 +03:00
|
|
|
#ifndef nsSimpleStreamListener_h__
|
|
|
|
#define nsSimpleStreamListener_h__
|
|
|
|
|
2002-05-03 11:49:43 +04:00
|
|
|
#include "nsISimpleStreamListener.h"
|
2001-01-24 01:10:34 +03:00
|
|
|
#include "nsIOutputStream.h"
|
|
|
|
#include "nsCOMPtr.h"
|
|
|
|
|
2016-05-19 05:02:57 +03:00
|
|
|
namespace mozilla {
|
|
|
|
namespace net {
|
|
|
|
|
2001-01-24 01:10:34 +03:00
|
|
|
class nsSimpleStreamListener : public nsISimpleStreamListener
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
NS_DECL_ISUPPORTS
|
2001-04-10 10:01:08 +04:00
|
|
|
NS_DECL_NSIREQUESTOBSERVER
|
2001-01-24 01:10:34 +03:00
|
|
|
NS_DECL_NSISTREAMLISTENER
|
|
|
|
NS_DECL_NSISIMPLESTREAMLISTENER
|
|
|
|
|
2003-01-09 01:35:09 +03:00
|
|
|
nsSimpleStreamListener() { }
|
2001-01-24 01:10:34 +03:00
|
|
|
|
|
|
|
protected:
|
2014-06-24 20:36:44 +04:00
|
|
|
virtual ~nsSimpleStreamListener() {}
|
|
|
|
|
2001-04-10 10:01:08 +04:00
|
|
|
nsCOMPtr<nsIOutputStream> mSink;
|
|
|
|
nsCOMPtr<nsIRequestObserver> mObserver;
|
2001-01-24 01:10:34 +03:00
|
|
|
};
|
2016-05-19 05:02:57 +03:00
|
|
|
|
|
|
|
} // namespace net
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif
|