LCOV - code coverage report
Current view: top level - dom/ipc - ContentProcess.h (source / functions) Hit Total Coverage
Test: output.info Lines: 3 5 60.0 %
Date: 2017-07-14 16:53:18 Functions: 1 3 33.3 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
       2             : /* vim: set ts=8 sts=2 et sw=2 tw=80: */
       3             : /* This Source Code Form is subject to the terms of the Mozilla Public
       4             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       5             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       6             : 
       7             : #ifndef dom_tabs_ContentThread_h
       8             : #define dom_tabs_ContentThread_h 1
       9             : 
      10             : #include "mozilla/ipc/ProcessChild.h"
      11             : #include "mozilla/ipc/ScopedXREEmbed.h"
      12             : #include "ContentChild.h"
      13             : 
      14             : #if defined(XP_WIN)
      15             : #include "mozilla/mscom/MainThreadRuntime.h"
      16             : #endif
      17             : 
      18             : namespace mozilla {
      19             : namespace dom {
      20             : 
      21             : /**
      22             :  * ContentProcess is a singleton on the content process which represents
      23             :  * the main thread where tab instances live.
      24             :  */
      25             : class ContentProcess : public mozilla::ipc::ProcessChild
      26             : {
      27             :   typedef mozilla::ipc::ProcessChild ProcessChild;
      28             : 
      29             : public:
      30           2 :   explicit ContentProcess(ProcessId aParentPid)
      31           2 :     : ProcessChild(aParentPid)
      32           2 :   { }
      33             : 
      34           0 :   ~ContentProcess()
      35           0 :   { }
      36             : 
      37             :   virtual bool Init(int aArgc, char* aArgv[]) override;
      38             :   virtual void CleanUp() override;
      39             : 
      40             : private:
      41             :   ContentChild mContent;
      42             :   mozilla::ipc::ScopedXREEmbed mXREEmbed;
      43             : 
      44             : #if defined(XP_WIN)
      45             :   // This object initializes and configures COM.
      46             :   mozilla::mscom::MainThreadRuntime mCOMRuntime;
      47             : #endif
      48             : 
      49             :   DISALLOW_EVIL_CONSTRUCTORS(ContentProcess);
      50             : };
      51             : 
      52             : } // namespace dom
      53             : } // namespace mozilla
      54             : 
      55             : #endif  // ifndef dom_tabs_ContentThread_h

Generated by: LCOV version 1.13