1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
10 #include "nsCOMArray.h"
12 #include "nsISHEntry.h"
14 #include "nsWeakReference.h"
15 #include "mozilla/Attributes.h"
17 class nsSHEntryShared
;
20 class nsIReferrerInfo
;
22 class nsSHEntry
: public nsISHEntry
, public nsSupportsWeakReference
{
29 virtual void EvictDocumentViewer();
31 static nsresult
Startup();
32 static void Shutdown();
34 nsSHEntryShared
* GetState() { return mShared
; }
37 explicit nsSHEntry(const nsSHEntry
& aOther
);
40 // We share the state in here with other SHEntries which correspond to the
42 RefPtr
<nsSHEntryShared
> mShared
;
44 // See nsSHEntry.idl for comments on these members.
45 nsCOMPtr
<nsIURI
> mURI
;
46 nsCOMPtr
<nsIURI
> mOriginalURI
;
47 nsCOMPtr
<nsIURI
> mResultPrincipalURI
;
48 nsCOMPtr
<nsIURI
> mUnstrippedURI
;
49 nsCOMPtr
<nsIReferrerInfo
> mReferrerInfo
;
52 nsCOMPtr
<nsIInputStream
> mPostData
;
55 int32_t mScrollPositionX
;
56 int32_t mScrollPositionY
;
58 nsCOMArray
<nsISHEntry
> mChildren
;
59 nsCOMPtr
<nsIStructuredCloneContainer
> mStateData
;
61 nsCOMPtr
<nsIURI
> mBaseURI
;
65 bool mScrollRestorationIsManual
;
66 bool mLoadedInThisProcess
;
68 bool mHasUserInteraction
;
69 bool mHasUserActivation
;
72 #endif /* nsSHEntry_h */