Sat, 03 Jan 2015 20:18:00 +0100
Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim:set ts=2 sw=2 sts=2 et cindent: */
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 PROGRESSUI_H__
8 #define PROGRESSUI_H__
10 #include "updatedefines.h"
12 #if defined(XP_WIN)
13 typedef WCHAR NS_tchar;
14 #define NS_main wmain
15 #else
16 typedef char NS_tchar;
17 #define NS_main main
18 #endif
20 // Called to perform any initialization of the widget toolkit
21 int InitProgressUI(int *argc, NS_tchar ***argv);
23 #if defined(XP_WIN)
24 // Called on the main thread at startup
25 int ShowProgressUI(bool indeterminate = false, bool initUIStrings = true);
26 int InitProgressUIStrings();
27 #else
28 // Called on the main thread at startup
29 int ShowProgressUI();
30 #endif
31 // May be called from any thread
32 void QuitProgressUI();
34 // May be called from any thread: progress is a number between 0 and 100
35 void UpdateProgressUI(float progress);
37 #endif // PROGRESSUI_H__