зеркало из https://github.com/mozilla/gecko-dev.git
Changes contributed by Tom Lendacky ( toml@us.ibm.com ).
*** NOT PART OF THE BUILD ***
This commit is contained in:
Родитель
9a57284db3
Коммит
010408bd12
|
@ -343,7 +343,7 @@ nsP3PPreferences::GetBoolPref( nsCString aCategory,
|
|||
PRBool bRecipient;
|
||||
|
||||
#ifdef DEBUG_P3P
|
||||
printf("P3P: P3PPreferences: GetBoolPref(%s, %s, %s)\n", (char *) aCategory, (char *) aPurpose, (char *) aRecipient);
|
||||
printf("P3P: P3PPreferences: GetBoolPref(%s, %s, %s)\n", (const char *) aCategory, (const char *) aPurpose, (const char *) aRecipient);
|
||||
#endif
|
||||
|
||||
pPrefName = P3P_PREF;
|
||||
|
@ -356,7 +356,7 @@ nsP3PPreferences::GetBoolPref( nsCString aCategory,
|
|||
if (NS_SUCCEEDED( rv )) {
|
||||
#ifdef DEBUG_P3P
|
||||
printf("P3P: P3PPreferences: Setting for %s is %s.\n",
|
||||
(char *) pPrefName, (*aResult) ? "true" : "false");
|
||||
(const char *) pPrefName, (*aResult) ? "true" : "false");
|
||||
#endif
|
||||
if (aRecipient.Equals("ours")) {
|
||||
bRecipient = PR_TRUE;
|
||||
|
@ -369,7 +369,7 @@ nsP3PPreferences::GetBoolPref( nsCString aCategory,
|
|||
#ifdef DEBUG_P3P
|
||||
if (NS_SUCCEEDED( rv )) {
|
||||
printf("P3P: P3PPreferences: Setting for %s is %s.\n",
|
||||
(char *) pPrefName, (*aResult) ? "true" : "false");
|
||||
(const char *) pPrefName, (*aResult) ? "true" : "false");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -380,7 +380,7 @@ nsP3PPreferences::GetBoolPref( nsCString aCategory,
|
|||
}
|
||||
|
||||
if (NS_FAILED(rv)) {
|
||||
PR_LOG( gP3PLogModule, PR_LOG_NOTICE, ("P3PPreferenceService: GetBoolPref(%s, %s, %s) failed with return value %X.\n", (char *) aCategory, (char *) aPurpose, (char *) aRecipient, rv) );
|
||||
PR_LOG( gP3PLogModule, PR_LOG_NOTICE, ("P3PPreferenceService: GetBoolPref(%s, %s, %s) failed with return value %X.\n", (const char *) aCategory, (const char *) aPurpose, (const char *) aRecipient, rv) );
|
||||
#ifdef DEBUG_P3P
|
||||
printf("P3P: P3PPreferences: GetBoolPref() failed with return value %x.\n", rv);
|
||||
#endif
|
||||
|
@ -388,7 +388,7 @@ nsP3PPreferences::GetBoolPref( nsCString aCategory,
|
|||
#ifdef DEBUG_P3P
|
||||
else {
|
||||
printf("P3P: P3PPreferences: Setting for %s, %s, %s is %s.\n",
|
||||
(char *) aCategory, (char *) aPurpose, (char *) aRecipient, (*aResult) ? "true" : "false");
|
||||
(const char *) aCategory, (const char *) aPurpose, (const char *) aRecipient, (*aResult) ? "true" : "false");
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
@ -78,7 +78,8 @@ NS_METHOD
|
|||
nsP3PService::CategoryRegister( nsIComponentManager *aComponentManager,
|
||||
nsIFile *aPath,
|
||||
const char *aRegistryLocation,
|
||||
const char *aComponentType ) {
|
||||
const char *aComponentType,
|
||||
const nsModuleComponentInfo *aInfo ) {
|
||||
|
||||
nsresult rv;
|
||||
|
||||
|
@ -120,7 +121,8 @@ nsP3PService::CategoryRegister( nsIComponentManager *aComponentManager,
|
|||
NS_METHOD
|
||||
nsP3PService::CategoryUnregister( nsIComponentManager *aComponentManager,
|
||||
nsIFile *aPath,
|
||||
const char *aRegistryLocation ) {
|
||||
const char *aRegistryLocation,
|
||||
const nsModuleComponentInfo *aInfo ) {
|
||||
|
||||
nsresult rv;
|
||||
|
||||
|
@ -1803,21 +1805,8 @@ nsP3PService::GetURIComponents( nsIURI *aURI,
|
|||
rv = aURI->GetPort(&iPort );
|
||||
|
||||
if (NS_SUCCEEDED( rv ) && (iPort >= 0) && (iPort != 80)) {
|
||||
char *csPortBuffer = nsnull;
|
||||
|
||||
csPortBuffer = PR_smprintf( ":%d", iPort );
|
||||
|
||||
if (csPortBuffer) {
|
||||
aURIHostPort.AppendWithConversion( csPortBuffer );
|
||||
PR_smprintf_free( csPortBuffer );
|
||||
}
|
||||
else {
|
||||
PR_LOG( gP3PLogModule,
|
||||
PR_LOG_ERROR,
|
||||
("P3PService: GetURIComponents, PR_smprintf failed.\n") );
|
||||
|
||||
rv = NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
aURIHostPort.AppendWithConversion( ":" );
|
||||
aURIHostPort.AppendInt( iPort );
|
||||
}
|
||||
else if (NS_FAILED( rv )) {
|
||||
PR_LOG( gP3PLogModule,
|
||||
|
@ -2860,7 +2849,7 @@ nsP3PService::DeleteCookie( nsIURI *aURI,
|
|||
|
||||
rv = mCookieService->SetCookieString( aURI,
|
||||
nsnull,
|
||||
sWork );
|
||||
csCookie );
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
#include <nsCOMPtr.h>
|
||||
#include <nsISupports.h>
|
||||
#include <nsIComponentManager.h>
|
||||
#include <nsIGenericFactory.h>
|
||||
|
||||
#include <nsICategoryManager.h>
|
||||
|
||||
|
@ -86,11 +87,13 @@ public:
|
|||
NS_METHOD CategoryRegister( nsIComponentManager *aComponentManager,
|
||||
nsIFile *aPath,
|
||||
const char *aRegistryLocation,
|
||||
const char *aComponentType );
|
||||
const char *aComponentType,
|
||||
const nsModuleComponentInfo *aInfo );
|
||||
static
|
||||
NS_METHOD CategoryUnregister( nsIComponentManager *aComponentManager,
|
||||
nsIFile *aPath,
|
||||
const char *aRegistryLocation );
|
||||
const char *aRegistryLocation,
|
||||
const nsModuleComponentInfo *aInfo );
|
||||
|
||||
protected:
|
||||
NS_METHOD GetDocShellTreeItemMain( nsIDocShellTreeItem *aDocShellTreeItem,
|
||||
|
|
Загрузка…
Ссылка в новой задаче