Tue, 06 Jan 2015 21:39:09 +0100
Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 *
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/. */
7 #ifndef nsSHTransaction_h
8 #define nsSHTransaction_h
10 // Helper Classes
11 #include "nsCOMPtr.h"
13 // Needed interfaces
14 #include "nsISHTransaction.h"
16 class nsISHEntry;
18 class nsSHTransaction: public nsISHTransaction
19 {
20 public:
21 NS_DECL_ISUPPORTS
22 NS_DECL_NSISHTRANSACTION
24 nsSHTransaction();
26 protected:
27 virtual ~nsSHTransaction();
30 protected:
31 bool mPersist;
33 nsISHTransaction * mPrev; // Weak Reference
34 nsCOMPtr<nsISHTransaction> mNext;
35 nsCOMPtr<nsISHEntry> mSHEntry;
36 };
39 #endif /* nsSHTransaction_h */