LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom - ServiceWorkerBinding.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 3 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* THIS FILE IS AUTOGENERATED FROM ServiceWorker.webidl BY Codegen.py - DO NOT EDIT */
       2             : 
       3             : #ifndef mozilla_dom_ServiceWorkerBinding_h
       4             : #define mozilla_dom_ServiceWorkerBinding_h
       5             : 
       6             : #include "js/RootingAPI.h"
       7             : #include "jspubtd.h"
       8             : #include "mozilla/ErrorResult.h"
       9             : #include "mozilla/dom/BindingDeclarations.h"
      10             : #include "mozilla/dom/Nullable.h"
      11             : 
      12             : namespace mozilla {
      13             : namespace dom {
      14             : 
      15             : struct NativePropertyHooks;
      16             : class ProtoAndIfaceCache;
      17             : 
      18             : namespace workers {
      19             : 
      20             : class ServiceWorker;
      21             : struct ServiceWorkerAtoms;
      22             : 
      23             : } // namespace workers
      24             : 
      25             : } // namespace dom
      26             : } // namespace mozilla
      27             : 
      28             : namespace mozilla {
      29             : namespace dom {
      30             : 
      31             : enum class ServiceWorkerState : uint8_t {
      32             :   Installing,
      33             :   Installed,
      34             :   Activating,
      35             :   Activated,
      36             :   Redundant,
      37             :   EndGuard_
      38             : };
      39             : 
      40             : namespace ServiceWorkerStateValues {
      41             : extern const EnumEntry strings[6];
      42             : } // namespace ServiceWorkerStateValues
      43             : 
      44             : bool
      45             : ToJSValue(JSContext* aCx, ServiceWorkerState aArgument, JS::MutableHandle<JS::Value> aValue);
      46             : 
      47             : 
      48             : namespace ServiceWorkerBinding {
      49             : 
      50             :   typedef mozilla::dom::workers::ServiceWorker NativeType;
      51             : 
      52             :   bool
      53             :   ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj);
      54             : 
      55             :   JSObject*
      56             :   DefineDOMInterface(JSContext* aCx, JS::Handle<JSObject*> aGlobal, JS::Handle<jsid> id, bool aDefineOnGlobal);
      57             : 
      58             :   const JSClass*
      59             :   GetJSClass();
      60             : 
      61             :   bool
      62             :   Wrap(JSContext* aCx, mozilla::dom::workers::ServiceWorker* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
      63             : 
      64             :   template <class T>
      65           0 :   inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
      66             :   {
      67           0 :     JS::Rooted<JSObject*> reflector(aCx);
      68           0 :     return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
      69             :   }
      70             : 
      71             :   // We declare this as an array so that retrieving a pointer to this
      72             :   // binding's property hooks only requires compile/link-time resolvable
      73             :   // address arithmetic.  Declaring it as a pointer instead would require
      74             :   // doing a run-time load to fetch a pointer to this binding's property
      75             :   // hooks.  And then structures which embedded a pointer to this structure
      76             :   // would require a run-time load for proper initialization, which would
      77             :   // then induce static constructors.  Lots of static constructors.
      78             :   extern const NativePropertyHooks sNativePropertyHooks[];
      79             : 
      80             :   void
      81             :   CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
      82             : 
      83             :   JS::Handle<JSObject*>
      84             :   GetProtoObjectHandle(JSContext* aCx);
      85             : 
      86             :   JS::Handle<JSObject*>
      87             :   GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
      88             : 
      89             :   JSObject*
      90             :   GetConstructorObject(JSContext* aCx);
      91             : 
      92             : } // namespace ServiceWorkerBinding
      93             : 
      94             : 
      95             : 
      96             : } // namespace dom
      97             : } // namespace mozilla
      98             : 
      99             : #endif // mozilla_dom_ServiceWorkerBinding_h

Generated by: LCOV version 1.13