2009-08-18 12:05:15 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
|
|
|
* vim: set sw=4 ts=8 et tw=80 :
|
2012-05-21 04:12:37 -07: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-30 13:39:22 -07:00
|
|
|
|
2010-07-19 11:33:33 -07:00
|
|
|
#ifndef dom_tabs_ContentThread_h
|
|
|
|
#define dom_tabs_ContentThread_h 1
|
2009-06-30 13:39:22 -07:00
|
|
|
|
2010-05-13 16:44:53 -07:00
|
|
|
#include "mozilla/ipc/ProcessChild.h"
|
2010-01-31 19:19:21 -08:00
|
|
|
#include "mozilla/ipc/ScopedXREEmbed.h"
|
2010-07-19 11:33:33 -07:00
|
|
|
#include "ContentChild.h"
|
2009-06-30 13:39:22 -07:00
|
|
|
|
|
|
|
namespace mozilla {
|
2009-08-12 09:18:08 -07:00
|
|
|
namespace dom {
|
2009-06-30 13:39:22 -07:00
|
|
|
|
2009-08-12 09:18:08 -07:00
|
|
|
/**
|
2010-07-19 11:33:33 -07:00
|
|
|
* ContentProcess is a singleton on the content process which represents
|
2010-05-13 16:44:53 -07:00
|
|
|
* the main thread where tab instances live.
|
2009-08-12 09:18:08 -07:00
|
|
|
*/
|
2010-07-19 11:33:33 -07:00
|
|
|
class ContentProcess : public mozilla::ipc::ProcessChild
|
2009-08-12 09:18:08 -07:00
|
|
|
{
|
2010-05-13 16:44:53 -07:00
|
|
|
typedef mozilla::ipc::ProcessChild ProcessChild;
|
|
|
|
|
2009-06-30 13:39:22 -07:00
|
|
|
public:
|
2014-09-01 17:49:25 -07:00
|
|
|
explicit ContentProcess(ProcessHandle mParentHandle)
|
2010-05-13 16:44:53 -07:00
|
|
|
: ProcessChild(mParentHandle)
|
|
|
|
{ }
|
2009-06-30 13:39:22 -07:00
|
|
|
|
2010-07-19 11:33:33 -07:00
|
|
|
~ContentProcess()
|
2010-05-13 16:44:53 -07:00
|
|
|
{ }
|
|
|
|
|
2012-07-06 11:15:45 -07:00
|
|
|
virtual bool Init() MOZ_OVERRIDE;
|
|
|
|
virtual void CleanUp() MOZ_OVERRIDE;
|
2009-06-30 13:39:22 -07:00
|
|
|
|
2012-12-18 08:24:42 -08:00
|
|
|
void SetAppDir(const nsACString& aPath);
|
|
|
|
|
2010-05-13 16:44:53 -07:00
|
|
|
private:
|
2010-07-19 11:33:33 -07:00
|
|
|
ContentChild mContent;
|
2010-01-31 19:19:21 -08:00
|
|
|
mozilla::ipc::ScopedXREEmbed mXREEmbed;
|
2009-06-30 13:39:22 -07:00
|
|
|
|
2010-07-19 11:33:33 -07:00
|
|
|
DISALLOW_EVIL_CONSTRUCTORS(ContentProcess);
|
2009-06-30 13:39:22 -07:00
|
|
|
};
|
|
|
|
|
2009-08-12 09:18:08 -07:00
|
|
|
} // namespace dom
|
2009-06-30 13:39:22 -07:00
|
|
|
} // namespace mozilla
|
|
|
|
|
2010-07-19 11:33:33 -07:00
|
|
|
#endif // ifndef dom_tabs_ContentThread_h
|