2001-09-29 00:14:13 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
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/. */
|
1999-10-30 01:46:18 +04:00
|
|
|
|
1999-11-02 22:36:43 +03:00
|
|
|
#ifndef nsURILoader_h__
|
|
|
|
#define nsURILoader_h__
|
1999-10-30 01:46:18 +04:00
|
|
|
|
1999-11-02 22:36:43 +03:00
|
|
|
#include "nsCURILoader.h"
|
1999-11-05 09:01:05 +03:00
|
|
|
#include "nsISupportsUtils.h"
|
2002-12-11 03:15:19 +03:00
|
|
|
#include "nsCOMArray.h"
|
1999-10-30 01:46:18 +04:00
|
|
|
#include "nsCOMPtr.h"
|
2000-05-07 06:01:10 +04:00
|
|
|
#include "nsIInterfaceRequestor.h"
|
2001-09-06 01:28:38 +04:00
|
|
|
#include "nsIInterfaceRequestorUtils.h"
|
2000-10-19 14:25:49 +04:00
|
|
|
#include "nsString.h"
|
2002-12-11 03:15:19 +03:00
|
|
|
#include "nsIWeakReference.h"
|
2012-06-13 07:53:09 +04:00
|
|
|
#include "mozilla/Attributes.h"
|
1999-10-30 01:46:18 +04:00
|
|
|
|
2003-10-30 05:03:41 +03:00
|
|
|
#ifdef MOZ_LOGGING
|
|
|
|
// Uncomment the next line to force logging on in release builds
|
|
|
|
// #define FORCE_PR_LOG
|
|
|
|
#endif
|
|
|
|
#include "prlog.h"
|
|
|
|
|
2003-10-09 08:00:01 +04:00
|
|
|
class nsDocumentOpenInfo;
|
|
|
|
|
2012-06-13 07:53:09 +04:00
|
|
|
class nsURILoader MOZ_FINAL : public nsIURILoader
|
1999-10-30 01:46:18 +04:00
|
|
|
{
|
|
|
|
public:
|
1999-11-02 22:36:43 +03:00
|
|
|
NS_DECL_NSIURILOADER
|
1999-10-30 01:46:18 +04:00
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
|
1999-11-02 22:36:43 +03:00
|
|
|
nsURILoader();
|
2004-04-17 01:06:07 +04:00
|
|
|
~nsURILoader();
|
1999-10-30 01:46:18 +04:00
|
|
|
|
|
|
|
protected:
|
2006-01-28 17:06:31 +03:00
|
|
|
/**
|
|
|
|
* Equivalent to nsIURILoader::openChannel, but allows specifying whether the
|
|
|
|
* channel is opened already.
|
|
|
|
*/
|
|
|
|
NS_HIDDEN_(nsresult) OpenChannel(nsIChannel* channel,
|
2012-08-22 19:56:38 +04:00
|
|
|
uint32_t aFlags,
|
2006-01-28 17:06:31 +03:00
|
|
|
nsIInterfaceRequestor* aWindowContext,
|
2011-09-29 10:19:26 +04:00
|
|
|
bool aChannelOpen,
|
2006-01-28 17:06:31 +03:00
|
|
|
nsIStreamListener** aListener);
|
|
|
|
|
2004-04-17 01:06:07 +04: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 03:15:19 +03:00
|
|
|
nsCOMArray<nsIWeakReference> m_listeners;
|
1999-10-30 01:46:18 +04:00
|
|
|
|
2003-10-30 05:03:41 +03:00
|
|
|
#ifdef PR_LOGGING
|
|
|
|
/**
|
|
|
|
* NSPR logging. The module is called "URILoader"
|
|
|
|
*/
|
|
|
|
static PRLogModuleInfo* mLog;
|
|
|
|
#endif
|
|
|
|
|
2003-10-09 08:00:01 +04:00
|
|
|
friend class nsDocumentOpenInfo;
|
1999-10-30 01:46:18 +04:00
|
|
|
};
|
|
|
|
|
1999-11-02 22:36:43 +03:00
|
|
|
#endif /* nsURILoader_h__ */
|