2001-09-28 20:14:13 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 11:12:37 +00: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/. */
|
1999-10-29 21:46:18 +00:00
|
|
|
|
1999-11-02 19:36:43 +00:00
|
|
|
#ifndef nsURILoader_h__
|
|
|
|
#define nsURILoader_h__
|
1999-10-29 21:46:18 +00:00
|
|
|
|
1999-11-02 19:36:43 +00:00
|
|
|
#include "nsCURILoader.h"
|
1999-11-05 06:01:05 +00:00
|
|
|
#include "nsISupportsUtils.h"
|
2002-12-11 00:15:19 +00:00
|
|
|
#include "nsCOMArray.h"
|
1999-10-29 21:46:18 +00:00
|
|
|
#include "nsCOMPtr.h"
|
2000-05-07 02:01:10 +00:00
|
|
|
#include "nsIInterfaceRequestor.h"
|
2001-09-05 21:28:38 +00:00
|
|
|
#include "nsIInterfaceRequestorUtils.h"
|
2000-10-19 10:25:49 +00:00
|
|
|
#include "nsString.h"
|
2002-12-11 00:15:19 +00:00
|
|
|
#include "nsIWeakReference.h"
|
2012-06-13 03:53:09 +00:00
|
|
|
#include "mozilla/Attributes.h"
|
1999-10-29 21:46:18 +00:00
|
|
|
|
2003-10-30 02:03:41 +00:00
|
|
|
#include "prlog.h"
|
|
|
|
|
2003-10-09 04:00:01 +00:00
|
|
|
class nsDocumentOpenInfo;
|
|
|
|
|
2012-06-13 03:53:09 +00:00
|
|
|
class nsURILoader MOZ_FINAL : public nsIURILoader
|
1999-10-29 21:46:18 +00:00
|
|
|
{
|
|
|
|
public:
|
1999-11-02 19:36:43 +00:00
|
|
|
NS_DECL_NSIURILOADER
|
1999-10-29 21:46:18 +00:00
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
|
1999-11-02 19:36:43 +00:00
|
|
|
nsURILoader();
|
1999-10-29 21:46:18 +00:00
|
|
|
|
|
|
|
protected:
|
2014-06-23 18:49:09 +00:00
|
|
|
~nsURILoader();
|
|
|
|
|
2006-01-28 14:06:31 +00:00
|
|
|
/**
|
|
|
|
* Equivalent to nsIURILoader::openChannel, but allows specifying whether the
|
|
|
|
* channel is opened already.
|
|
|
|
*/
|
2014-06-02 12:08:21 +00:00
|
|
|
nsresult OpenChannel(nsIChannel* channel,
|
2012-08-22 15:56:38 +00:00
|
|
|
uint32_t aFlags,
|
2006-01-28 14:06:31 +00:00
|
|
|
nsIInterfaceRequestor* aWindowContext,
|
2011-09-29 06:19:26 +00:00
|
|
|
bool aChannelOpen,
|
2006-01-28 14:06:31 +00:00
|
|
|
nsIStreamListener** aListener);
|
|
|
|
|
2004-04-16 21:06:07 +00:00
|
|
|
/**
|
|
|
|
* we shouldn't need to have an owning ref count on registered
|
|
|
|
* content listeners because they are supposed to unregister themselves
|
|
|
|
* when they go away. This array stores weak references
|
|
|
|
*/
|
2002-12-11 00:15:19 +00:00
|
|
|
nsCOMArray<nsIWeakReference> m_listeners;
|
1999-10-29 21:46:18 +00:00
|
|
|
|
2003-10-30 02:03:41 +00:00
|
|
|
#ifdef PR_LOGGING
|
|
|
|
/**
|
|
|
|
* NSPR logging. The module is called "URILoader"
|
|
|
|
*/
|
|
|
|
static PRLogModuleInfo* mLog;
|
|
|
|
#endif
|
|
|
|
|
2003-10-09 04:00:01 +00:00
|
|
|
friend class nsDocumentOpenInfo;
|
1999-10-29 21:46:18 +00:00
|
|
|
};
|
|
|
|
|
1999-11-02 19:36:43 +00:00
|
|
|
#endif /* nsURILoader_h__ */
|