LCOV - code coverage report
Current view: top level - dom/file - EmptyBlobImpl.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 7 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_EmptyBlobImpl_h
       8             : #define mozilla_dom_EmptyBlobImpl_h
       9             : 
      10             : #include "BaseBlobImpl.h"
      11             : 
      12             : namespace mozilla {
      13             : namespace dom {
      14             : 
      15             : class EmptyBlobImpl final : public BaseBlobImpl
      16             : {
      17             : public:
      18             :   NS_DECL_ISUPPORTS_INHERITED
      19             : 
      20           0 :   explicit EmptyBlobImpl(const nsAString& aContentType)
      21           0 :     : BaseBlobImpl(aContentType, 0 /* aLength */)
      22             :   {
      23           0 :     mImmutable = true;
      24           0 :   }
      25             : 
      26             :   EmptyBlobImpl(const nsAString& aName,
      27             :                 const nsAString& aContentType,
      28             :                 int64_t aLastModifiedDate)
      29             :     : BaseBlobImpl(aName, aContentType, 0, aLastModifiedDate)
      30             :   {
      31             :     mImmutable = true;
      32             :   }
      33             : 
      34             :   virtual void GetInternalStream(nsIInputStream** aStream,
      35             :                                  ErrorResult& aRv) override;
      36             : 
      37             :   virtual already_AddRefed<BlobImpl>
      38             :   CreateSlice(uint64_t aStart, uint64_t aLength,
      39             :               const nsAString& aContentType, ErrorResult& aRv) override;
      40             : 
      41           0 :   virtual bool IsMemoryFile() const override
      42             :   {
      43           0 :     return true;
      44             :   }
      45             : 
      46             : private:
      47           0 :   ~EmptyBlobImpl() {}
      48             : };
      49             : 
      50             : } // namespace dom
      51             : } // namespace mozilla
      52             : 
      53             : #endif // mozilla_dom_EmptyBlobImpl_h

Generated by: LCOV version 1.13