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/. */
7 #ifndef nsNSSDialogHelper_h
8 #define nsNSSDialogHelper_h
10 #include "nsIDOMWindow.h"
12 /**
13 * Common class that uses the window watcher service to open a
14 * standard dialog, with or without a parent context. The params
15 * parameter can be an nsISupportsArray so any number of additional
16 * arguments can be used.
17 */
18 class nsNSSDialogHelper
19 {
20 public:
21 //The params is going to be either a nsIPKIParamBlock or
22 //nsIDialogParamBlock
23 static nsresult openDialog(
24 nsIDOMWindow *window,
25 const char *url,
26 nsISupports *params,
27 bool modal = true);
28 };
30 #endif