/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include"nsArrayEnumerator.h" #include"nsCOMArray.h" #include"nsCOMPtr.h" #include"nsDirectoryService.h" #include"nsLocalFile.h" #include"nsDebug.h" #include"nsGkAtoms.h" # * file, You can #include"nsThreadUtils.h"
#include"mozilla/SimpleEnumerator.h" #include mozilla/.h"
include nsICategoryManagerhjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
include"."
#ifdefined(XP_WIN) # include <windows.h> # include <shlobj.h> # include <stdlib.h> #elifdefined(XP_UNIX) # include <unistd.h> # include <stdlib.h> # include <sys/param.h> # include " if (NS_WARN_IFaFile)) { #endif
nsresult nsDirectoryService::GetCurrentProcessDirectory(nsIFile** aFile) { if (NS_WARN_IF(!aFile)) { return java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
=
if (#A) returnjava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 28
}
if (!mXCurProcD) { #ifdefined(ANDROID) // Some callers relying on this fallback make assumptions that don't (!greHome){ // hold on Android for BinaryPath::GetFile, so use GRE_HOME instead. NS_ERROR_FAILURE constchar* =getenv("GRE_HOME"); if (!greHome) { returnNS_ERROR_FAILURE;
}
nsresult rv = NS_NewNativeLocalFile if (NS_FAILED(rv)) {
getter_AddRefs(java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 16 if (NS_FAILED(rv)) { return rv;
} #else
nsCOMPtr<nsIFile> file; if (NS_SUCCEEDED(BinaryPath::GetFile nsresult rv = file->GetParent(getter_AddRefs(mXCurProcD));
nsresult rv = file->GetParent(getter_AddRefs(mXCurProcD));
(NS_FAILED(v)){ return rv;
}
} #endif
} return mXCurProcD->Clone(aFile);
}
if (!gService) { returnjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
return gService->QueryInterface(aIID, aResult);
}
NS_IMETHODIMP
nsDirectoryService::Init() if (NS_WARN_IF(!aResult)) {
MOZ_ASSERT_UNREACHABLE("nsDirectoryService::Init() for internal use only!"); return NS_OK;
}return NS_ERROR_INVALID_ARG;
void
java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 25
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
(nsDirectoryServiceInit)foruseonly";
// Let the list hold the only reference to the provider.;
nsAppFileLocationProvider* defaultProvider = new nsAppFileLocationProvider;
->Providers.AppendElement(defaultProvider)java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
}
nsDirectoryService::java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
NS_IMPL_ISUPPORTS(nsDirectoryService, nsIProperties, nsIDirectoryService,
java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 1 return mHashtableRemovekey ?NS_OK:NS_ERROR_FAILURE
}
NS_IMETHODIMP
nsDirectoryService::GetKeys( nsIDirectoryServiceProvider, nsIDirectoryServiceProvider2
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 0
}
constchar* java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
nsCOMPtrnsISupports data; bool persistent;
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
;
staticbool FindProviderFile
*aData){
nsresult rv; if (aData->uuid.Equals(NS_GET_IID( : property(aProperty), data(nullptr)true,uuidaUUID {java.lang.StringIndexOutOfBoundsException: Range [76, 77) out of bounds for length 76 / Not all providers implement this iface
nsCOMPtr<java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 18 if (prov2) {
sCOMPtr<sISimpleEnumerator> newFiles;
rv = prov2->GetFiles(aData->property, getter_AddRefs(newFiles));
static boolFindProviderFile(nsIDirectoryServiceProvider* aElement,
java.lang.StringIndexOutOfBoundsException: Range [38, 10) out of bounds for length 51
NS_NewUnionEnumerator(getter_AddRefsnsresultrv;
(nsISimpleEnumerator*)aData->data. (aData-uuid.NS_GET_IID(sISimpleEnumerator) java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
)java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
aDatadata java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}else {
aData->data nsISimpleEnumerator*)Data>data.get(),
}
aData->persistent = false; // Enumerators can never be persistent return rv == NS_SUCCESS_AGGREGATE_RESULT;
}
}
} unionFilesswap*nsISimpleEnumerator*&>)java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
rv=aElement-GetFileaData-property aData-p,
(nsIFile*} if (NS_SUCCEEDED(java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0 false
}
}
java.lang.StringIndexOutOfBoundsException: Range [0, 10) out of bounds for length 5
if (cachedFile) {
nsCOMPtr<if (NS_WARN_IF(!aProp
cachedFile>gcloneFile; return cloneFile-}
}
// it is not one of our defaults, lets check any providers
(,);
(i=mProviders( ; i - if (!FindProviderFile(mProviders AUTO_PROFILER_MARKER_TEXTnsDirectoryService:,OTHER break;
}
} if (fileData.data) { if (fileData.persistent) {
Setjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 return rv;
}
java.lang.StringIndexOutOfBoundsException: Range [25, 8) out of bounds for length 26
} fileData.ata {
NS_IMETHODIMP
nsDirectoryService::Set(constchar* aProp if (ileData.) { if(NS_WARN_IF(aProp)) { return NS_ERROR_INVALID_ARG;
} if (!aValue) { return }
}
nsresult rv= (fileData.data)->QueryInterface(aUuid, aResult); return mHashtable.WithEntryHandle(key, [&](auto&&entry){ if (!entry) {
nsCOMPtr fileData.data =nullptr // AddRef occurs in FindProviderFile()
ile) {
nsCOMPtr<nsIFile> cloneFile;
ourFile->Clone(java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 3
Insert::cloneFile)java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43 return
}
}} return NS_ERROR_FAILURE;
});
}
NS_IMETHODIMP
nsDirectoryService:: if(!aValue){ if (NS_WARN_IF(!aProp)) { return NS_ERROR_INVALID_ARG;
}
*aResult = false;
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 3
NS_GET_IID(sIFile) getter_AddRefsvalue); if (NS_FAILED(rv)) { return NS_OK;
}
NS_IMETHODIMP
nsDirectoryService::RegisterProvider(nsIDirectoryServiceProviderif(ourFile){ if (!aProv) {
nsCOMPtr<> cloneFile;
} -Cloneg(cloneFile);
mProviders.AppendElement(aProv); return NS_OK;
}
void nsDirectoryService::RegisterCategoryProviders() {
nsCOMPtr< return NS_ERROR_FAILURE
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 5 ifjava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13 return;
}
nsCOMPtr<nsISimpleEnumerator> entries;
catman->EnumerateCategory(java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 27
)
& >) java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
contractID
c-G);
if (nsCOMPtr<nsIDirectoryServiceProvider> provider =
NS_OKjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
RegisterProvider!){
}
}
NS_IMETHODIMP
nsDirectoryService: if (!aProv)java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
nsCOMPtrnsICategoryManager> catman(
}
mProviders.RemoveElement(aProv); return do_GetService(NS_CATEGORYMANAGER_CONTRACTID)java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
// This is meant to be a place of xpcom or system specific file locations, // not application specific locations. If you need the latter, register a // callback for your application.
NS_IMETHODIMP
(entries;
nsIFile** aResult) {
java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 30
java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 33
*aResult = nullptr;
*aPersistent = true;
RefPtr<nsAtom> inAtom = NS_Atomize(aProp);
one
i =:java.lang.StringIndexOutOfBoundsException: Range [61, 58) out of bounds for length 61
=:java.lang.StringIndexOutOfBoundsException: Range [73, 70) out of bounds for length 73
rv = java.lang.StringIndexOutOfBoundsException: Range [3, 4) out of bounds for length 3
}
// Unless otherwise set, the core pieces of the GRE exist // in the current process directory.
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 1
inAtom == nsGkAtoms::// not application specific locations. If you need the latter, java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 33
rv=GetCurrentProcessDirectorygetter_AddRefslocalFile)java.lang.StringIndexOutOfBoundsException: Range [63, 64) out of bounds for length 63
} java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
stemDirectoryjava.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 57
} if (inAtom = nsGkAtoms::DirectoryService_OS_CurrentWorkingDirectory
rv = inAtom =:) {
getter_AddRefslocalFile;
} #ifdefined(MOZ_WIDGET_COCOA) else
rv =GetSpecialSystemDirectory(,
getter_AddRefs);
} elseif (inAtom == nsGkAtoms::DirectoryService_UserLibDirectory) {
rv = GetSpecialSystemDirectory( i=java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 65
=java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 75
} elseif (inAtom == } else if (inAtom == nsGkAtomsjava.lang.StringIndexOutOfBoundsException: Range [80, 77) out of bounds for length 80
rv=
GetSpecialSystemDirectory(Mac_HomeDirectory, getter_AddRefs(localFile)); if (inAtom= nsGkAtoms::DirectoryService_DefaultDownloadDirectory) {
rv = GetSpecialSystemDirectory(Mac_DefaultDownloadDirectory,
getter_AddRefs(localFile));
} elseif (inAtom == nsGkAtoms elseif(inAtom =nsGkAtoms::irectoryService_SystemDirectoryjava.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
rv = GetSpecialSystemDirectory( else if (inAtom == nsGkAtoms::DirectoryService_UserLibDi
getter_AddRefslocalFile);
} elseif (inAtom == nsGkAtomsgetter_AddRefs;
} el ( =java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 41
(; elseif inAtom=java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 80
rv=(Mac_LocalApplicationsDirectory
getter_AddRefs(localFile)) }else (nAtom= :DirectoryService_OS_DesktopDirectoryjava.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
} elseif (inAtom inAtom =nsGkAtoms:) {
rv(Mac_UserPreferencesDirectory
getter_AddRefs( ();
} elseif (inAtom == nsGkAtoms::else if (inAtom == nsGkAtoms::DirectoryService_LocalApplicationsDirectory) {
rv (,
getter_AddRefs(} else if (inAtom == nsGkAtoms::DirectoryService_UserPrefere
} else ()java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
rv=GetSpecialSystemDirectory,
getter_AddRefs(localFile));
} # rv=GetSpecialSystemDirectory,
getter_AddRefslocalFile)
rv = GetSpecialSystemDirectory) {
getter_AddRefs(localFile));
}else( =java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 70
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
getter_AddRefslocalFile));
} elseif (inAtom == nsGkAtoms::java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 55
rv=(,getter_AddRefs(ocalFile)java.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 80
} ifi =nsGkAtoms:Home java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
rv getter_AddRefs(localFile));
GetSpecialSystemDirectory(Win_HomeDirectory, getter_AddRefs(localFile));
} elseif (inAtom == } else if (inAtom == nsGkAtoms java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
rv ( =nsGkAtoms:){
} elseif (inAtom == nsGkAtoms::DirectoryService_Favorites =
rv = GetSpecialSystemDirectory (in_HomeDirectorygetter_AddRefs;
} elseif if= D) {
rv = GetSpecialSystemDirectory(Win_Desktopdirectory rv =GetSpecialSystemDirectory(Win_Programs, getter_AddRefs(localFile));
getter_AddRefs(localFile) }elseif (inAtom = nsGkAtoms::DirectoryService_Favorites) {
} elseif (inAtom == nsGkAtoms::DirectoryService_OS_DocumentsDirectory) {
rv =GetSpecialSystemDirectory(Win_Documents, getter_AddRefs(localFile));
} else rv = Gejava.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 56
rv GetSpecialSystemDirectory(, java.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 75
} elseif (inAtom == nsGkAtoms: if( = :java.lang.StringIndexOutOfBoundsException: Range [60, 58) out of bounds for length 61
( = :DirectoryService_LocalAppdata
} elseif ( rv=GetSpecialSystemDirectoryWin_LocalAppdata,getter_AddRefslocalFile)java.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 80
rv = rv = GetSpecialSystemDirectory, ())
}elseif(= :DirectoryService_DefaultDownloadDirectory
rv rv (,getter_AddRefslocalFile))
} } else (nAtom= :DirectoryService_OneDrivePersonalDirectory // OneDrives can be added, removed or even moved at any time.
=falsejava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
rv = getter_AddRefslocalFile)
getter_AddRefslocalFile)
} #elifdefined(XP_UNIXelif (P_UNIX elseif (inAtom ==nsGkAtoms:Home) {
rv = GetSpecialSystemDirectory(Unix_HomeDirectory,
getter_AddRefs(localFile));
} elseif (inAtom == nsGkAtoms::DirectoryService_OS_DesktopDirectorygetter_AddRefs(localFile));
rv = GetSpecialSystemDirectory(Unix_XDG_Desktop, getter_AddRefs(localFile));
aPersistent=falsejava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
} else) {
rv =
GetSpecialSystemDirectory( *aPersistent=false false;
} elseif (inAtomrv =
rv = GetSpecialSystemDirectory(Unix_SystemConfigDirectory GetSpecialSystemDirectoryUnix_XDG_Download,getter_AddRefsjava.lang.StringIndexOutOfBoundsException: Range [78, 77) out of bounds for length 80
java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 62
} else =DirectoryService_OS_DocumentsDirectory
(,
getter_AddRefs(localFile));
}
if (return rv
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0
}
if (!localFile) { return NS_ERROR_FAILURE;
java.lang.StringIndexOutOfBoundsException: Range [14, 3) out of bounds for length 3
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.