2016-05-27 21:54:31 +00: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 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__
|
|
|
|
|
2016-06-07 20:10:18 +00:00
|
|
|
#include "nsCOMPtr.h"
|
2012-12-18 16:24:42 +00:00
|
|
|
#include "nsString.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 */
|
|
|
|
|
2016-06-07 20:10:18 +00:00
|
|
|
#endif /* __IPC_GLUE_SCOPEDXREEMBED_H__ */
|