2000-11-09 00:00:37 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
|
|
|
*
|
2012-05-21 15:12:37 +04:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2000-11-09 00:00:37 +03:00
|
|
|
|
|
|
|
#ifndef NSDEFAULTURIFIXUP_H
|
|
|
|
#define NSDEFAULTURIFIXUP_H
|
|
|
|
|
|
|
|
#include "nsIURIFixup.h"
|
|
|
|
|
|
|
|
/* Header file */
|
|
|
|
class nsDefaultURIFixup : public nsIURIFixup
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_NSIURIFIXUP
|
|
|
|
|
|
|
|
nsDefaultURIFixup();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual ~nsDefaultURIFixup();
|
|
|
|
|
|
|
|
private:
|
|
|
|
/* additional members */
|
2003-07-02 04:39:51 +04:00
|
|
|
nsresult FileURIFixup(const nsACString &aStringURI, nsIURI** aURI);
|
|
|
|
nsresult ConvertFileToStringURI(const nsACString& aIn, nsCString& aOut);
|
2013-05-01 15:04:21 +04:00
|
|
|
void KeywordURIFixup(const nsACString &aStringURI, nsIInputStream** aPostData, nsIURI** aURI);
|
2011-09-29 10:19:26 +04:00
|
|
|
bool PossiblyByteExpandedFileName(const nsAString& aIn);
|
|
|
|
bool PossiblyHostPortUrl(const nsACString& aUrl);
|
|
|
|
bool MakeAlternateURI(nsIURI *aURI);
|
|
|
|
bool IsLikelyFTP(const nsCString& aHostSpec);
|
2000-11-09 00:00:37 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|