michael@0: /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- michael@0: * vim: set sw=4 ts=8 et tw=80 : michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef dom_tabs_ContentThread_h michael@0: #define dom_tabs_ContentThread_h 1 michael@0: michael@0: #include "mozilla/ipc/ProcessChild.h" michael@0: #include "mozilla/ipc/ScopedXREEmbed.h" michael@0: #include "ContentChild.h" michael@0: michael@0: #undef _MOZ_LOG michael@0: #define _MOZ_LOG(s) printf("[ContentProcess] %s", s) michael@0: michael@0: namespace mozilla { michael@0: namespace dom { michael@0: michael@0: /** michael@0: * ContentProcess is a singleton on the content process which represents michael@0: * the main thread where tab instances live. michael@0: */ michael@0: class ContentProcess : public mozilla::ipc::ProcessChild michael@0: { michael@0: typedef mozilla::ipc::ProcessChild ProcessChild; michael@0: michael@0: public: michael@0: ContentProcess(ProcessHandle mParentHandle) michael@0: : ProcessChild(mParentHandle) michael@0: { } michael@0: michael@0: ~ContentProcess() michael@0: { } michael@0: michael@0: virtual bool Init() MOZ_OVERRIDE; michael@0: virtual void CleanUp() MOZ_OVERRIDE; michael@0: michael@0: void SetAppDir(const nsACString& aPath); michael@0: michael@0: private: michael@0: ContentChild mContent; michael@0: mozilla::ipc::ScopedXREEmbed mXREEmbed; michael@0: michael@0: DISALLOW_EVIL_CONSTRUCTORS(ContentProcess); michael@0: }; michael@0: michael@0: } // namespace dom michael@0: } // namespace mozilla michael@0: michael@0: #endif // ifndef dom_tabs_ContentThread_h