Thu, 15 Jan 2015 15:59:08 +0100
Implement a real Private Browsing Mode condition by changing the API/ABI;
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: 2; 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/. */
6 #ifndef _NSPKIPARAMBLOCK_
7 #define _NSPKIPARAMBLOCK_
8 #include "nsCOMPtr.h"
9 #include "nsIPKIParamBlock.h"
10 #include "nsIDialogParamBlock.h"
11 #include "nsISupportsArray.h"
13 #define NS_PKIPARAMBLOCK_CID \
14 { 0x0bec75a8, 0x1dd2, 0x11b2, \
15 { 0x86, 0x3a, 0xf6, 0x9f, 0x77, 0xc3, 0x13, 0x71 }}
17 #define NS_PKIPARAMBLOCK_CONTRACTID "@mozilla.org/security/pkiparamblock;1"
19 class nsPKIParamBlock : public nsIPKIParamBlock,
20 public nsIDialogParamBlock
21 {
22 public:
24 nsPKIParamBlock();
25 virtual ~nsPKIParamBlock();
26 nsresult Init();
28 NS_DECL_NSIPKIPARAMBLOCK
29 NS_DECL_NSIDIALOGPARAMBLOCK
30 NS_DECL_THREADSAFE_ISUPPORTS
31 private:
32 nsCOMPtr<nsIDialogParamBlock> mDialogParamBlock;
33 nsCOMPtr<nsISupportsArray> mSupports;
34 };
36 #endif //_NSPKIPARAMBLOCK_