Get P3P support building on Mac. Bug 62399. r=harishd. Not part of the build.

This commit is contained in:
peterv%netscape.com 2001-05-02 23:06:12 +00:00
Родитель 03bcbade48
Коммит 9d7b0e02f1
1 изменённых файлов: 14 добавлений и 14 удалений

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

@ -27,17 +27,17 @@
#include "nsP3PObserverUtils.h"
#include "nsP3PLogging.h"
#include <nsIServiceManager.h>
#include "nsIServiceManager.h"
#include <nsIParser.h>
#include "nsIParser.h"
#include <nsIDocShell.h>
#include <nsIDocShellTreeItem.h>
#include <nsIWebNavigation.h>
#include <nsIDocument.h>
#include "nsIDocShell.h"
#include "nsIDocShellTreeItem.h"
#include "nsIWebNavigation.h"
#include "nsIDocument.h"
#include <nsString.h>
#include <nsXPIDLString.h>
#include "nsString.h"
#include "nsXPIDLString.h"
// ****************************************************************************
@ -102,11 +102,11 @@ nsP3PObserverXML::~nsP3PObserverXML( ) {
if (mObserverService) {
mObserverService->RemoveObserver( this,
NS_LITERAL_STRING("text/xml") );
NS_LITERAL_STRING("text/xml").get() );
mObserverService->RemoveObserver( this,
NS_LITERAL_STRING("application/xml") );
NS_LITERAL_STRING("application/xml").get() );
mObserverService->RemoveObserver( this,
NS_LITERAL_STRING("application/xhtml+xml") );
NS_LITERAL_STRING("application/xhtml+xml").get() );
}
}
@ -133,13 +133,13 @@ nsP3PObserverXML::Init( ) {
if (NS_SUCCEEDED( rv )) {
// Register to observer XML tags
rv = mObserverService->AddObserver( this,
NS_LITERAL_STRING("text/xml") );
NS_LITERAL_STRING("text/xml").get() );
if (NS_SUCCEEDED(rv)) {
rv = mObserverService->AddObserver( this,
NS_LITERAL_STRING("application/xml") );
NS_LITERAL_STRING("application/xml").get() );
if (NS_SUCCEEDED(rv)) {
rv = mObserverService->AddObserver( this,
NS_LITERAL_STRING("application/xhtml+xml") );
NS_LITERAL_STRING("application/xhtml+xml").get() );
}
}