mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-07 20:17:37 +00:00
50 lines
1.7 KiB
Plaintext
50 lines
1.7 KiB
Plaintext
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
|
*
|
|
* The contents of this file are subject to the Netscape Public License
|
|
* Version 1.0 (the "NPL"); you may not use this file except in
|
|
* compliance with the NPL. You may obtain a copy of the NPL at
|
|
* http://www.mozilla.org/NPL/
|
|
*
|
|
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
|
* for the specific language governing rights and limitations under the
|
|
* NPL.
|
|
*
|
|
* The Initial Developer of this code under the NPL is Netscape
|
|
* Communications Corporation. Portions created by Netscape are
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
|
* Reserved.
|
|
*/
|
|
|
|
#include "nsISupports.idl"
|
|
#include "nsrootidl.idl"
|
|
|
|
%{C++
|
|
// {9C4DA772-07EB-11d3-8EE5-00A024669799}
|
|
#define NS_IMIME_URLUTILS_CID \
|
|
{ 0x9c4da772, 0x7eb, 0x11d3, \
|
|
{ 0x8e, 0xe5, 0x0, 0xa0, 0x24, 0x66, 0x97, 0x99 } }
|
|
%}
|
|
|
|
|
|
[scriptable, uuid(9C4DA768-07EB-11d3-8EE5-00A024669799)]
|
|
interface nsIMimeURLUtils : nsISupports {
|
|
|
|
void URLType([const] in string URL, out PRInt32 retType);
|
|
|
|
void ReduceURL (inout char url, out string retURL);
|
|
|
|
void ScanForURLs([const] in string input, in PRInt32 input_size,
|
|
out char output, in PRInt32 output_size,
|
|
in PRBool urls_only);
|
|
|
|
void MakeAbsoluteURL(inout char absolute_url, in string relative_url,
|
|
out string retURL);
|
|
|
|
void ScanHTMLForURLs([const] in string input, out string retBuf);
|
|
|
|
void ParseURL([const] in string url, in PRInt32 parts_requested,
|
|
out string returnVal);
|
|
};
|
|
|