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 // OpenCallbackGUI.h
3 #ifndef __OPEN_CALLBACK_GUI_H
4 #define __OPEN_CALLBACK_GUI_H
6 #include "../Common/ArchiveOpenCallback.h"
8 class COpenCallbackGUI: public IOpenCallbackUI
9 {
10 public:
11 HRESULT CheckBreak();
12 HRESULT SetTotal(const UInt64 *files, const UInt64 *bytes);
13 HRESULT SetCompleted(const UInt64 *files, const UInt64 *bytes);
14 #ifndef _NO_CRYPTO
15 HRESULT CryptoGetTextPassword(BSTR *password);
16 HRESULT GetPasswordIfAny(UString &password);
17 bool PasswordIsDefined;
18 UString Password;
19 #endif
21 HWND ParentWindow;
23 COpenCallbackGUI():
24 #ifndef _NO_CRYPTO
25 PasswordIsDefined(false),
26 #endif
27 ParentWindow(0) {}
28 };
30 #endif