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
Родитель f519c23063
Коммит 6412be75e4
6 изменённых файлов: 91 добавлений и 17 удалений

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

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

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

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

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

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

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

@ -28,6 +28,7 @@ EXPORTS = \
netCore.h \ netCore.h \
nsNetUtil.h \ nsNetUtil.h \
nsUnixColorPrintf.h \ nsUnixColorPrintf.h \
nsIPasswordManagerUtils.h \
$(NULL) $(NULL)
XPIDLSRCS = \ XPIDLSRCS = \
@ -40,6 +41,7 @@ XPIDLSRCS = \
.\nsINetModRegEntry.idl \ .\nsINetModRegEntry.idl \
.\nsINetModuleMgr.idl \ .\nsINetModuleMgr.idl \
.\nsINetNotify.idl \ .\nsINetNotify.idl \
.\nsIPasswordManager.idl \
.\nsIProgressEventSink.idl \ .\nsIProgressEventSink.idl \
.\nsIPrompt.idl \ .\nsIPrompt.idl \
.\nsIProtocolHandler.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__ */