1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/docshell/shistory/src/nsSHEntry.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,68 @@ 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 nsSHEntry_h 1.11 +#define nsSHEntry_h 1.12 + 1.13 +// Helper Classes 1.14 +#include "nsCOMPtr.h" 1.15 +#include "nsAutoPtr.h" 1.16 +#include "nsCOMArray.h" 1.17 +#include "nsString.h" 1.18 +#include "mozilla/Attributes.h" 1.19 + 1.20 +// Interfaces needed 1.21 +#include "nsISHEntry.h" 1.22 +#include "nsISHContainer.h" 1.23 + 1.24 +class nsSHEntryShared; 1.25 +class nsIInputStream; 1.26 +class nsIURI; 1.27 + 1.28 +class nsSHEntry MOZ_FINAL : public nsISHEntry, 1.29 + public nsISHContainer, 1.30 + public nsISHEntryInternal 1.31 +{ 1.32 +public: 1.33 + nsSHEntry(); 1.34 + nsSHEntry(const nsSHEntry &other); 1.35 + 1.36 + NS_DECL_ISUPPORTS 1.37 + NS_DECL_NSISHENTRY 1.38 + NS_DECL_NSISHENTRYINTERNAL 1.39 + NS_DECL_NSISHCONTAINER 1.40 + 1.41 + void DropPresentationState(); 1.42 + 1.43 + static nsresult Startup(); 1.44 + static void Shutdown(); 1.45 + 1.46 +private: 1.47 + ~nsSHEntry(); 1.48 + 1.49 + // We share the state in here with other SHEntries which correspond to the 1.50 + // same document. 1.51 + nsRefPtr<nsSHEntryShared> mShared; 1.52 + 1.53 + // See nsSHEntry.idl for comments on these members. 1.54 + nsCOMPtr<nsIURI> mURI; 1.55 + nsCOMPtr<nsIURI> mReferrerURI; 1.56 + nsString mTitle; 1.57 + nsCOMPtr<nsIInputStream> mPostData; 1.58 + uint32_t mLoadType; 1.59 + uint32_t mID; 1.60 + int32_t mScrollPositionX; 1.61 + int32_t mScrollPositionY; 1.62 + nsISHEntry* mParent; 1.63 + nsCOMArray<nsISHEntry> mChildren; 1.64 + bool mURIWasModified; 1.65 + nsCOMPtr<nsIStructuredCloneContainer> mStateData; 1.66 + bool mIsSrcdocEntry; 1.67 + nsString mSrcdocData; 1.68 + nsCOMPtr<nsIURI> mBaseURI; 1.69 +}; 1.70 + 1.71 +#endif /* nsSHEntry_h */