michael@0: /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* vim: set ts=2 et sw=2 tw=80: */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef __SECURITY_SANDBOX_SANDBOXBROKER_H__ michael@0: #define __SECURITY_SANDBOX_SANDBOXBROKER_H__ michael@0: michael@0: #ifdef SANDBOX_EXPORTS michael@0: #define SANDBOX_EXPORT __declspec(dllexport) michael@0: #else michael@0: #define SANDBOX_EXPORT __declspec(dllimport) michael@0: #endif michael@0: michael@0: namespace sandbox { michael@0: class BrokerServices; michael@0: class TargetPolicy; michael@0: } michael@0: michael@0: namespace mozilla { michael@0: michael@0: class SANDBOX_EXPORT SandboxBroker michael@0: { michael@0: public: michael@0: SandboxBroker(); michael@0: bool AllowPipe(const wchar_t *aPath); michael@0: bool LaunchApp(const wchar_t *aPath, const wchar_t *aArguments, michael@0: void **aProcessHandle); michael@0: virtual ~SandboxBroker(); michael@0: michael@0: private: michael@0: static sandbox::BrokerServices *sBrokerService; michael@0: sandbox::TargetPolicy *mPolicy; michael@0: }; michael@0: michael@0: } // mozilla michael@0: michael@0: #endif