2015-05-08 11:37:00 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
2012-05-21 11:12:37 +00:00
|
|
|
* 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-12-22 22:35:31 +00:00
|
|
|
|
|
|
|
#ifndef nsSHEntry_h
|
|
|
|
#define nsSHEntry_h
|
|
|
|
|
2005-08-18 11:15:33 +00:00
|
|
|
// Helper Classes
|
1999-12-22 22:35:31 +00:00
|
|
|
#include "nsCOMPtr.h"
|
2005-08-18 11:16:42 +00:00
|
|
|
#include "nsCOMArray.h"
|
1999-12-22 22:35:31 +00:00
|
|
|
#include "nsString.h"
|
2012-07-11 03:59:52 +00:00
|
|
|
#include "mozilla/Attributes.h"
|
2005-08-18 11:15:33 +00:00
|
|
|
|
|
|
|
// Interfaces needed
|
|
|
|
#include "nsISHEntry.h"
|
2005-08-18 11:15:34 +00:00
|
|
|
#include "nsISHContainer.h"
|
2011-10-21 15:26:34 +00:00
|
|
|
|
|
|
|
class nsSHEntryShared;
|
2013-09-04 15:26:20 +00:00
|
|
|
class nsIInputStream;
|
|
|
|
class nsIURI;
|
1999-12-22 22:35:31 +00:00
|
|
|
|
2015-03-21 16:28:04 +00:00
|
|
|
class nsSHEntry final : public nsISHEntry,
|
2015-03-27 18:52:19 +00:00
|
|
|
public nsISHContainer,
|
|
|
|
public nsISHEntryInternal
|
1999-12-22 22:35:31 +00:00
|
|
|
{
|
2015-05-06 17:57:23 +00:00
|
|
|
public:
|
2005-08-18 11:16:54 +00:00
|
|
|
nsSHEntry();
|
2015-05-06 17:57:23 +00:00
|
|
|
nsSHEntry(const nsSHEntry& aOther);
|
2005-08-18 11:15:33 +00:00
|
|
|
|
2005-08-18 11:16:01 +00:00
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_NSISHENTRY
|
2010-11-23 21:24:57 +00:00
|
|
|
NS_DECL_NSISHENTRYINTERNAL
|
2005-08-18 11:16:01 +00:00
|
|
|
NS_DECL_NSISHCONTAINER
|
2005-08-18 11:17:04 +00:00
|
|
|
|
|
|
|
void DropPresentationState();
|
1999-12-22 22:35:31 +00:00
|
|
|
|
2007-09-21 09:19:59 +00:00
|
|
|
static nsresult Startup();
|
|
|
|
static void Shutdown();
|
2015-05-06 17:57:23 +00:00
|
|
|
|
2005-08-18 11:15:34 +00:00
|
|
|
private:
|
2005-08-18 11:17:00 +00:00
|
|
|
~nsSHEntry();
|
2005-08-18 11:16:54 +00:00
|
|
|
|
2011-10-21 15:26:34 +00:00
|
|
|
// We share the state in here with other SHEntries which correspond to the
|
|
|
|
// same document.
|
2015-10-18 05:24:48 +00:00
|
|
|
RefPtr<nsSHEntryShared> mShared;
|
2011-10-21 15:26:34 +00:00
|
|
|
|
|
|
|
// See nsSHEntry.idl for comments on these members.
|
2015-05-06 17:57:23 +00:00
|
|
|
nsCOMPtr<nsIURI> mURI;
|
2015-09-30 06:54:39 +00:00
|
|
|
nsCOMPtr<nsIURI> mOriginalURI;
|
2016-06-28 08:03:25 +00:00
|
|
|
bool mLoadReplace;
|
2015-05-06 17:57:23 +00:00
|
|
|
nsCOMPtr<nsIURI> mReferrerURI;
|
|
|
|
uint32_t mReferrerPolicy;
|
|
|
|
nsString mTitle;
|
2011-10-21 15:26:34 +00:00
|
|
|
nsCOMPtr<nsIInputStream> mPostData;
|
2015-05-06 17:57:23 +00:00
|
|
|
uint32_t mLoadType;
|
|
|
|
uint32_t mID;
|
|
|
|
int32_t mScrollPositionX;
|
|
|
|
int32_t mScrollPositionY;
|
|
|
|
nsISHEntry* mParent;
|
|
|
|
nsCOMArray<nsISHEntry> mChildren;
|
|
|
|
bool mURIWasModified;
|
2011-04-25 02:30:54 +00:00
|
|
|
nsCOMPtr<nsIStructuredCloneContainer> mStateData;
|
2015-05-06 17:57:23 +00:00
|
|
|
bool mIsSrcdocEntry;
|
2015-12-26 10:59:09 +00:00
|
|
|
bool mScrollRestorationIsManual;
|
2015-05-06 17:57:23 +00:00
|
|
|
nsString mSrcdocData;
|
|
|
|
nsCOMPtr<nsIURI> mBaseURI;
|
2005-08-18 11:15:34 +00:00
|
|
|
};
|
|
|
|
|
1999-12-22 22:35:31 +00:00
|
|
|
#endif /* nsSHEntry_h */
|