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 __IPC_GLUE_SCOPEDXREEMBED_H__ michael@0: #define __IPC_GLUE_SCOPEDXREEMBED_H__ michael@0: michael@0: #include "nsString.h" michael@0: #include "nsAutoPtr.h" michael@0: #include "nsIFile.h" michael@0: michael@0: namespace mozilla { michael@0: namespace ipc { michael@0: michael@0: class ScopedXREEmbed michael@0: { michael@0: public: michael@0: ScopedXREEmbed(); michael@0: ~ScopedXREEmbed(); michael@0: michael@0: void Start(); michael@0: void Stop(); michael@0: void SetAppDir(const nsACString& aPath); michael@0: michael@0: private: michael@0: bool mShouldKillEmbedding; michael@0: nsCOMPtr mAppDir; michael@0: }; michael@0: michael@0: } /* namespace ipc */ michael@0: } /* namespace mozilla */ michael@0: michael@0: #endif /* __IPC_GLUE_SCOPEDXREEMBED_H__ */