2012-05-21 11:12:37 +00:00
|
|
|
/* 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/. */
|
2009-06-29 18:38:29 +00:00
|
|
|
|
|
|
|
#ifndef __IPC_GLUE_SCOPEDXREEMBED_H__
|
|
|
|
#define __IPC_GLUE_SCOPEDXREEMBED_H__
|
|
|
|
|
2012-12-18 16:24:42 +00:00
|
|
|
#include "nsString.h"
|
|
|
|
#include "nsAutoPtr.h"
|
|
|
|
#include "nsIFile.h"
|
|
|
|
|
2009-06-29 18:38:29 +00:00
|
|
|
namespace mozilla {
|
|
|
|
namespace ipc {
|
|
|
|
|
|
|
|
class ScopedXREEmbed
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ScopedXREEmbed();
|
|
|
|
~ScopedXREEmbed();
|
|
|
|
|
|
|
|
void Start();
|
|
|
|
void Stop();
|
2012-12-18 16:24:42 +00:00
|
|
|
void SetAppDir(const nsACString& aPath);
|
2009-06-29 18:38:29 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
bool mShouldKillEmbedding;
|
2012-12-18 16:24:42 +00:00
|
|
|
nsCOMPtr<nsIFile> mAppDir;
|
2009-06-29 18:38:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} /* namespace ipc */
|
|
|
|
} /* namespace mozilla */
|
|
|
|
|
|
|
|
#endif /* __IPC_GLUE_SCOPEDXREEMBED_H__ */
|