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: #include "nsISupports.idl" michael@0: /** michael@0: * Some utility methods used by the url classifier. michael@0: */ michael@0: michael@0: interface nsIURI; michael@0: michael@0: [scriptable, uuid(e4f0e59c-b922-48b0-a7b6-1735c1f96fed)] michael@0: interface nsIUrlClassifierUtils : nsISupports michael@0: { michael@0: /** michael@0: * Get the lookup string for a given URI. This normalizes the hostname, michael@0: * url-decodes the string, and strips off the protocol. michael@0: * michael@0: * @param uri URI to get the lookup key for. michael@0: * michael@0: * @returns String containing the canonicalized URI. michael@0: */ michael@0: ACString getKeyForURI(in nsIURI uri); michael@0: };