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: 4 -*-
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 #include "nsPrintSettingsQt.h"
8 #include "nsPrintDialogQt.h"
10 // For Qt, we only support printing to PDF, and that doesn't need a
11 // print dialog at this point. So, this class's methods are left
12 // un-implemented for now.
14 NS_IMPL_ISUPPORTS(nsPrintDialogServiceQt, nsIPrintDialogService)
16 nsPrintDialogServiceQt::nsPrintDialogServiceQt()
17 {
18 }
20 nsPrintDialogServiceQt::~nsPrintDialogServiceQt()
21 {
22 }
24 NS_IMETHODIMP
25 nsPrintDialogServiceQt::Init()
26 {
27 return NS_ERROR_NOT_IMPLEMENTED;
28 }
30 NS_IMETHODIMP
31 nsPrintDialogServiceQt::Show(nsIDOMWindow* aParent,
32 nsIPrintSettings* aSettings,
33 nsIWebBrowserPrint* aWebBrowserPrint)
34 {
35 return NS_ERROR_NOT_IMPLEMENTED;
36 }
38 NS_IMETHODIMP
39 nsPrintDialogServiceQt::ShowPageSetup(nsIDOMWindow* aParent,
40 nsIPrintSettings* aNSSettings)
41 {
42 return NS_ERROR_NOT_IMPLEMENTED;
43 }