LCOV - code coverage report
Current view: top level - dom/quota - QuotaResults.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 4 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: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
       2             : /* vim: set ts=8 sts=2 et sw=2 tw=80: */
       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_quota_QuotaResults_h
       8             : #define mozilla_dom_quota_QuotaResults_h
       9             : 
      10             : #include "nsIQuotaResults.h"
      11             : 
      12             : namespace mozilla {
      13             : namespace dom {
      14             : namespace quota {
      15             : 
      16             : class UsageResult
      17             :   : public nsIQuotaUsageResult
      18             : {
      19             :   nsCString mOrigin;
      20             :   uint64_t mUsage;
      21             :   bool mPersisted;
      22             : 
      23             : public:
      24             :   UsageResult(const nsACString& aOrigin,
      25             :               bool aPersisted,
      26             :               uint64_t aUsage);
      27             : 
      28             : private:
      29           0 :   virtual ~UsageResult()
      30           0 :   { }
      31             : 
      32             :   NS_DECL_ISUPPORTS
      33             :   NS_DECL_NSIQUOTAUSAGERESULT
      34             : };
      35             : 
      36             : class OriginUsageResult
      37             :   : public nsIQuotaOriginUsageResult
      38             : {
      39             :   uint64_t mUsage;
      40             :   uint64_t mFileUsage;
      41             :   uint64_t mLimit;
      42             : 
      43             : public:
      44             :   OriginUsageResult(uint64_t aUsage,
      45             :                     uint64_t aFileUsage,
      46             :                     uint64_t aLimit);
      47             : 
      48             : private:
      49           0 :   virtual ~OriginUsageResult()
      50           0 :   { }
      51             : 
      52             :   NS_DECL_ISUPPORTS
      53             :   NS_DECL_NSIQUOTAORIGINUSAGERESULT
      54             : };
      55             : 
      56             : } // namespace quota
      57             : } // namespace dom
      58             : } // namespace mozilla
      59             : 
      60             : #endif // mozilla_dom_quota_QuotaResults_h

Generated by: LCOV version 1.13