toolkit/mozapps/update/common/updatehelper.h

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

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 /* 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 BOOL LaunchWinPostProcess(const WCHAR *installationDir,
     6                           const WCHAR *updateInfoDir,
     7                           bool forceSync,
     8                           HANDLE userToken);
     9 BOOL StartServiceUpdate(LPCWSTR installDir);
    10 BOOL GetUpdateDirectoryPath(LPWSTR path);
    11 DWORD LaunchServiceSoftwareUpdateCommand(int argc, LPCWSTR *argv);
    12 BOOL WriteStatusFailure(LPCWSTR updateDirPath, int errorCode);
    13 BOOL WriteStatusPending(LPCWSTR updateDirPath);
    14 DWORD WaitForServiceStop(LPCWSTR serviceName, DWORD maxWaitSeconds);
    15 DWORD WaitForProcessExit(LPCWSTR filename, DWORD maxSeconds);
    16 BOOL DoesFallbackKeyExist();
    17 BOOL IsLocalFile(LPCWSTR file, BOOL &isLocal);
    18 DWORD StartServiceCommand(int argc, LPCWSTR* argv);
    19 BOOL IsUnpromptedElevation(BOOL &isUnpromptedElevation);
    21 #define SVC_NAME L"MozillaMaintenance"
    23 #define BASE_SERVICE_REG_KEY \
    24   L"SOFTWARE\\Mozilla\\MaintenanceService"
    26 // The test only fallback key, as its name implies, is only present on machines
    27 // that will use automated tests.  Since automated tests always run from a
    28 // different directory for each test, the presence of this key bypasses the
    29 // "This is a valid installation directory" check.  This key also stores
    30 // the allowed name and issuer for cert checks so that the cert check
    31 // code can still be run unchanged.
    32 #define TEST_ONLY_FALLBACK_KEY_PATH \
    33   BASE_SERVICE_REG_KEY L"\\3932ecacee736d366d6436db0f55bce4"
    35 #ifdef MOZ_METRO
    36   bool GetDefaultBrowserAppModelID(WCHAR* aIDBuffer, long aCharLength);
    37   HRESULT LaunchDefaultMetroBrowser();
    38 #endif

mercurial