LCOV - code coverage report
Current view: top level - dom/webauthn - AuthenticatorResponse.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 3 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 8 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
       2             : /* vim:set ts=2 sw=2 sts=2 et cindent: */
       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 mozilla_dom_AuthenticatorResponse_h
       8             : #define mozilla_dom_AuthenticatorResponse_h
       9             : 
      10             : #include "js/TypeDecls.h"
      11             : #include "mozilla/Attributes.h"
      12             : #include "mozilla/ErrorResult.h"
      13             : #include "mozilla/dom/BindingDeclarations.h"
      14             : #include "mozilla/dom/CryptoBuffer.h"
      15             : #include "nsCycleCollectionParticipant.h"
      16             : #include "nsWrapperCache.h"
      17             : 
      18             : namespace mozilla {
      19             : namespace dom {
      20             : 
      21             : class AuthenticatorResponse : public nsISupports
      22             :                             , public nsWrapperCache
      23             : {
      24             : public:
      25             :   NS_DECL_CYCLE_COLLECTING_ISUPPORTS
      26           0 :   NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(AuthenticatorResponse)
      27             : 
      28             :   explicit AuthenticatorResponse(nsPIDOMWindowInner* aParent);
      29             : 
      30             : protected:
      31             :   virtual ~AuthenticatorResponse();
      32             : 
      33             : public:
      34             :   nsISupports*
      35           0 :   GetParentObject() const
      36             :   {
      37           0 :     return mParent;
      38             :   }
      39             : 
      40             :   virtual JSObject*
      41             :   WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
      42             : 
      43             :   void
      44             :   GetFormat(nsString& aRetVal) const;
      45             : 
      46             :   void
      47             :   GetClientDataJSON(JSContext* aCx, JS::MutableHandle<JSObject*> aRetVal) const;
      48             : 
      49             :   nsresult
      50             :   SetClientDataJSON(CryptoBuffer& aBuffer);
      51             : 
      52             : private:
      53             :   nsCOMPtr<nsPIDOMWindowInner> mParent;
      54             :   CryptoBuffer mClientDataJSON;
      55             : };
      56             : 
      57             : } // namespace dom
      58             : } // namespace mozilla
      59             : 
      60             : #endif // mozilla_dom_AuthenticatorResponse_h

Generated by: LCOV version 1.13