ipc/glue/ScopedXREEmbed.h
author Peter Van der Beken <peterv@propagandism.org>
Sat, 15 Feb 2014 22:12:34 +0100
changeset 181842 53b25b8cafe9b6ecc666dbeb0b93f976922bb39d
parent 116783 3ec0a08450d8df0bee40bba7ed7b1301156696fc
permissions -rw-r--r--
Make Xrays work correctly with WebIDL global objects.

/* 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/. */

#ifndef __IPC_GLUE_SCOPEDXREEMBED_H__
#define __IPC_GLUE_SCOPEDXREEMBED_H__

#include "nsString.h"
#include "nsAutoPtr.h"
#include "nsIFile.h"

namespace mozilla {
namespace ipc {

class ScopedXREEmbed
{
public:
  ScopedXREEmbed();
  ~ScopedXREEmbed();

  void Start();
  void Stop();
  void SetAppDir(const nsACString& aPath);

private:
  bool mShouldKillEmbedding;
  nsCOMPtr<nsIFile> mAppDir;
};

} /* namespace ipc */
} /* namespace mozilla */

#endif /* __IPC_GLUE_SCOPEDXREEMBED_H__ */