LCOV - code coverage report
Current view: top level - js/ipc - JavaScriptParent.h (source / functions) Hit Total Coverage
Test: output.info Lines: 1 2 50.0 %
Date: 2017-07-14 16:53:18 Functions: 1 2 50.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
       2             :  * vim: set ts=4 sw=4 et tw=80:
       3             :  *
       4             :  * This Source Code Form is subject to the terms of the Mozilla Public
       5             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       6             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       7             : 
       8             : #ifndef mozilla_jsipc_JavaScriptParent__
       9             : #define mozilla_jsipc_JavaScriptParent__
      10             : 
      11             : #include "JavaScriptBase.h"
      12             : #include "mozilla/jsipc/PJavaScriptParent.h"
      13             : 
      14             : namespace mozilla {
      15             : namespace jsipc {
      16             : 
      17             : class JavaScriptParent : public JavaScriptBase<PJavaScriptParent>
      18             : {
      19             :   public:
      20           1 :     JavaScriptParent() : savedNextCPOWNumber_(1) {}
      21             :     virtual ~JavaScriptParent();
      22             : 
      23             :     bool init();
      24             :     void trace(JSTracer* trc);
      25             : 
      26             :     void drop(JSObject* obj);
      27             : 
      28             :     bool allowMessage(JSContext* cx) override;
      29             :     void afterProcessTask();
      30             : 
      31             :   protected:
      32           0 :     virtual bool isParent() override { return true; }
      33             :     virtual JSObject* scopeForTargetObjects() override;
      34             : 
      35             :   private:
      36             :     uint64_t savedNextCPOWNumber_;
      37             : };
      38             : 
      39             : } // namespace jsipc
      40             : } // namespace mozilla
      41             : 
      42             : #endif // mozilla_jsipc_JavaScriptWrapper_h__
      43             : 

Generated by: LCOV version 1.13