uriloader/base/nsURILoader.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 5
michael@0 6 #ifndef nsURILoader_h__
michael@0 7 #define nsURILoader_h__
michael@0 8
michael@0 9 #include "nsCURILoader.h"
michael@0 10 #include "nsISupportsUtils.h"
michael@0 11 #include "nsCOMArray.h"
michael@0 12 #include "nsCOMPtr.h"
michael@0 13 #include "nsIInterfaceRequestor.h"
michael@0 14 #include "nsIInterfaceRequestorUtils.h"
michael@0 15 #include "nsString.h"
michael@0 16 #include "nsIWeakReference.h"
michael@0 17 #include "mozilla/Attributes.h"
michael@0 18
michael@0 19 #ifdef MOZ_LOGGING
michael@0 20 // Uncomment the next line to force logging on in release builds
michael@0 21 // #define FORCE_PR_LOG
michael@0 22 #endif
michael@0 23 #include "prlog.h"
michael@0 24
michael@0 25 class nsDocumentOpenInfo;
michael@0 26
michael@0 27 class nsURILoader MOZ_FINAL : public nsIURILoader
michael@0 28 {
michael@0 29 public:
michael@0 30 NS_DECL_NSIURILOADER
michael@0 31 NS_DECL_ISUPPORTS
michael@0 32
michael@0 33 nsURILoader();
michael@0 34 ~nsURILoader();
michael@0 35
michael@0 36 protected:
michael@0 37 /**
michael@0 38 * Equivalent to nsIURILoader::openChannel, but allows specifying whether the
michael@0 39 * channel is opened already.
michael@0 40 */
michael@0 41 NS_HIDDEN_(nsresult) OpenChannel(nsIChannel* channel,
michael@0 42 uint32_t aFlags,
michael@0 43 nsIInterfaceRequestor* aWindowContext,
michael@0 44 bool aChannelOpen,
michael@0 45 nsIStreamListener** aListener);
michael@0 46
michael@0 47 /**
michael@0 48 * we shouldn't need to have an owning ref count on registered
michael@0 49 * content listeners because they are supposed to unregister themselves
michael@0 50 * when they go away. This array stores weak references
michael@0 51 */
michael@0 52 nsCOMArray<nsIWeakReference> m_listeners;
michael@0 53
michael@0 54 #ifdef PR_LOGGING
michael@0 55 /**
michael@0 56 * NSPR logging. The module is called "URILoader"
michael@0 57 */
michael@0 58 static PRLogModuleInfo* mLog;
michael@0 59 #endif
michael@0 60
michael@0 61 friend class nsDocumentOpenInfo;
michael@0 62 };
michael@0 63
michael@0 64 #endif /* nsURILoader_h__ */

mercurial