1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/docshell/base/nsDefaultURIFixup.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,35 @@ 1.4 +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- 1.5 + * 1.6 + * This Source Code Form is subject to the terms of the Mozilla Public 1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.9 + 1.10 +#ifndef NSDEFAULTURIFIXUP_H 1.11 +#define NSDEFAULTURIFIXUP_H 1.12 + 1.13 +#include "nsIURIFixup.h" 1.14 + 1.15 +/* Header file */ 1.16 +class nsDefaultURIFixup : public nsIURIFixup 1.17 +{ 1.18 +public: 1.19 + NS_DECL_ISUPPORTS 1.20 + NS_DECL_NSIURIFIXUP 1.21 + 1.22 + nsDefaultURIFixup(); 1.23 + 1.24 +protected: 1.25 + virtual ~nsDefaultURIFixup(); 1.26 + 1.27 +private: 1.28 + /* additional members */ 1.29 + nsresult FileURIFixup(const nsACString &aStringURI, nsIURI** aURI); 1.30 + nsresult ConvertFileToStringURI(const nsACString& aIn, nsCString& aOut); 1.31 + void KeywordURIFixup(const nsACString &aStringURI, nsIInputStream** aPostData, nsIURI** aURI); 1.32 + bool PossiblyByteExpandedFileName(const nsAString& aIn); 1.33 + bool PossiblyHostPortUrl(const nsACString& aUrl); 1.34 + bool MakeAlternateURI(nsIURI *aURI); 1.35 + bool IsLikelyFTP(const nsCString& aHostSpec); 1.36 +}; 1.37 + 1.38 +#endif