xpcom/build/XREChildData.h
author Emilio Cobos Álvarez <emilio@crisal.io>
Sat, 07 Dec 2019 00:07:58 +0000
changeset 505931 8d30b15ca8f932b30ffdf55910fe6e9e2036ca73
parent 463794 64abd0254f73af2d4580b5ec7188f513a3fc785a
permissions -rw-r--r--
Bug 1486964 - Disable -moz-touch-enabled in all channels. r=hiro We've had it disabled on Nightly with no fallout for a while, and having it enabled breaks websites with touch screens as described in this bug and related ones. Given the above, let's disable it in all channels, and we'll remove the code in the next cycle. Differential Revision: https://phabricator.services.mozilla.com/D56264

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef XREChildData_h
#define XREChildData_h

#include "mozilla/UniquePtr.h"

#if defined(XP_WIN) && defined(MOZ_SANDBOX)
#  include "mozilla/sandboxing/loggingTypes.h"

namespace sandbox {
class TargetServices;
}
#endif

/**
 * Data needed to start a child process.
 */
struct XREChildData {
#if defined(XP_WIN) && defined(MOZ_SANDBOX)
  /**
   * Chromium sandbox TargetServices.
   */
  sandbox::TargetServices* sandboxTargetServices = nullptr;

  /**
   * Function to provide a logging function to the chromium sandbox code.
   */
  mozilla::sandboxing::ProvideLogFunctionCb ProvideLogFunction = nullptr;

  /**
   * Chromium sandbox broker services; needed by the remote sandbox
   * launcher process.
   */
  sandbox::BrokerServices* sandboxBrokerServices = nullptr;
#endif
};

#endif  // XREChildData_h