LCOV - code coverage report
Current view: top level - dom/payments/ipc - PaymentRequestParent.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 1 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 2 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_PaymentRequestParent_h
       8             : #define mozilla_dom_PaymentRequestParent_h
       9             : 
      10             : #include "mozilla/dom/PPaymentRequestParent.h"
      11             : #include "nsIPaymentActionRequest.h"
      12             : 
      13             : namespace mozilla {
      14             : namespace dom {
      15             : 
      16             : class PaymentRequestParent final : public nsIPaymentActionCallback
      17             :                                  , public PPaymentRequestParent
      18             : {
      19             :   NS_DECL_THREADSAFE_ISUPPORTS
      20             :   NS_DECL_NSIPAYMENTACTIONCALLBACK
      21             : 
      22             :   explicit PaymentRequestParent(uint64_t aTabId);
      23             : 
      24             : protected:
      25             :   mozilla::ipc::IPCResult
      26             :   RecvRequestPayment(const IPCPaymentActionRequest& aRequest) override;
      27             : 
      28             :   mozilla::ipc::IPCResult Recv__delete__() override;
      29             : 
      30             :   void ActorDestroy(ActorDestroyReason aWhy) override;
      31             : private:
      32           0 :   ~PaymentRequestParent() = default;
      33             : 
      34             :   nsresult CreateActionRequest(const nsAString& aRequestId,
      35             :                                uint32_t aActionType,
      36             :                                nsIPaymentActionRequest** aAction);
      37             : 
      38             :   bool mActorAlived;
      39             :   uint64_t mTabId;
      40             : };
      41             : 
      42             : } // end of namespace dom
      43             : } // end of namespace mozilla
      44             : 
      45             : #endif

Generated by: LCOV version 1.13