LCOV - code coverage report
Current view: top level - xpcom/io - nsAppFileLocationProvider.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 3 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: 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 nsAppFileLocationProvider_h
       8             : #define nsAppFileLocationProvider_h
       9             : 
      10             : #include "nsIDirectoryService.h"
      11             : #include "nsIFile.h"
      12             : #include "mozilla/Attributes.h"
      13             : 
      14             : class nsIFile;
      15             : 
      16             : //*****************************************************************************
      17             : // class nsAppFileLocationProvider
      18             : //*****************************************************************************
      19             : 
      20             : class nsAppFileLocationProvider final : public nsIDirectoryServiceProvider2
      21             : {
      22             : public:
      23             :   nsAppFileLocationProvider();
      24             : 
      25             :   NS_DECL_THREADSAFE_ISUPPORTS
      26             :   NS_DECL_NSIDIRECTORYSERVICEPROVIDER
      27             :   NS_DECL_NSIDIRECTORYSERVICEPROVIDER2
      28             : 
      29             : private:
      30           0 :   ~nsAppFileLocationProvider()
      31           0 :   {
      32           0 :   }
      33             : 
      34             : protected:
      35             :   nsresult CloneMozBinDirectory(nsIFile** aLocalFile);
      36             :   /**
      37             :   * Get the product directory. This is a user-specific directory for storing
      38             :   * application settings (e.g. the Application Data directory on windows
      39             :   * systems).
      40             :   * @param aLocal If true, should try to get a directory that is only stored
      41             :   *               locally (ie not transferred with roaming profiles)
      42             :   */
      43             :   nsresult GetProductDirectory(nsIFile** aLocalFile,
      44             :                                bool aLocal = false);
      45             :   nsresult GetDefaultUserProfileRoot(nsIFile** aLocalFile,
      46             :                                      bool aLocal = false);
      47             : 
      48             : #if defined(MOZ_WIDGET_COCOA)
      49             :   static bool IsOSXLeopard();
      50             : #endif
      51             : 
      52             :   nsCOMPtr<nsIFile> mMozBinDirectory;
      53             : };
      54             : 
      55             : #endif

Generated by: LCOV version 1.13