author Carsten "Tomcat" Book <>
Mon, 01 Aug 2016 09:12:38 +0200
changeset 307506 3d54c9412b984e4b4f1aaf4d0a204b2b8c978947
parent 302728 d87b76177b2f5cf0839d73becebb614ab8a9ef7f
child 356451 d2fbb471ba83f0f92d0d06e62311c0ff530794e6
permissions -rw-r--r--
Backed out changeset 07e0af7fc5d9 (bug 1289638)

/* -*- 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
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at */

#ifndef nsSHEntry_h
#define nsSHEntry_h

// Helper Classes
#include "nsCOMPtr.h"
#include "nsCOMArray.h"
#include "nsString.h"
#include "mozilla/Attributes.h"

// Interfaces needed
#include "nsISHEntry.h"
#include "nsISHContainer.h"

class nsSHEntryShared;
class nsIInputStream;
class nsIURI;

class nsSHEntry final : public nsISHEntry,
                        public nsISHContainer,
                        public nsISHEntryInternal
  nsSHEntry(const nsSHEntry& aOther);


  void DropPresentationState();

  static nsresult Startup();
  static void Shutdown();


  // We share the state in here with other SHEntries which correspond to the
  // same document.
  RefPtr<nsSHEntryShared> mShared;

  // See nsSHEntry.idl for comments on these members.
  nsCOMPtr<nsIURI> mURI;
  nsCOMPtr<nsIURI> mOriginalURI;
  bool mLoadReplace;
  nsCOMPtr<nsIURI> mReferrerURI;
  uint32_t mReferrerPolicy;
  nsString mTitle;
  nsCOMPtr<nsIInputStream> mPostData;
  uint32_t mLoadType;
  uint32_t mID;
  int32_t mScrollPositionX;
  int32_t mScrollPositionY;
  nsISHEntry* mParent;
  nsCOMArray<nsISHEntry> mChildren;
  bool mURIWasModified;
  nsCOMPtr<nsIStructuredCloneContainer> mStateData;
  bool mIsSrcdocEntry;
  bool mScrollRestorationIsManual;
  nsString mSrcdocData;
  nsCOMPtr<nsIURI> mBaseURI;

#endif /* nsSHEntry_h */