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 /* vim: se cin sw=2 ts=2 et : */
2 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
3 *
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
8 #ifndef __WinTaskbar_h__
9 #define __WinTaskbar_h__
11 #include <windows.h>
12 #include <shobjidl.h>
13 #undef LogSeverity // SetupAPI.h #defines this as DWORD
14 #include "nsIWinTaskbar.h"
15 #include "mozilla/Attributes.h"
17 namespace mozilla {
18 namespace widget {
20 class WinTaskbar MOZ_FINAL : public nsIWinTaskbar
21 {
22 public:
23 WinTaskbar();
24 ~WinTaskbar();
26 NS_DECL_THREADSAFE_ISUPPORTS
27 NS_DECL_NSIWINTASKBAR
29 // Registers the global app user model id for the instance.
30 // See comments in WinTaskbar.cpp for more information.
31 static bool RegisterAppUserModelID();
32 static bool GetAppUserModelID(nsAString & aDefaultGroupId);
34 private:
35 bool Initialize();
37 typedef HRESULT (WINAPI * SetCurrentProcessExplicitAppUserModelIDPtr)(PCWSTR AppID);
38 ITaskbarList4 *mTaskbar;
39 };
41 } // namespace widget
42 } // namespace mozilla
44 #endif /* __WinTaskbar_h__ */