Part 1.1 of 18352 (remove extensions/ dependencies from non-extensions/ code):

Teach netwerk about nsIPasswordManager.
  (Craves better interfaces, current versions just C&P'd from wallet's.)
r=valeski,a=brendan
This commit is contained in:
shaver%mozilla.org 2000-09-12 02:35:29 +00:00
Родитель c2ff9d3a08
Коммит bc4ba277fb
6 изменённых файлов: 91 добавлений и 17 удалений

Просмотреть файл

@ -5,3 +5,4 @@
netCore.h
nsNetUtil.h
nsUnixColorPrintf.h
nsIPasswordManagerUtils.h

Просмотреть файл

@ -5,6 +5,7 @@
nsIAuthenticator.idl
nsIChannel.idl
nsIFileTransportService.idl
nsIPasswordManager.idl
nsIPrompt.idl
nsIProtocolProxyService.idl
nsIProxyAutoConfig.idl

Просмотреть файл

@ -30,31 +30,32 @@ MODULE = necko
XPIDLSRCS = \
nsIAuthenticator.idl \
nsIFileStreams.idl \
nsIRequest.idl \
nsIChannel.idl \
nsIURI.idl \
nsIURL.idl \
nsIStreamObserver.idl \
nsIStreamListener.idl \
nsIFileStreams.idl \
nsIFileTransportService.idl \
nsIIOService.idl \
nsIPrompt.idl \
nsIProtocolHandler.idl \
nsIProgressEventSink.idl \
nsILoadGroup.idl \
nsINetModRegEntry.idl \
nsINetModuleMgr.idl \
nsINetNotify.idl \
nsILoadGroup.idl \
nsIFileTransportService.idl \
nsISocketTransportService.idl \
nsIStreamIO.idl \
nsIStreamLoader.idl \
nsISocketTransport.idl \
nsIURLParser.idl \
nsIPasswordManager.idl \
nsIProgressEventSink.idl \
nsIPrompt.idl \
nsIProtocolHandler.idl \
nsIProtocolProxyService.idl \
nsIProxy.idl \
nsIProxyAutoConfig.idl \
nsIProxyAutoConfigUtils.idl \
nsIProtocolProxyService.idl \
nsIRequest.idl \
nsISocketTransport.idl \
nsISocketTransportService.idl \
nsIStreamIO.idl \
nsIStreamListener.idl \
nsIStreamLoader.idl \
nsIStreamObserver.idl \
nsIURI.idl \
nsIURL.idl \
nsIURLParser.idl \
nsIWebFilters.idl \
$(NULL)
@ -62,6 +63,7 @@ EXPORTS = \
netCore.h \
nsNetUtil.h \
nsUnixColorPrintf.h \
nsIPasswordManagerUtils.h \
$(NULL)
include $(topsrcdir)/config/rules.mk

Просмотреть файл

@ -28,6 +28,7 @@ EXPORTS = \
netCore.h \
nsNetUtil.h \
nsUnixColorPrintf.h \
nsIPasswordManagerUtils.h \
$(NULL)
XPIDLSRCS = \
@ -40,6 +41,7 @@ XPIDLSRCS = \
.\nsINetModRegEntry.idl \
.\nsINetModuleMgr.idl \
.\nsINetNotify.idl \
.\nsIPasswordManager.idl \
.\nsIProgressEventSink.idl \
.\nsIPrompt.idl \
.\nsIProtocolHandler.idl \

Просмотреть файл

@ -0,0 +1,38 @@
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Zero-Knowledge
* Systems, Inc. Portions created by Zero-Knowledge are Copyright
* (C) 2000 Zero-Knowledge Systems, Inc. All Rights Reserved.
*
* Contributor(s):
*/
#include "nsISupports.idl"
/**
* Interface for password management (aka single-signon) componentry.
*/
/* XXXshaver these came from the old wallet interfaces, and seem questionable */
native nsAutoString(nsAutoString);
[ref] native nsAutoStringRef(nsAutoString);
[scriptable, uuid(110c808c-1dd2-11b2-8de5-814d4485c444)]
interface nsIPasswordManager : nsISupports {
void removeUser(in string key, in wstring user);
void storePassword(in string key, in wstring user, in wstring pass);
[noscript] void getSignonListForViewer(in nsAutoStringRef aSignonList);
[noscript] void getRejectListForViewer(in nsAutoStringRef aRejectList);
};

Просмотреть файл

@ -0,0 +1,30 @@
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Zero-Knowledge
* Systems, Inc. Portions created by Zero-Knowledge are Copyright
* (C) 2000 Zero-Knowledge Systems, Inc. All Rights Reserved.
*
* Contributor(s):
*/
#ifndef NSIPASSWORDMANAGERUTILS_H__
#define NSIPASSWORDMANAGERUTILS_H__
#include "nsIPasswordManager.h"
/* XXX love me, rayw, love me true */
#define PASSWORDMANAGER_PROGID "mozilla.network.password-manager.1"
#endif /* NSIPASSWORDMANAGERUTILS_H__ */