Bug 1867190 - Add prefs for PHC probablities r=glandium
[gecko.git] / xpcom / io / nsAppFileLocationProvider.h
blobd2fd9cf65132c595af29ff0e71bc5566d19ee892
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/. */
7 #ifndef nsAppFileLocationProvider_h
8 #define nsAppFileLocationProvider_h
10 #include "nsIDirectoryService.h"
11 #include "nsCOMPtr.h"
12 #include "mozilla/Attributes.h"
14 class nsIFile;
16 //*****************************************************************************
17 // class nsAppFileLocationProvider
18 //*****************************************************************************
20 class nsAppFileLocationProvider final : public nsIDirectoryServiceProvider {
21 public:
22 nsAppFileLocationProvider();
24 NS_DECL_THREADSAFE_ISUPPORTS
25 NS_DECL_NSIDIRECTORYSERVICEPROVIDER
27 private:
28 ~nsAppFileLocationProvider() = default;
30 protected:
31 nsresult CloneMozBinDirectory(nsIFile** aLocalFile);
32 /**
33 * Get the product directory. This is a user-specific directory for storing
34 * application settings (e.g. the Application Data directory on windows
35 * systems).
36 * @param aLocal If true, should try to get a directory that is only stored
37 * locally (ie not transferred with roaming profiles)
39 nsresult GetProductDirectory(nsIFile** aLocalFile, bool aLocal = false);
40 nsresult GetDefaultUserProfileRoot(nsIFile** aLocalFile, bool aLocal = false);
42 nsCOMPtr<nsIFile> mMozBinDirectory;
45 #endif