docshell/base/nsDocShellLoadInfo.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/docshell/base/nsDocShellLoadInfo.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,51 @@
     1.4 +/* -*- Mode: C++; tab-width: 3; indent-tabs-mode: nil; c-basic-offset: 2 -*-
     1.5 + *
     1.6 + * This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +#ifndef nsDocShellLoadInfo_h__
    1.11 +#define nsDocShellLoadInfo_h__
    1.12 +
    1.13 +
    1.14 +// Helper Classes
    1.15 +#include "nsCOMPtr.h"
    1.16 +#include "nsString.h"
    1.17 +
    1.18 +// Interfaces Needed
    1.19 +#include "nsIDocShellLoadInfo.h"
    1.20 +
    1.21 +class nsIInputStream;
    1.22 +class nsISHEntry;
    1.23 +class nsIURI;
    1.24 +class nsIDocShell;
    1.25 +
    1.26 +class nsDocShellLoadInfo : public nsIDocShellLoadInfo
    1.27 +{
    1.28 +public:
    1.29 +  nsDocShellLoadInfo();
    1.30 +
    1.31 +  NS_DECL_ISUPPORTS
    1.32 +  NS_DECL_NSIDOCSHELLLOADINFO
    1.33 +
    1.34 +protected:
    1.35 +  virtual ~nsDocShellLoadInfo();
    1.36 +
    1.37 +protected:
    1.38 +  nsCOMPtr<nsIURI>                 mReferrer;
    1.39 +  nsCOMPtr<nsISupports>            mOwner;
    1.40 +  bool                             mInheritOwner;
    1.41 +  bool                             mOwnerIsExplicit;
    1.42 +  bool                             mSendReferrer;
    1.43 +  nsDocShellInfoLoadType           mLoadType;
    1.44 +  nsCOMPtr<nsISHEntry>             mSHEntry;
    1.45 +  nsString                         mTarget;
    1.46 +  nsCOMPtr<nsIInputStream>         mPostDataStream;
    1.47 +  nsCOMPtr<nsIInputStream>         mHeadersStream;
    1.48 +  bool                             mIsSrcdocLoad;
    1.49 +  nsString                         mSrcdocData;
    1.50 +  nsCOMPtr<nsIDocShell>            mSourceDocShell;
    1.51 +  nsCOMPtr<nsIURI>                 mBaseURI;
    1.52 +};
    1.53 +
    1.54 +#endif /* nsDocShellLoadInfo_h__ */

mercurial