security/sandbox/win/src/sandboxbroker/sandboxBroker.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/sandbox/win/src/sandboxbroker/sandboxBroker.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,39 @@
     1.4 +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* vim: set ts=2 et sw=2 tw=80: */
     1.6 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +#ifndef __SECURITY_SANDBOX_SANDBOXBROKER_H__
    1.11 +#define __SECURITY_SANDBOX_SANDBOXBROKER_H__
    1.12 +
    1.13 +#ifdef SANDBOX_EXPORTS
    1.14 +#define SANDBOX_EXPORT __declspec(dllexport)
    1.15 +#else
    1.16 +#define SANDBOX_EXPORT __declspec(dllimport)
    1.17 +#endif
    1.18 +
    1.19 +namespace sandbox {
    1.20 +  class BrokerServices;
    1.21 +  class TargetPolicy;
    1.22 +}
    1.23 +
    1.24 +namespace mozilla {
    1.25 +
    1.26 +class SANDBOX_EXPORT SandboxBroker
    1.27 +{
    1.28 +public:
    1.29 +  SandboxBroker();
    1.30 +  bool AllowPipe(const wchar_t *aPath);
    1.31 +  bool LaunchApp(const wchar_t *aPath, const wchar_t *aArguments,
    1.32 +                 void **aProcessHandle);
    1.33 +  virtual ~SandboxBroker();
    1.34 +
    1.35 +private:
    1.36 +  static sandbox::BrokerServices *sBrokerService;
    1.37 +  sandbox::TargetPolicy *mPolicy;
    1.38 +};
    1.39 +
    1.40 +} // mozilla
    1.41 +
    1.42 +#endif

mercurial