author Kartikaya Gupta <kgupta@mozilla.com>
Wed, 11 Sep 2013 18:17:20 -0400
changeset 146653 ce483735e803a650b37b8a334271b304bca93c1d
parent 106706 c4f83d9d8243f3f853a5356188164a5fddee2b5a
child 186156 58a202b281976f42fa7dab286fedaa482c3dce56
permissions -rw-r--r--
Bug 912806 - Special-case the resolution behaviour on Fennec to work around other bugs. r=tn

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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/. */

#ifndef nsURILoader_h__
#define nsURILoader_h__

#include "nsCURILoader.h"
#include "nsISupportsUtils.h"
#include "nsCOMArray.h"
#include "nsCOMPtr.h"
#include "nsIInterfaceRequestor.h"
#include "nsIInterfaceRequestorUtils.h"
#include "nsString.h"
#include "nsIWeakReference.h"
#include "mozilla/Attributes.h"

// Uncomment the next line to force logging on in release builds
// #define FORCE_PR_LOG
#include "prlog.h"

class nsDocumentOpenInfo;

class nsURILoader MOZ_FINAL : public nsIURILoader


   * Equivalent to nsIURILoader::openChannel, but allows specifying whether the
   * channel is opened already.
  NS_HIDDEN_(nsresult) OpenChannel(nsIChannel* channel,
                                   uint32_t aFlags,
                                   nsIInterfaceRequestor* aWindowContext,
                                   bool aChannelOpen,
                                   nsIStreamListener** aListener);

   * 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
  nsCOMArray<nsIWeakReference> m_listeners;

   * NSPR logging.  The module is called "URILoader"
  static PRLogModuleInfo* mLog;
  friend class nsDocumentOpenInfo;

#endif /* nsURILoader_h__ */