2016-05-28 00:54:31 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2012-05-21 15:12:37 +04: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 22:38:29 +04:00
|
|
|
|
|
|
|
#ifndef __IPC_GLUE_SCOPEDXREEMBED_H__
|
|
|
|
#define __IPC_GLUE_SCOPEDXREEMBED_H__
|
|
|
|
|
2016-06-07 23:10:18 +03:00
|
|
|
#include "nsCOMPtr.h"
|
2012-12-18 20:24:42 +04:00
|
|
|
#include "nsString.h"
|
|
|
|
#include "nsIFile.h"
|
|
|
|
|
2009-06-29 22:38:29 +04:00
|
|
|
namespace mozilla {
|
|
|
|
namespace ipc {
|
|
|
|
|
|
|
|
class ScopedXREEmbed
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ScopedXREEmbed();
|
|
|
|
~ScopedXREEmbed();
|
|
|
|
|
|
|
|
void Start();
|
|
|
|
void Stop();
|
2012-12-18 20:24:42 +04:00
|
|
|
void SetAppDir(const nsACString& aPath);
|
2009-06-29 22:38:29 +04:00
|
|
|
|
|
|
|
private:
|
|
|
|
bool mShouldKillEmbedding;
|
2012-12-18 20:24:42 +04:00
|
|
|
nsCOMPtr<nsIFile> mAppDir;
|
2009-06-29 22:38:29 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
} /* namespace ipc */
|
|
|
|
} /* namespace mozilla */
|
|
|
|
|
2016-06-07 23:10:18 +03:00
|
|
|
#endif /* __IPC_GLUE_SCOPEDXREEMBED_H__ */
|