LCOV - code coverage report
Current view: top level - modules/libjar - nsJARProtocolHandler.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 1 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /* This Source Code Form is subject to the terms of the Mozilla Public
       3             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       4             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       5             : 
       6             : #ifndef nsJARProtocolHandler_h__
       7             : #define nsJARProtocolHandler_h__
       8             : 
       9             : #include "nsIJARProtocolHandler.h"
      10             : #include "nsIProtocolHandler.h"
      11             : #include "nsIJARURI.h"
      12             : #include "nsIZipReader.h"
      13             : #include "nsIMIMEService.h"
      14             : #include "nsWeakReference.h"
      15             : #include "nsCOMPtr.h"
      16             : 
      17             : class nsJARProtocolHandler final : public nsIJARProtocolHandler
      18             :                                  , public nsSupportsWeakReference
      19             : {
      20             : public:
      21             :     NS_DECL_THREADSAFE_ISUPPORTS
      22             :     NS_DECL_NSIPROTOCOLHANDLER
      23             :     NS_DECL_NSIJARPROTOCOLHANDLER
      24             : 
      25             :     // nsJARProtocolHandler methods:
      26             :     nsJARProtocolHandler();
      27             : 
      28             :     static nsJARProtocolHandler *GetSingleton();
      29             : 
      30             :     nsresult Init();
      31             : 
      32             :     // returns non addref'ed pointer.
      33             :     nsIMIMEService    *MimeService();
      34           0 :     nsIZipReaderCache *JarCache() { return mJARCache; }
      35             : protected:
      36             :     virtual ~nsJARProtocolHandler();
      37             : 
      38             :     nsCOMPtr<nsIZipReaderCache> mJARCache;
      39             :     nsCOMPtr<nsIMIMEService> mMimeService;
      40             : };
      41             : 
      42             : extern nsJARProtocolHandler *gJarHandler;
      43             : 
      44             : #define NS_JARPROTOCOLHANDLER_CID                    \
      45             : { /* 0xc7e410d4-0x85f2-11d3-9f63-006008a6efe9 */     \
      46             :     0xc7e410d4,                                      \
      47             :     0x85f2,                                          \
      48             :     0x11d3,                                          \
      49             :     {0x9f, 0x63, 0x00, 0x60, 0x08, 0xa6, 0xef, 0xe9} \
      50             : }
      51             : 
      52             : #endif // !nsJARProtocolHandler_h__

Generated by: LCOV version 1.13