docshell/shistory/src/nsSHEntry.h

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

michael@0 1 /* -*- Mode: C++; tab-width: 3; indent-tabs-mode: nil; c-basic-offset: 2 -*-
michael@0 2 *
michael@0 3 * This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 6
michael@0 7 #ifndef nsSHEntry_h
michael@0 8 #define nsSHEntry_h
michael@0 9
michael@0 10 // Helper Classes
michael@0 11 #include "nsCOMPtr.h"
michael@0 12 #include "nsAutoPtr.h"
michael@0 13 #include "nsCOMArray.h"
michael@0 14 #include "nsString.h"
michael@0 15 #include "mozilla/Attributes.h"
michael@0 16
michael@0 17 // Interfaces needed
michael@0 18 #include "nsISHEntry.h"
michael@0 19 #include "nsISHContainer.h"
michael@0 20
michael@0 21 class nsSHEntryShared;
michael@0 22 class nsIInputStream;
michael@0 23 class nsIURI;
michael@0 24
michael@0 25 class nsSHEntry MOZ_FINAL : public nsISHEntry,
michael@0 26 public nsISHContainer,
michael@0 27 public nsISHEntryInternal
michael@0 28 {
michael@0 29 public:
michael@0 30 nsSHEntry();
michael@0 31 nsSHEntry(const nsSHEntry &other);
michael@0 32
michael@0 33 NS_DECL_ISUPPORTS
michael@0 34 NS_DECL_NSISHENTRY
michael@0 35 NS_DECL_NSISHENTRYINTERNAL
michael@0 36 NS_DECL_NSISHCONTAINER
michael@0 37
michael@0 38 void DropPresentationState();
michael@0 39
michael@0 40 static nsresult Startup();
michael@0 41 static void Shutdown();
michael@0 42
michael@0 43 private:
michael@0 44 ~nsSHEntry();
michael@0 45
michael@0 46 // We share the state in here with other SHEntries which correspond to the
michael@0 47 // same document.
michael@0 48 nsRefPtr<nsSHEntryShared> mShared;
michael@0 49
michael@0 50 // See nsSHEntry.idl for comments on these members.
michael@0 51 nsCOMPtr<nsIURI> mURI;
michael@0 52 nsCOMPtr<nsIURI> mReferrerURI;
michael@0 53 nsString mTitle;
michael@0 54 nsCOMPtr<nsIInputStream> mPostData;
michael@0 55 uint32_t mLoadType;
michael@0 56 uint32_t mID;
michael@0 57 int32_t mScrollPositionX;
michael@0 58 int32_t mScrollPositionY;
michael@0 59 nsISHEntry* mParent;
michael@0 60 nsCOMArray<nsISHEntry> mChildren;
michael@0 61 bool mURIWasModified;
michael@0 62 nsCOMPtr<nsIStructuredCloneContainer> mStateData;
michael@0 63 bool mIsSrcdocEntry;
michael@0 64 nsString mSrcdocData;
michael@0 65 nsCOMPtr<nsIURI> mBaseURI;
michael@0 66 };
michael@0 67
michael@0 68 #endif /* nsSHEntry_h */

mercurial