michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- michael@0: * michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef NSDEFAULTURIFIXUP_H michael@0: #define NSDEFAULTURIFIXUP_H michael@0: michael@0: #include "nsIURIFixup.h" michael@0: michael@0: /* Header file */ michael@0: class nsDefaultURIFixup : public nsIURIFixup michael@0: { michael@0: public: michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_NSIURIFIXUP michael@0: michael@0: nsDefaultURIFixup(); michael@0: michael@0: protected: michael@0: virtual ~nsDefaultURIFixup(); michael@0: michael@0: private: michael@0: /* additional members */ michael@0: nsresult FileURIFixup(const nsACString &aStringURI, nsIURI** aURI); michael@0: nsresult ConvertFileToStringURI(const nsACString& aIn, nsCString& aOut); michael@0: void KeywordURIFixup(const nsACString &aStringURI, nsIInputStream** aPostData, nsIURI** aURI); michael@0: bool PossiblyByteExpandedFileName(const nsAString& aIn); michael@0: bool PossiblyHostPortUrl(const nsACString& aUrl); michael@0: bool MakeAlternateURI(nsIURI *aURI); michael@0: bool IsLikelyFTP(const nsCString& aHostSpec); michael@0: }; michael@0: michael@0: #endif