LCOV - code coverage report
Current view: top level - dom/payments - PaymentActionRequest.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 8 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 21 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_PaymentActionRequest_h
       8             : #define mozilla_dom_PaymentActionRequest_h
       9             : 
      10             : #include "nsIPaymentActionRequest.h"
      11             : #include "nsCOMPtr.h"
      12             : #include "nsIArray.h"
      13             : #include "nsString.h"
      14             : 
      15             : namespace mozilla {
      16             : namespace dom {
      17             : 
      18             : class PaymentActionRequest : public nsIPaymentActionRequest
      19             : {
      20             : public:
      21             :   NS_DECL_ISUPPORTS
      22             :   NS_DECL_NSIPAYMENTACTIONREQUEST
      23             : 
      24             :   PaymentActionRequest();
      25             : 
      26             : protected:
      27           0 :   virtual ~PaymentActionRequest() = default;
      28             : 
      29             :   nsString mRequestId;
      30             :   uint32_t mType;
      31             :   nsCOMPtr<nsIPaymentActionCallback> mCallback;
      32             : };
      33             : 
      34             : class PaymentCreateActionRequest final : public nsIPaymentCreateActionRequest
      35             :                                        , public PaymentActionRequest
      36             : {
      37             : public:
      38             :   NS_DECL_ISUPPORTS_INHERITED
      39           0 :   NS_FORWARD_NSIPAYMENTACTIONREQUEST(PaymentActionRequest::)
      40             :   NS_DECL_NSIPAYMENTCREATEACTIONREQUEST
      41             : 
      42             :   PaymentCreateActionRequest();
      43             : 
      44             : private:
      45           0 :   ~PaymentCreateActionRequest() = default;
      46             : 
      47             :   uint64_t mTabId;
      48             :   nsCOMPtr<nsIArray> mMethodData;
      49             :   nsCOMPtr<nsIPaymentDetails> mDetails;
      50             :   nsCOMPtr<nsIPaymentOptions> mOptions;
      51             : };
      52             : 
      53             : class PaymentCompleteActionRequest final : public nsIPaymentCompleteActionRequest
      54             :                                          , public PaymentActionRequest
      55             : {
      56             : public:
      57             :   NS_DECL_ISUPPORTS_INHERITED
      58           0 :   NS_FORWARD_NSIPAYMENTACTIONREQUEST(PaymentActionRequest::)
      59             :   NS_DECL_NSIPAYMENTCOMPLETEACTIONREQUEST
      60             : 
      61             :   PaymentCompleteActionRequest();
      62             : 
      63             : private:
      64           0 :   ~PaymentCompleteActionRequest() = default;
      65             : 
      66             :   nsString mCompleteStatus;
      67             : };
      68             : 
      69             : class PaymentUpdateActionRequest final : public nsIPaymentUpdateActionRequest
      70             :                                        , public PaymentActionRequest
      71             : {
      72             : public:
      73             :   NS_DECL_ISUPPORTS_INHERITED
      74           0 :   NS_FORWARD_NSIPAYMENTACTIONREQUEST(PaymentActionRequest::)
      75             :   NS_DECL_NSIPAYMENTUPDATEACTIONREQUEST
      76             : 
      77           0 :   PaymentUpdateActionRequest() = default;
      78             : private:
      79           0 :   ~PaymentUpdateActionRequest() = default;
      80             : 
      81             :   nsCOMPtr<nsIPaymentDetails> mDetails;
      82             : };
      83             : 
      84             : } // end of namespace dom
      85             : } // end of namespace mozilla
      86             : 
      87             : #endif

Generated by: LCOV version 1.13