Backing out due to huge Ts increase

This commit is contained in:
ccarlen%netscape.com 2003-03-20 08:45:50 +00:00
Родитель cf13106c8d
Коммит 92ad0870c0
3 изменённых файлов: 544 добавлений и 396 удалений

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -43,16 +43,13 @@
#include "nsLocalFile.h"
#include "nsString.h"
#include <deque>
using namespace std;
class nsDirEnumerator;
//*****************************************************************************
// nsLocalFile
//
// The native charset of this implementation is UTF-8. The Unicode used by the
// Mac OS file system is decomposed, so "Native" versions of these routines will
// always use decomposed Unicode. Their "non-Native" counterparts are intended
// to be simple wrappers which call the "Native" version and convert between
// UTF-8 and UCS-2. All the work is done on the "Native" side.
//*****************************************************************************
class NS_COM nsLocalFile : public nsILocalFileMac
@ -78,33 +75,35 @@ public:
static void GlobalShutdown();
protected:
nsLocalFile(const FSRef& aFSRef, const nsAString& aRelativePath);
nsLocalFile(const nsLocalFile& src);
nsresult SetBaseRef(CFURLRef aCFURLRef); // Does CFRetain on aCFURLRef
nsresult UpdateTargetRef();
nsresult GetFSRefInternal(FSRef& aFSSpec, PRBool bForceUpdateCache = PR_TRUE);
nsresult Resolve();
nsresult GetFSRefInternal(FSRef& aFSSpec);
nsresult GetPathInternal(nsACString& path); // Returns path WRT mFollowLinks
nsresult ResolveNonExtantNodes(PRBool aCreateDirs);
nsresult MoveCopy(nsIFile* newParentDir, const nsAString &newName, PRBool isCopy, PRBool followLinks);
static PRInt64 HFSPlustoNSPRTime(const UTCDateTime& utcTime);
static void NSPRtoHFSPlusTime(PRInt64 nsprTime, UTCDateTime& utcTime);
static nsresult CFStringReftoUTF8(CFStringRef aInStrRef, nsACString& aOutStr);
protected:
CFURLRef mBaseRef; // The FS object we represent
CFURLRef mTargetRef; // If mBaseRef is an alias, its target
FSRef mCachedFSRef;
PRPackedBool mCachedFSRefValid;
protected:
FSRef mFSRef;
deque<nsString> mNonExtantNodes;
FSRef mTargetFSRef; // If mFSRef is an alias file, its target
PRPackedBool mFollowLinks;
PRPackedBool mIdentityDirty;
PRPackedBool mFollowLinksDirty;
static const char kPathSepChar;
static const PRUnichar kPathSepUnichar;
static const PRInt64 kJanuaryFirst1970Seconds;
static PRInt64 kJanuaryFirst1970Seconds;
static PRUnichar kPathSepUnichar;
static char kPathSepChar;
static FSRef kInvalidFSRef;
static FSRef kRootFSRef;
};
#endif // nsLocalFileMac_h__

Просмотреть файл

@ -337,6 +337,7 @@ xptiInterfaceInfoManager::BuildFileList(nsISupportsArray* aSearchPath,
nsCOMPtr<nsILocalFile> file = do_QueryInterface(sup);
if(!file)
return PR_FALSE;
file->SetFollowLinks(PR_FALSE);
PRBool isFile;
if(NS_FAILED(file->IsFile(&isFile)) || !isFile)