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 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #include "mozwrlbase.h"
7 #include "nscore.h"
8 #include "nsString.h"
9 #include "nsIDOMWakeLockListener.h"
11 #include <windows.system.display.h>
13 /*
14 * A wake lock is used by dom to prevent the device from turning off the
15 * screen when the user is viewing certain types of content, like video.
16 */
17 class WakeLockListener :
18 public nsIDOMMozWakeLockListener {
19 public:
20 NS_DECL_ISUPPORTS;
21 NS_DECL_NSIDOMMOZWAKELOCKLISTENER;
23 private:
24 Microsoft::WRL::ComPtr<ABI::Windows::System::Display::IDisplayRequest> mDisplayRequest;
25 };