LCOV - code coverage report
Current view: top level - dom/webauthn - PublicKeyCredential.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 1 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 4 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_PublicKeyCredential_h
       8             : #define mozilla_dom_PublicKeyCredential_h
       9             : 
      10             : #include "js/TypeDecls.h"
      11             : #include "mozilla/Attributes.h"
      12             : #include "mozilla/dom/BindingDeclarations.h"
      13             : #include "mozilla/dom/Credential.h"
      14             : #include "mozilla/ErrorResult.h"
      15             : #include "nsCycleCollectionParticipant.h"
      16             : #include "nsWrapperCache.h"
      17             : 
      18             : namespace mozilla {
      19             : namespace dom {
      20             : 
      21             : class PublicKeyCredential final : public Credential
      22             : {
      23             : public:
      24             :   NS_DECL_ISUPPORTS_INHERITED
      25           0 :   NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS_INHERITED(PublicKeyCredential,
      26             :                                                          Credential)
      27             : 
      28             :   explicit PublicKeyCredential(nsPIDOMWindowInner* aParent);
      29             : 
      30             : protected:
      31             :   ~PublicKeyCredential() override;
      32             : 
      33             : public:
      34             :   virtual JSObject*
      35             :   WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
      36             : 
      37             :   void
      38             :   GetRawId(JSContext* cx, JS::MutableHandle<JSObject*> aRetVal) const;
      39             : 
      40             :   already_AddRefed<AuthenticatorResponse>
      41             :   Response() const;
      42             : 
      43             :   nsresult
      44             :   SetRawId(CryptoBuffer& aBuffer);
      45             : 
      46             :   void
      47             :   SetResponse(RefPtr<AuthenticatorResponse>);
      48             : 
      49             : private:
      50             :   CryptoBuffer mRawId;
      51             :   RefPtr<AuthenticatorResponse> mResponse;
      52             :   // Extensions are not supported yet.
      53             :   // <some type> mClientExtensionResults;
      54             : };
      55             : 
      56             : } // namespace dom
      57             : } // namespace mozilla
      58             : 
      59             : #endif // mozilla_dom_PublicKeyCredential_h

Generated by: LCOV version 1.13